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"/>
|
2020-07-17 18:19:24 -07:00
|
|
|
<property name="server_jar_file" value="${jar_file_folder}/rusefi_server.jar"/>
|
2020-07-24 08:41:27 -07:00
|
|
|
<property name="lib_list" value="../java_tools/configuration_definition/lib/snakeyaml.jar:lib/log4j-api-2.13.3.jar:lib/log4j-core-2.13.3.jar:lib/jsr305-2.0.1.jar:lib/dfu/dfu_java.jar:lib/dfu/IntelHexParser.jar:lib/json-simple-1.1.1.jar:lib/server/javax.json.jar:lib/server/cactoos.jar:lib/server/takes.jar:lib/json-simple-1.1.1.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
|
|
|
|
|
|
|
<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"/>
|
2020-07-01 21:12:47 -07:00
|
|
|
<src path="shared_io/src/main/java"/>
|
2020-06-06 19:12:48 -07:00
|
|
|
</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-07-11 19:30:56 -07:00
|
|
|
classpath="${lib_list}">
|
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"/>
|
2020-07-11 19:30:56 -07:00
|
|
|
<src path="../java_tools/proxy_server/src/main/java"/>
|
|
|
|
<src path="../java_tools/proxy_server/src/test/java"/>
|
2020-07-02 17:56:33 -07:00
|
|
|
<src path="io/src/main/java"/>
|
|
|
|
<src path="io/src/test/java"/>
|
2020-07-02 19:22:50 -07:00
|
|
|
<src path="models/src/main/java"/>
|
|
|
|
<src path="models/src/test/java"/>
|
2020-07-02 18:20:52 -07:00
|
|
|
<src path="inifile/src/main/java"/>
|
|
|
|
<src path="inifile/src/test/java"/>
|
2020-06-02 20:33:50 -07:00
|
|
|
<src path="shared_ui/src"/>
|
2020-07-01 21:12:47 -07:00
|
|
|
<src path="shared_io/src/main/java"/>
|
2020-07-24 11:54:47 -07:00
|
|
|
<!-- <src path="shared_io/src/test/java"/>-->
|
2020-07-02 17:10:22 -07:00
|
|
|
<src path="logging-api/src/main/java"/>
|
2020-06-10 17:26:18 -07:00
|
|
|
<src path="ui/src/main/java"/>
|
2020-06-10 17:36:08 -07:00
|
|
|
<src path="ui/src/test/java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<src path="romraider/src"/>
|
|
|
|
<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
|
2020-06-20 15:49:29 -07:00
|
|
|
// see https://github.com/rusefi/rusefi/issues/1526
|
2020-06-06 19:12:48 -07:00
|
|
|
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-07-11 19:30:56 -07:00
|
|
|
path="build/classes:lib/junit.jar:${lib_list}:lib/commons-logging.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"/>
|
2020-07-02 17:56:33 -07:00
|
|
|
<fileset dir="io/src/test/java" includes="**/test/**/*Test.java"/>
|
2020-07-02 18:20:52 -07:00
|
|
|
<fileset dir="inifile/src/test/java" includes="**/test/**/*Test.java"/>
|
2020-07-02 19:22:50 -07:00
|
|
|
<fileset dir="models/src/test/java" includes="**/test/**/*Test.java"/>
|
2020-06-10 17:36:08 -07:00
|
|
|
<fileset dir="ui/src/test/java" includes="**/*Test.java"/>
|
2015-07-10 06:01:56 -07:00
|
|
|
<fileset dir="romraider/src" includes="**/test/**/*Test.java"/>
|
|
|
|
<fileset dir="logging/src" includes="**/test/**/*Test.java"/>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2020-07-17 18:19:24 -07:00
|
|
|
<target name="server_jar" depends="jar">
|
|
|
|
<delete file="${server_jar_file}"/>
|
|
|
|
<echo message="Building ${server_jar_file}"/>
|
|
|
|
|
|
|
|
<jar destfile="${server_jar_file}">
|
2020-07-17 19:22:15 -07:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="com.rusefi.Launcher"/>
|
|
|
|
<attribute name="Built-Date" value="${TODAY}"/>
|
|
|
|
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
|
|
|
</manifest>
|
|
|
|
|
2020-07-17 18:19:24 -07:00
|
|
|
<zipfileset src="${jar_file}" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/server/cactoos.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/server/javax.json.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/server/takes.jar" includes="**/*.class"/>
|
2020-07-24 10:35:01 -07:00
|
|
|
<zipfileset src="lib/log4j-api-2.13.3.jar"/>
|
|
|
|
<zipfileset src="lib/log4j-core-2.13.3.jar"/>
|
|
|
|
<fileset dir="../java_tools/proxy_server/src/main/resources" includes="**/*.*"/>
|
2020-07-17 18:19:24 -07:00
|
|
|
</jar>
|
|
|
|
</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"/>
|
2020-07-11 09:08:27 -07:00
|
|
|
<zipfileset src="lib/commons-logging.jar" includes="**/*.class"/>
|
2020-05-24 09:09:31 -07:00
|
|
|
<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"/>
|
2020-07-23 20:33:23 -07:00
|
|
|
<zipfileset src="lib/dfu/libusb4java-1.3.0-linux-aarch64.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
|
|
|
<zipfileset src="lib/dfu/libusb4java-1.3.0-linux-arm.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
|
|
|
<zipfileset src="lib/dfu/libusb4java-1.3.0-linux-x86.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
|
|
|
<zipfileset src="lib/dfu/libusb4java-1.3.0-linux-x86-64.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
2020-07-23 20:38:57 -07:00
|
|
|
<zipfileset src="lib/dfu/libusb4java-1.3.0-darwin-x86-64.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
2020-07-23 20:33:23 -07:00
|
|
|
<zipfileset src="lib/dfu/usb4java-1.3.0.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/dfu/IntelHexParser.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="lib/dfu/dfu_java.jar" includes="**/*.class"/>
|
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"/>
|
2020-06-22 21:46:22 -07:00
|
|
|
<zipfileset src="lib/json-simple-1.1.1.jar" includes="**/*.class"/>
|
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>
|