https://github.com/wniemiec-io-java/argument-file
Argument file generator.
https://github.com/wniemiec-io-java/argument-file
argument-file io java java-argument-file wniemiec wniemiec-io-java
Last synced: 14 days ago
JSON representation
Argument file generator.
- Host: GitHub
- URL: https://github.com/wniemiec-io-java/argument-file
- Owner: wniemiec-io-java
- License: mit
- Created: 2021-08-12T01:47:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T03:19:45.000Z (over 4 years ago)
- Last Synced: 2023-07-28T10:11:29.208Z (over 2 years ago)
- Topics: argument-file, io, java, java-argument-file, wniemiec, wniemiec-io-java
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Argument File
Argument file generator.
## ❇ Introduction
To shorten or simplify the javac command, you can specify one or more files that contain arguments to the javac command (except -J options). This enables you to create javac commands of any length on any operating system. An argument file can include javac options and source file names in any combination.
## ❓ How to use
1. Add one of the options below to the pom.xml file:
#### Using Maven Central (recomended):
```
io.github.wniemiec-io-java
argument-file
LATEST
```
#### Using GitHub Packages:
```
wniemiec.io.java
argument-file
LATEST
```
2. Run
```
$ mvn install
```
3. Use it
```
[...]
import wniemiec.io.java.ArgumentFile;
[...]
Path workingDirectory = Path.of(System.getProperty("java.io.tmpdir"));
String filename = "argfile";
argumentFile = new ArgumentFile(workingDirectory, filename);
argumentFile.create(List.of(
Path.of("C:", "Foo", "Bar", "file1.jar"),
Path.of("C:", "Foo", "Bar", "file2.jar"),
Path.of("C:", "Foo")
);
[...]
```
> javac @argfile.txt
## 📖 Documentation
| Property |Parameter type|Return type|Description|Default parameter value|
|----------------|-------------------------------|-----|------------------------|--------|
|create |`paths: List`|`Path`|Generates argument file from a list of paths.| - |
|delete |`void`|`void`|Removes argument-file| - |
|exists |`void`|`boolean`|Checks if the argument-file has created.| - |
## 🚩 Changelog
Details about each version are documented in the [releases section](https://github.com/williamniemiec/wniemiec-io-java/argument-file/releases).
## 🤝 Contribute!
See the documentation on how you can contribute to the project [here](https://github.com/wniemiec-io-java/argument-file/blob/master/CONTRIBUTING.md).
## 📁 Files
### /
| Name |Type|Description|
|----------------|-------------------------------|-----------------------------|
|dist |`Directory`|Released versions|
|docs |`Directory`|Documentation files|
|src |`Directory`| Source files|