Make sure the auto generated Java code compiles before it is run

This commit is contained in:
jlizier 2017-08-22 13:08:53 +10:00
parent e71df111cf
commit 24c66cc460
1 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
# Make sure the latest example source file is compiled.
javac -classpath "../java:../../infodynamics.jar" "../java/infodynamics/demos/autoanalysis/GeneratedCalculator.java"
# Run the example:
java -classpath "../java:../../infodynamics.jar" infodynamics.demos.autoanalysis.GeneratedCalculator
if [ $? == 0 ]; then
# Run the example:
java -classpath "../java:../../infodynamics.jar" infodynamics.demos.autoanalysis.GeneratedCalculator
fi