An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![](https://github.com/wniemiec-io-java/argument-file/blob/master/docs/img/logo/logo.jpg)

Argument File


Argument file generator.






Coverage status
Java compatibility
Maven Central release
License



## ❇ 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|