2017-11-16 05:00:11 +00:00
|
|
|
# Developer Notes
|
|
|
|
|
|
|
|
AppleCommander has switched to using [Gradle](https://gradle.org/) for build and build dependencies.
|
|
|
|
|
2018-03-02 19:32:36 +00:00
|
|
|
There is still a bunch of ANT related build information around. They no longer apply and "should" get cleaned up over time.
|
|
|
|
|
2017-11-16 05:00:11 +00:00
|
|
|
## Tests
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./gradlew test
|
|
|
|
```
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./gradlew assemble
|
|
|
|
|
|
|
|
BUILD SUCCESSFUL in 2s
|
|
|
|
6 actionable tasks: 6 executed
|
2020-01-20 22:18:37 +00:00
|
|
|
|
|
|
|
$ tools/retrolambda.sh build/libs/AppleCommander-ac-<version>.jar
|
|
|
|
Converting...
|
|
|
|
Retrolambda 2.5.6
|
|
|
|
Repackaging to build/libs/AppleCommander-ac-<version>-java5.jar
|
2017-11-16 05:00:11 +00:00
|
|
|
```
|
|
|
|
|
2020-01-20 22:18:37 +00:00
|
|
|
This will:
|
|
|
|
1. Create the `build` directory and populate with uber-jars in `build/libs`.
|
|
|
|
2. Create a Java 5 variant of the `ac` tool in `AppleCommander-ac-<version>-java5.jar`. (Replace `<version>` with version.)
|
2017-11-16 05:00:11 +00:00
|
|
|
|
2018-03-02 19:32:36 +00:00
|
|
|
To run the command-line version of AppleCommander, use the following:
|
2017-11-16 05:00:11 +00:00
|
|
|
|
2018-03-02 19:32:36 +00:00
|
|
|
* All platforms:
|
2019-10-01 00:58:02 +00:00
|
|
|
`java -jar build/libs/AppleCommander-ac-VERSION.jar`
|
2020-01-20 22:18:37 +00:00
|
|
|
* Java 5:
|
|
|
|
`java -jar build/libs/AppleCommander-ac-VERSION-java5.jar`
|
2017-11-16 05:00:11 +00:00
|
|
|
|
2018-03-02 19:32:36 +00:00
|
|
|
To launch the GUI version of AppleCommander, use the following:
|
|
|
|
|
|
|
|
* Linux:
|
2019-10-01 00:58:02 +00:00
|
|
|
`java -jar build/libs/AppleCommander-linux64-gtk-VERSION.jar`
|
2018-03-02 19:32:36 +00:00
|
|
|
* Windows:
|
2019-10-01 00:58:02 +00:00
|
|
|
`java -jar build/libs/AppleCommander-win64-VERSION.jar`
|
2018-03-02 19:32:36 +00:00
|
|
|
* Mac OS X:
|
|
|
|
`java -XstartOnFirstThread -jar build/libs/AppleCommander-macosx-VERSION.jar`
|
|
|
|
|