78 lines
3.7 KiB
XML
78 lines
3.7 KiB
XML
<project default="jar">
|
|
<property name="jar_file_folder" value="build/jar"/>
|
|
<property name="jar_file" value="${jar_file_folder}/rusefi_plugin_body.jar"/>
|
|
<property name="console_path" value="../../java_console"/>
|
|
<property name="launcher_path" value="../ts_plugin_launcher"/>
|
|
|
|
<target name="clean">
|
|
<delete dir="build"/>
|
|
</target>
|
|
|
|
<target name="compile">
|
|
<mkdir dir="build/classes"/>
|
|
|
|
<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=":" />
|
|
|
|
<javac debug="yes"
|
|
destdir="build/classes"
|
|
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"
|
|
>
|
|
<src path="${console_path}/shared_ui/src"/>
|
|
<src path="${console_path}/core_ui/src/main/java"/>
|
|
<src path="${console_path}/autoupdate/src/main/java"/>
|
|
<src path="${console_path}/shared_io/src/main/java"/>
|
|
<src path="${console_path}/inifile/src"/>
|
|
<src path="${console_path}/logging/src"/>
|
|
<src path="${console_path}/io/src/main/java"/>
|
|
<src path="${console_path}/logging-api/src/main/java"/>
|
|
<src path="${console_path}/models/src"/>
|
|
<src path="${launcher_path}/src"/>
|
|
<src path="src/main/java"/>
|
|
<src path="src/test/java"/>
|
|
<exclude name="**/*Sandbox.java"/>
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
<target name="jar" depends="compile">
|
|
<mkdir dir="${jar_file_folder}"/>
|
|
<delete file="${jar_file}"/>
|
|
|
|
<copy todir="build/classes">
|
|
<fileset dir="../ts_plugin_launcher/src/main/resources" includes="**/*.png"/>
|
|
<fileset dir="${console_path}/shared_ui/resources" includes="**/*.png"/>
|
|
</copy>
|
|
|
|
<tstamp>
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
|
<format property="TODAY_DATE" pattern="yyyy-MM-dd"/>
|
|
</tstamp>
|
|
|
|
<jar destfile="${jar_file}" basedir="build/classes">
|
|
<manifest>
|
|
<attribute name="Built-Date" value="${TODAY_DATE}"/>
|
|
<attribute name="Built-Timestamp" value="${TODAY}"/>
|
|
<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"/>
|
|
<zipfileset src="../../java_console/lib/javacan-core.jar" includes="**/*.class"/>
|
|
<zipfileset src="../../java_console/lib/json-simple-1.1.1.jar" includes="**/*.class"/>
|
|
<zipfileset src="../../java_console/lib/jSerialComm.jar" includes="**/*.class **/*.so **/*.dll **/*.jnilib"/>
|
|
<!-- <zipfileset src="lib/commons-logging.jar" includes="**/*.class"/>-->
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<target name="body_local_install" depends="jar">
|
|
<copy file="${jar_file}" todir="${user.home}/.rusEFI/"/>
|
|
</target>
|
|
</project>
|