Skip to content

Commit

Permalink
Explain how to build and run jar
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAZoidberg committed Apr 11, 2019
1 parent ad6c542 commit 704bd0b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Prerequisites: Gradle and JDK
gradle build
``

Build and run the `jar` with

```
gradle fatJar
java -jar build/libs/DigitRecognition-1.0.jar
```

## Running
``
gradle run --args draw
Expand All @@ -21,5 +28,8 @@ The possible arguments are `draw`, `eval` and `train`.
- `train` trains the network with the training data
- `eval` evaluates the performance of the network based on test data

The network is exported to and imported from `./network/{customWeights,customBiases}.txt`


## License
©2015 - 2018 Daniel Schäfer, BSD 3-Clause
©2015 - 2019 Daniel Schäfer, BSD 3-Clause
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jar {

task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
attributes 'Implementation-Title': 'DigitRecognition',
'Implementation-Version': version,
'Main-Class': 'me.danielschaefer.digitrecognition.Test'
}
baseName = project.name + '-all'
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}

0 comments on commit 704bd0b

Please sign in to comment.