52 lines
2.0 KiB
XML
52 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_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}/shared_ui/src"/>
|
||
|
<src path="${console_path}/inifile/src"/>
|
||
|
<src path="${console_path}/logging/src"/>
|
||
|
<src path="${console_path}/models/src"/>
|
||
|
<src path="src"/>
|
||
|
</javac>
|
||
|
|
||
|
</target>
|
||
|
|
||
|
<target name="jar" depends="compile">
|
||
|
<mkdir dir="${jar_file_folder}"/>
|
||
|
<delete file="${jar_file}"/>
|
||
|
|
||
|
<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.TsPlugin"/>
|
||
|
</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="local_install" depends="jar">
|
||
|
<copy file="${jar_file}" todir="${user.home}/.efianalytics/TunerStudio/plugins"/>
|
||
|
</target>
|
||
|
</project>
|