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>
|
|
|
|
|
2020-06-06 19:12:48 -07:00
|
|
|
<target name="autoupdate_compile">
|
|
|
|
<mkdir dir="autoupdate_build/classes"/>
|
|
|
|
<javac
|
|
|
|
debug="yes"
|
|
|
|
destdir="autoupdate_build/classes"
|
|
|
|
classpath="lib/annotations.jar"
|
|
|
|
>
|
|
|
|
<src path="autoupdate/src"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="autoupdate_jar" depends="autoupdate_compile">
|
|
|
|
<tstamp>
|
|
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
|
|
|
</tstamp>
|
|
|
|
|
|
|
|
<jar destfile="rusefi_autoupdate.jar" basedir="autoupdate_build/classes">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="com.rusefi.autoupdate.Autoupdate"/>
|
|
|
|
<attribute name="Built-Date" value="${TODAY}"/>
|
|
|
|
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
<target name="compile">
|
|
|
|
<mkdir dir="build/classes"/>
|
|
|
|
<javac debug="yes" destdir="build/classes"
|
2020-06-07 08:47:47 -07:00
|
|
|
classpath="../java_tools/configuration_definition/lib/snakeyaml.jar:lib/jaxb-api.jar:lib/httpclient.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/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"/>
|
2020-06-06 19:21:08 -07:00
|
|
|
<src path="autoupdate/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"/>
|
2020-06-02 20:33:50 -07:00
|
|
|
<src path="shared_ui/src"/>
|
2020-06-10 17:26:18 -07:00
|
|
|
<src path="ui/src/main/java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<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"/>
|
2020-06-06 19:12:48 -07:00
|
|
|
<!-- not really used at the moment but let's compile for the sake of Eclipse users -->
|
2015-11-09 16:03:32 -08:00
|
|
|
<src path="tools/src"/>
|
2020-06-06 19:12:48 -07:00
|
|
|
<!-- uncomment if you want to compile under java 11
|
|
|
|
please remove the space between '-' and '-add-exports' it should be double-dash
|
|
|
|
<compilerarg line="- -add-exports java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED"/>
|
|
|
|
<compilerarg line="- -add-exports java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED"/>
|
|
|
|
-->
|
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"/>
|
2020-06-06 19:12:48 -07:00
|
|
|
<classpath
|
2020-06-07 08:47:47 -07:00
|
|
|
path="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"/>
|
2020-06-06 19:12:48 -07:00
|
|
|
<fileset dir="autoupdate/src" includes="**/test/**/*Test.java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<fileset dir="io/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="models/src" includes="**/test/**/*Test.java"/>
|
2020-06-10 17:26:18 -07:00
|
|
|
<fileset dir="ui/src/main/java" includes="**/test/**/*Test.java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<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>
|
|
|
|
|
2020-06-06 19:12:48 -07:00
|
|
|
<target name="jar" depends="compile, autoupdate_jar">
|
2015-07-10 06:01:56 -07:00
|
|
|
<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>
|
2020-06-06 19:12:48 -07:00
|
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
2015-12-23 17:02:26 -08:00
|
|
|
</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}"/>
|
2020-06-02 19:49:54 -07:00
|
|
|
<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 09:09:31 -07:00
|
|
|
<zipfileset src="lib/httpclient.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/httpcore.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/httpmime.jar" includes="**/*.class"/>
|
2020-05-24 08:47:47 -07:00
|
|
|
<zipfileset src="lib/jaxb-api.jar" includes="**/*.class"/>
|
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>
|