Skip to content

This is a project to test the build process using a config file.

Notifications You must be signed in to change notification settings

AlfonsoG-dev/JavaBuildConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java build tool

  • Another java build tool for simple projects.
  • In this occasion i want to use a configuration file.

References


Installation

  1. Clone the repository
git clone https://github.com/AlfonsoG-dev/JavaBuildConfig
  1. Create the configuration file
Created-By: Author-Name
Source-Path: ./src/
Class-Path: ./bin/
Libraries: ./lib/dependency/myJar.jar;./lib/dependency2/myJar2.jar
Main-Class: App
  1. Execute the build script
  • For now only works on windows
pwsh build.ps1

Instructions

Using the CLI commands you can:

  1. Compile
javabuild --compile
  1. Run
javabuild --run

It can execute other .java files

javabuild --run ./src/Testing/Test.java
  1. Create JAR file
javabuild --jar

Which creates the project JAR file

  1. Build project
javabuild --build

Which executes compile the project & creates the JAR file.

  1. Create build script
javabuild -cb

For now only powershell ps1 scripts are allowed.

  1. Create the project folder structure
javabuild -cs

Which will create the structure:

  • ./bin/
  • ./docs/
  • ./lib/
  • ./src/
  1. Create the manifesto file
javabuild -cm

The configuration file must be created before.

  1. Help
javabuild --h
or 
javabuild --help

TODO

  • add more options to the compile: 1) -Xlint:all, 2) -g, 3) -Werror, 4) --target java-version(17)

Disclaimer

  • This projects its for educational purposes.
  • Security issues are not taken into account.

About

This is a project to test the build process using a config file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published