2017-03-24 10:26:09 -07:00
|
|
|
<project default="jar">
|
|
|
|
|
2019-06-02 12:07:20 -07:00
|
|
|
<property name="javac.source" value="1.8"/>
|
|
|
|
<property name="javac.target" value="1.8"/>
|
2020-06-17 16:03:10 -07:00
|
|
|
<property name="console_path" value="../../java_console"/>
|
2018-12-19 20:17:23 -08:00
|
|
|
|
2017-03-24 10:26:09 -07:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
</target>
|
|
|
|
|
2021-06-16 14:07:05 -07:00
|
|
|
<target name="antlr">
|
2021-08-08 02:06:09 -07:00
|
|
|
<echo message="Invoking grammar generator..."/>
|
2021-07-30 05:15:32 -07:00
|
|
|
<java jar="lib/antlr-4.5-complete.jar" args="-o src/main/java/com/rusefi/generated RusefiConfigGrammar.g4" fork="true" failonerror="true" />
|
2021-06-16 14:07:05 -07:00
|
|
|
</target>
|
|
|
|
|
2021-06-18 19:53:13 -07:00
|
|
|
<target name="compile" depends="antlr">
|
2017-03-24 10:26:09 -07:00
|
|
|
<mkdir dir="build/classes"/>
|
2018-12-19 20:17:23 -08:00
|
|
|
<javac
|
|
|
|
source="${javac.source}"
|
2020-02-02 10:24:32 -08:00
|
|
|
debug="true"
|
2018-12-19 20:17:23 -08:00
|
|
|
target="${javac.target}"
|
|
|
|
destdir="build/classes"
|
2021-06-16 14:07:05 -07:00
|
|
|
classpath="${console_path}/lib/jsr305-2.0.1.jar:lib/junit.jar:../../java_console/lib/annotations.jar:lib/snakeyaml.jar:lib/antlr-4.5-complete.jar">
|
2021-07-30 05:15:32 -07:00
|
|
|
<src path="src/main/java"/>
|
|
|
|
<src path="${console_path}/autoupdate/src/main/java"/>
|
|
|
|
<src path="${console_path}/inifile/src/main/java"/>
|
|
|
|
<src path="${console_path}/logging/src/main/java"/>
|
2020-07-02 17:10:22 -07:00
|
|
|
<src path="${console_path}/logging-api/src/main/java"/>
|
2021-07-30 05:15:32 -07:00
|
|
|
<src path="${console_path}/models/src/main/java"/>
|
2020-07-02 05:16:18 -07:00
|
|
|
<src path="${console_path}/shared_io/src/main/java"/>
|
2021-07-30 05:15:32 -07:00
|
|
|
<src path="../enum_to_string/src/main/java"/>
|
2019-06-02 12:07:20 -07:00
|
|
|
</javac>
|
|
|
|
|
|
|
|
<junit fork="no"
|
|
|
|
maxmemory="512m"
|
|
|
|
printsummary="yes"
|
|
|
|
haltonfailure="yes">
|
|
|
|
|
|
|
|
<jvmarg value="-ea"/>
|
|
|
|
<jvmarg value="-XX:+HeapDumpOnOutOfMemoryError"/>
|
|
|
|
<formatter type="brief"/>
|
2021-06-16 14:07:05 -07:00
|
|
|
<classpath path="build/classes:lib/junit.jar:lib/annotations.jar:lib/snakeyaml.jar:lib/antlr-4.5-complete.jar"/>
|
2019-06-02 12:07:20 -07:00
|
|
|
<batchtest todir="build">
|
2021-07-30 05:15:32 -07:00
|
|
|
<fileset dir="src/main/java" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="../enum_to_string/src/main/java" includes="**/test/**/*Test.java"/>
|
2019-06-02 12:07:20 -07:00
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
|
2017-03-24 10:26:09 -07:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<mkdir dir="build/jar"/>
|
|
|
|
<jar destfile="../ConfigDefinition.jar" basedir="build/classes">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="com.rusefi.ConfigDefinition"/>
|
|
|
|
</manifest>
|
2019-06-02 12:07:20 -07:00
|
|
|
<zipfileset dir="build/classes" includes="**/*.class"/>
|
2020-06-16 11:12:27 -07:00
|
|
|
<zipfileset src="lib/snakeyaml.jar" includes="**/*.class"/>
|
2021-06-16 14:07:05 -07:00
|
|
|
<zipfileset src="lib/antlr-4.5-complete.jar" includes="**/*.class"/>
|
2017-03-24 10:26:09 -07:00
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2017-02-20 14:24:52 -08:00
|
|
|
</project>
|