Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

AlfonsoG-dev/JavaBuildConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

75 Commits

Repository files navigation

Java build tool

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

This repository is archive because the main goal was to try out a way to use a configuration file for the build process of a java project.

Visit Java build to see the new version.

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
  • Remember that the Libraries should be sepparated by ;
  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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /