2020-06-16 20:24:19 -07:00
|
|
|
<project default="jar">
|
|
|
|
<property name="jar_file_folder" value="build/jar"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<property name="jar_file" value="${jar_file_folder}/rusefi_plugin_body.jar"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<property name="console_path" value="../../java_console"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<property name="launcher_path" value="../ts_plugin_launcher"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile">
|
|
|
|
<mkdir dir="build/classes"/>
|
|
|
|
|
2022-05-03 13:41:24 -07:00
|
|
|
<resources id="libs">
|
|
|
|
<string>lib/mockito-all-1.10.19.jar</string>
|
|
|
|
<string>${console_path}/../java_tools/configuration_definition/lib/snakeyaml.jar</string>
|
|
|
|
<string>${console_path}/lib/javacan-core.jar</string>
|
|
|
|
</resources>
|
|
|
|
<pathconvert property="lib_list" refid="libs" pathsep=":" />
|
|
|
|
|
2020-06-16 20:24:19 -07:00
|
|
|
<javac debug="yes"
|
|
|
|
destdir="build/classes"
|
2022-05-03 13:41:24 -07:00
|
|
|
classpath="${lib_list}:${console_path}/lib/log4j-api-2.13.3.jar:${console_path}/lib/log4j-core-2.13.3.jar:${console_path}/lib/jsr305-2.0.1.jar:${console_path}/lib/jcip-annotations-1.0.jar:${console_path}/lib/annotations.jar:${console_path}/lib/jSerialComm.jar:${console_path}/lib/junit.jar:${console_path}/lib/json-simple-1.1.1.jar:${console_path}/lib/annotations.jar:${launcher_path}/lib/TunerStudioPluginAPI.jar:${console_path}/lib/httpclient.jar:${console_path}/lib/httpmime.jar:${console_path}/lib/httpcore.jar"
|
2020-06-16 20:24:19 -07:00
|
|
|
>
|
|
|
|
<src path="${console_path}/shared_ui/src"/>
|
2022-10-15 12:02:34 -07:00
|
|
|
<src path="${console_path}/core_ui/src/main/java"/>
|
2020-08-14 17:46:36 -07:00
|
|
|
<src path="${console_path}/autoupdate/src/main/java"/>
|
2020-07-01 21:12:47 -07:00
|
|
|
<src path="${console_path}/shared_io/src/main/java"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<src path="${console_path}/inifile/src"/>
|
|
|
|
<src path="${console_path}/logging/src"/>
|
2020-07-18 14:02:31 -07:00
|
|
|
<src path="${console_path}/io/src/main/java"/>
|
2020-07-02 17:10:22 -07:00
|
|
|
<src path="${console_path}/logging-api/src/main/java"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<src path="${console_path}/models/src"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<src path="${launcher_path}/src"/>
|
2020-07-19 08:52:25 -07:00
|
|
|
<src path="src/main/java"/>
|
|
|
|
<src path="src/test/java"/>
|
2020-06-22 17:01:21 -07:00
|
|
|
<exclude name="**/*Sandbox.java"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
</javac>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<mkdir dir="${jar_file_folder}"/>
|
|
|
|
<delete file="${jar_file}"/>
|
|
|
|
|
2020-06-17 20:50:57 -07:00
|
|
|
<copy todir="build/classes">
|
2021-08-18 14:02:42 -07:00
|
|
|
<fileset dir="../ts_plugin_launcher/src/main/resources" includes="**/*.png"/>
|
2020-06-22 16:52:40 -07:00
|
|
|
<fileset dir="${console_path}/shared_ui/resources" includes="**/*.png"/>
|
2020-06-17 20:50:57 -07:00
|
|
|
</copy>
|
|
|
|
|
2020-06-16 20:24:19 -07:00
|
|
|
<tstamp>
|
2020-06-21 22:08:53 -07:00
|
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
2020-06-17 20:19:07 -07:00
|
|
|
<format property="TODAY_DATE" pattern="yyyy-MM-dd"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
</tstamp>
|
|
|
|
|
|
|
|
<jar destfile="${jar_file}" basedir="build/classes">
|
|
|
|
<manifest>
|
2020-06-17 20:19:07 -07:00
|
|
|
<attribute name="Built-Date" value="${TODAY_DATE}"/>
|
2020-06-21 22:08:53 -07:00
|
|
|
<attribute name="Built-Timestamp" value="${TODAY}"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
|
|
|
</manifest>
|
|
|
|
|
|
|
|
<zipfileset src="../../java_console/lib/httpclient.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="../../java_console/lib/httpcore.jar" includes="**/*.class"/>
|
|
|
|
<zipfileset src="../../java_console/lib/httpmime.jar" includes="**/*.class"/>
|
2022-05-03 13:41:24 -07:00
|
|
|
<zipfileset src="../../java_console/lib/javacan-core.jar" includes="**/*.class"/>
|
2020-06-22 21:24:32 -07:00
|
|
|
<zipfileset src="../../java_console/lib/json-simple-1.1.1.jar" includes="**/*.class"/>
|
2020-08-07 17:19:23 -07:00
|
|
|
<zipfileset src="../../java_console/lib/jSerialComm.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<!-- <zipfileset src="lib/commons-logging.jar" includes="**/*.class"/>-->
|
2020-06-16 20:24:19 -07:00
|
|
|
</jar>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2020-06-16 20:52:07 -07:00
|
|
|
<target name="body_local_install" depends="jar">
|
2020-06-17 19:14:22 -07:00
|
|
|
<copy file="${jar_file}" todir="${user.home}/.rusEFI/"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
</target>
|
2022-11-19 04:47:56 -08:00
|
|
|
</project>
|