54 lines
2.0 KiB
XML
54 lines
2.0 KiB
XML
<project default="jar">
|
|
<property name="jar_file_folder" value="build/jar"/>
|
|
<property name="jar_file" value="${jar_file_folder}/rusefi_ts_plugin_launcher.jar"/>
|
|
<property name="console_path" value="../../java_console"/>
|
|
|
|
<target name="clean">
|
|
<delete dir="build"/>
|
|
</target>
|
|
|
|
<target name="compile">
|
|
<mkdir dir="build/classes"/>
|
|
|
|
<javac debug="yes"
|
|
destdir="build/classes"
|
|
classpath="${console_path}/lib/junit.jar:${console_path}/lib/annotations.jar:lib/TunerStudioPluginAPI.jar:${console_path}/lib/httpclient.jar:${console_path}/lib/httpmime.jar:${console_path}/lib/httpcore.jar"
|
|
>
|
|
<src path="${console_path}/autoupdate/src"/>
|
|
<src path="${console_path}/shared_io/src/main/java"/>
|
|
<src path="src"/>
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
<target name="jar" depends="compile">
|
|
<mkdir dir="${jar_file_folder}"/>
|
|
<delete file="${jar_file}"/>
|
|
|
|
<copy todir="build/classes">
|
|
<fileset dir="resources" includes="**/*.png"/>
|
|
</copy>
|
|
|
|
<tstamp>
|
|
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
|
|
</tstamp>
|
|
|
|
<jar destfile="${jar_file}" basedir="build/classes">
|
|
<manifest>
|
|
<attribute name="Built-Date" value="${TODAY}"/>
|
|
<attribute name="Signature-Vendor" value="rusEFI LLC"/>
|
|
<attribute name="ApplicationPlugin" value="com.rusefi.ts_plugin.TsPluginLauncher"/>
|
|
</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="lib/commons-logging.jar" includes="**/*.class"/>
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<target name="launcher_local_install" depends="jar">
|
|
<copy file="${jar_file}" todir="${user.home}/.efianalytics/TunerStudio/plugins"/>
|
|
</target>
|
|
</project> |