Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfonsog-dev/javabuildconfig
This is a project to test the build process using a config file.
https://github.com/alfonsog-dev/javabuildconfig
build-tool configuration-files java-applications
Last synced: 17 days ago
JSON representation
This is a project to test the build process using a config file.
- Host: GitHub
- URL: https://github.com/alfonsog-dev/javabuildconfig
- Owner: AlfonsoG-dev
- Created: 2024-11-15T04:08:42.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-10T22:39:02.000Z (about 1 month ago)
- Last Synced: 2024-12-10T23:26:46.303Z (about 1 month ago)
- Topics: build-tool, configuration-files, java-applications
- Language: Java
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java build tool
- Another java build tool for simple projects.
- In this occasion i want to use a configuration file.# References
- [java tools and commands](https://docs.oracle.com/javase/10/tools/tools-and-command-reference.htm)----
# Installation
1. Clone the repository
```cmd
git clone https://github.com/AlfonsoG-dev/JavaBuildConfig
```
2. Create the configuration file
```txt
Created-By: Author-Name
Source-Path: ./src/
Class-Path: ./bin/
Libraries: ./lib/dependency/myJar.jar;./lib/dependency2/myJar2.jar
Main-Class: App
```
3. Execute the build script
>- For now only works on windows
```cmd
pwsh build.ps1
```# Instructions
> Using the CLI commands you can:1. Compile
```shell
javabuild --compile
```
2. Run
```shell
javabuild --run
```
> It can execute other **.java** files
```shell
javabuild --run ./src/Testing/Test.java
```
3. Create **JAR** file
```shell
javabuild --jar
```
> Which creates the project **JAR** file
4. Build project
```shell
javabuild --build
```
> Which executes **compile** the project & creates the **JAR** file.
5. Create build script
```shell
javabuild -cb
```
> For now only powershell **ps1** scripts are allowed.
6. Create the project folder structure
```shell
javabuild -cs
```
> Which will create the structure:
>- **./bin/**
>- **./docs/**
>- **./lib/**
>- **./src/**
7. Create the manifesto file
```shell
javabuild -cm
```
> The configuration file must be created before.
7. Help
```shell
javabuild --h
or
javabuild --help
```# TODO
- [x] 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.