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"/>
|
|
|
|
|
|
|
|
<javac debug="yes"
|
|
|
|
destdir="build/classes"
|
2020-06-16 20:52:07 -07:00
|
|
|
classpath="${console_path}/lib/junit.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"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<src path="${console_path}/autoupdate/src"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<src path="${console_path}/inifile/src"/>
|
|
|
|
<src path="${console_path}/logging/src"/>
|
|
|
|
<src path="${console_path}/models/src"/>
|
2020-06-16 20:52:07 -07:00
|
|
|
<src path="${launcher_path}/src"/>
|
2020-06-16 20:24:19 -07:00
|
|
|
<src path="src"/>
|
|
|
|
</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">
|
|
|
|
<fileset dir="../ts_plugin_launcher/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"/>
|
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>
|
|
|
|
</project>
|