Coder Social home page Coder Social logo

psb4j's Introduction

Project Simple Builder for Java

本项目停止维护, 请使用 GNU Make

引言 Intro

本项目始于2024年1月4日晚, 由于本人 shell 不好, 及 Gradle 性能不佳, 对于 Java 项目构建存在许多不便, 故想到创建此项目.
项目名称由来受 4j 一缩略词启发, 加之本人能力不佳, 写的东西功能简易, 使用 simple 一词. 简称为 psb4j, 尽管名字听着怪怪的.
此外, 这个项目是我写给我自己用的, 若有人原因舍弃 Maven 和 Gradle 来用我的 psb4j, 那我不胜荣幸.
-- Session 于 Jan 4 2023

简述 Desc

  • Psb4j (全称: Project Simple Builder for Java ; 内部名称: pj-sp-br-4j) 是一个命令行的跨平台高性能 Java 项目构建工具. 本工具较传统的 Maven 和 Gradle 等, 能够以更低的学习成本, 更低的资源占用, 更高的运行效率, 对 Java 项目进行快速或完整编译打包运行等操作.
  • 本项目完全使用 Java 语言进行编写, 理论上能够在任何支持 JDK 的设备上运行. 若您对本项目感兴趣, 请在您的项目上使用本工具进行构建, 您还可以向您认识的朋友等进行推荐. 还有最重要的, star 并赞助.

使用 Usage

  • 帮助信息

        --version        Print version message
        --help           Print this help message
        --jar            Path of output JAR
        --manifest       Manifest for JAR
        --pwd            Set work dirctory
        --build-dirctory Set output dirctory
        --sourcepath     Where to find .java code
        --remote-lib     Remote library URL
        --extra-packin   Extra files added to JAR
        --clear          Remove files at output dirctory
    
  • 示例构建脚本. ./README.md,./LICENSE 替换为你自己项目内需要的文件, JARNAME 替换为你自己的文件名.

    #!/bin/sh
    # https://github.com/SessionHu/psb4j
    psb4j_args="--extra-packin ./README.md,./LICENSE --jar ./build/JARNAME.jar --clear"
    if [ -s ~/.sessx/lib/psb4j.jar ]; then
        java -jar ~/.sessx/lib/psb4j.jar ${psb4j_args}
    else
        if [ -s ./psb4j.jar ] ; then
            java -jar ./psb4j.jar ${psb4j_args}
        else
            wget https://github.com/SessionHu/psb4j/releases/latest/download/psb4j.jar -O ~/.sessx/lib/psb4j.jar
            java -jar ~/.sessx/lib/psb4j.jar ${psb4j_args}
        fi
    fi

开发 Dev

  • 本项目为使用 Java 8控制台应用程序, 请确认设备使用的 JDK 版本

许可 Licens

  • 本项目使用 MIT License 进行分发使用

psb4j's People

Contributors

sessionhu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.