2015-07-10 06:01:56 -07:00
|
|
|
<project default="jar">
|
2019-04-28 20:24:23 -07:00
|
|
|
<property name="jar_file_folder" value="../java_console_binary"/>
|
|
|
|
<property name="jar_file" value="${jar_file_folder}/rusefi_console.jar"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
</target>
|
|
|
|
|
2019-01-06 16:47:43 -08:00
|
|
|
<target name="clean_out_folder">
|
|
|
|
<delete dir="out"/>
|
|
|
|
</target>
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
<target name="compile">
|
|
|
|
<mkdir dir="build/classes"/>
|
|
|
|
<javac debug="yes" destdir="build/classes"
|
2020-05-24 08:47:47 -07:00
|
|
|
classpath="../java_tools/configuration_definition/lib/snakeyaml.jar:lib/httpclient.jar:lib/jaxb-api.jar:lib/httpmime.jar:lib/httpcore.jar:lib/jSerialComm.jar:lib/jcip-annotations-1.0.jar:lib/jlatexmath-1.0.6.jar:lib/swing-layout-1.0.jar:lib/jep.jar:lib/log4j.jar:lib/junit.jar:lib/jssc.jar:lib/SteelSeries-3.9.30.jar:lib/annotations.jar:lib/miglayout-4.0.jar:lib/surfaceplotter-2.0.1.jar">
|
2015-07-10 06:01:56 -07:00
|
|
|
<src path="autotest/src"/>
|
2019-06-17 17:02:27 -07:00
|
|
|
<src path="../java_tools/configuration_definition/src"/>
|
|
|
|
<src path="../java_tools/enum_to_string/src"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<src path="io/src"/>
|
|
|
|
<src path="models/src"/>
|
2020-04-25 19:56:47 -07:00
|
|
|
<src path="inifile/src"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<src path="ui/src"/>
|
|
|
|
<src path="romraider/src"/>
|
2017-03-01 12:39:21 -08:00
|
|
|
<src path="opensr5/src"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<src path="logging/src"/>
|
2015-11-09 16:03:32 -08:00
|
|
|
<!-- not really used at the moment but let's compile for the sake of Eclipse users -->
|
|
|
|
<src path="tools/src"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
</javac>
|
|
|
|
|
|
|
|
<junit fork="no"
|
|
|
|
maxmemory="512m"
|
|
|
|
printsummary="yes"
|
|
|
|
haltonfailure="yes">
|
|
|
|
|
|
|
|
<jvmarg value="-ea"/>
|
|
|
|
<jvmarg value="-XX:+HeapDumpOnOutOfMemoryError"/>
|
|
|
|
<formatter type="brief"/>
|
2019-09-01 13:10:14 -07:00
|
|
|
<classpath path="lib/jssc.jar:build/classes:lib/junit.jar:lib/SteelSeries-3.9.30.jar:lib/miglayout-4.0.jar"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<batchtest todir="build">
|
|
|
|
<fileset dir="autotest/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="io/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="models/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="ui/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="romraider/src" includes="**/test/**/*Test.java"/>
|
2017-03-01 12:43:54 -08:00
|
|
|
<fileset dir="opensr5/src" includes="**/test/**/*Test.java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<fileset dir="logging/src" includes="**/test/**/*Test.java"/>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<mkdir dir="build/jar"/>
|
|
|
|
<delete file="${jar_file}"/>
|
|
|
|
<echo message="Building ${jar_file}"/>
|
|
|
|
|
|
|
|
<copy todir="build/classes">
|
|
|
|
<fileset dir="ui/resources" includes="**/*.gif"/>
|
|
|
|
<fileset dir="ui/resources" includes="**/*.png"/>
|
|
|
|
<fileset dir="ui/resources" includes="**/*.jpg"/>
|
|
|
|
<fileset dir="romraider/resources" includes="**/*.*"/>
|
|
|
|
</copy>
|
|
|
|
|
2015-12-23 17:02:26 -08:00
|
|
|
<tstamp>
|
|
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
|
|
|
|
</tstamp>
|
|
|
|
|
2019-04-28 20:24:23 -07:00
|
|
|
<mkdir dir="${jar_file_folder}"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<jar destfile="${jar_file}" basedir="build/classes">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="com.rusefi.Launcher"/>
|
2015-12-23 17:02:26 -08:00
|
|
|
<attribute name="Built-Date" value="${TODAY}"/>
|
|
|
|
<attribute name="Signature-Vendor" value="rusEfi LLC"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
</manifest>
|
|
|
|
<zipfileset src="lib/SteelSeries-3.9.30.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/trident-6.2.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/swing-layout-1.0.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/log4j.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/jep.jar" includes="**/*.class"/>
|
2020-05-24 08:47:47 -07:00
|
|
|
<zipfileset src="lib/jaxb-api.jar" includes="**/*.class"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<zipfileset src="lib/jssc.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
2019-06-03 19:35:29 -07:00
|
|
|
<zipfileset src="lib/jSerialComm.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<zipfileset src="lib/annotations.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/miglayout-4.0.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/surfaceplotter-2.0.1.jar" includes="**/*.class **/*.properties"/>
|
|
|
|
<zipfileset src="lib/batik/batik-svggen.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/batik/batik-awt-util.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/batik/batik-util.jar" includes="**/*.class"/>
|
2017-08-05 14:18:33 -07:00
|
|
|
<zipfileset src="lib/jlatexmath-1.0.6.jar" includes="**/*.class **/*.xml **/*.ttf"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="jar">
|
|
|
|
<java jar="${jar_file}" fork="true"/>
|
|
|
|
</target>
|
|
|
|
|
2019-02-28 15:38:27 -08:00
|
|
|
<target name="simlator_test" depends="jar">
|
2019-02-28 16:00:15 -08:00
|
|
|
<java classpath="${jar_file}" classname="com.rusefi.AutoTest" failonerror="true" args="start">
|
2015-07-10 06:01:56 -07:00
|
|
|
</java>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2019-07-21 09:53:14 -07:00
|
|
|
<!--todo: rename this task to something more specific like RunRealHardwareTestSuite & sync Jenkins instances-->
|
2015-07-10 06:01:56 -07:00
|
|
|
<target name="realtest" depends="jar">
|
|
|
|
<java classpath="${jar_file}" classname="com.rusefi.RealHwTest" failonerror="true">
|
|
|
|
</java>
|
|
|
|
</target>
|
2015-12-23 19:01:26 -08:00
|
|
|
|
|
|
|
<target name="before_IDEA_Build">
|
|
|
|
<copy todir=".">
|
|
|
|
<fileset dir="../firmware/tunerstudio" includes="rusefi.ini"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
</target>
|
2015-07-10 06:01:56 -07:00
|
|
|
</project>
|