- A java build tool that uses a configuration file to build the project.
Its made for simple java project with minimal use of
.jardependencies.
This is a step by step guide on how to install this tool.
- Download the source code of the project from build tool.
- Build the project to get a
.jarfile to use.
You can use the
.ps1build script.
pwsh build.ps1- Execute the jar file with the Java
clitools.
java -jar App.jarUse a config.txt file to store the project configuration.
The following its an example of the configuration on this particular project.
Root-Path: src
Source-Path: src\application
Class-Path: bin
Main-Class: application.JavaBuildConfig
Test-Path: src\test
Test-Class: test.TestLauncher
Libraries: include/exclude/ignore
Compile--flags: -WerrorYou can create the config.txt file with:
java -jar javaBuild.jar --config- Once created you can change the values manually.
In this build tool you have the following commands:
- Compile command:
- Use
--compileto compile the project.
java -jar javaBuild.jar --compileYou can use 3 sub-commands:
--s sourcePathto change the source path.--t classPathto change the target path.--ito include or not the lib files.--fto insert flags to the compile process.
- Run Command
- Use
--runto execute the project.
java -jar javaBuild.jar --runYou can use 4 sub-commands:
src\app.javato change the main class to execute.--sto change the source path.--tto change the target path.--ito include or not the lib files.--fto insert flags to the run process.
- Create
jarfile
- Use
--jarto create the build.jarfile of the application.
java -jar javaBuild.jar --jar
fileNameto change the.jarfile name.
java -jar javaBuild.jar --jar appNow the
.jarfile will be nameapp.jar
--sto change the source path.--tto change the target path.-eto change the entry point if manifesto isn't present.--fto insert flags to the run process.
- Build project
- It compile and creates the
.jarfile of the project.
Just to save time you only enter this command insted of two.
java -jar javaBuild.jar --buildIt accepts the same command as compile but the
--fonly works for compile not for--jarcommand.
java -jar javaBuild.jar --build --f -gThe previous command will add
-gflag to the compile process enabling debug information.
- Configuration
- It created or modifies the configuration and manifesto file
java -jar javaBuild.jar --configYou can change the source by giving
--s srcYou can change the target by giving--t binYou can change the main class by giving its name
- You can also change the author of the project with
-a Owner-Mine
java -jar javaBuild.jar --config src.App -a Owner-MineYou can "include/exclude" lib dependencies by giving
--i include/exclude
- This project is for educational purposes.
- Security issues are not taken into account.
- Use it at your own risks.

