2014-10-02 01:32:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="com.ibm.wala.dalvik" default="getJars" basedir=".">
|
|
|
|
|
|
|
|
<property name="basews" value="${ws}"/>
|
|
|
|
<property name="baseos" value="${os}"/>
|
|
|
|
<property name="basearch" value="${arch}"/>
|
|
|
|
<property name="basenl" value="${nl}"/>
|
|
|
|
|
|
|
|
<!-- Compiler settings. -->
|
|
|
|
<property name="javacFailOnError" value="true"/>
|
|
|
|
<property name="javacDebugInfo" value="on"/>
|
|
|
|
<property name="javacVerbose" value="false"/>
|
|
|
|
<property name="logExtension" value=".log"/>
|
|
|
|
<property name="compilerArg" value=""/>
|
|
|
|
<property name="javacSource" value="1.5"/>
|
|
|
|
<property name="javacTarget" value="1.5"/>
|
|
|
|
<property name="dir_bootclasspath" value="${java.home}/lib"/>
|
|
|
|
<path id="path_bootclasspath">
|
|
|
|
<fileset dir="${dir_bootclasspath}">
|
|
|
|
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
<property name="bootclasspath" refid="path_bootclasspath"/>
|
|
|
|
<property name="bundleJavacSource" value="${javacSource}"/>
|
|
|
|
<property name="bundleJavacTarget" value="${javacTarget}"/>
|
|
|
|
<property name="bundleBootClasspath" value="${bootclasspath}"/>
|
|
|
|
|
|
|
|
<target name="CommonsIoPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/commons-io-2.4.jar" property="commons.io.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchCommonsIo" depends="CommonsIoPresent" unless="commons.io.present">
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2015-02-26 16:24:47 +00:00
|
|
|
<get src="http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar" dest="${plugin.destination}/lib/commons-io-2.4.jar" />
|
2014-10-02 01:32:36 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="CommonsCliPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/commons-cli-1.2.jar" property="commons.cli.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchCommonsCli" depends="CommonsCliPresent" unless="commons.cli.present">
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2015-02-26 16:24:47 +00:00
|
|
|
<get src="http://central.maven.org/maven2/commons-cli/commons-cli/1.2/commons-cli-1.2.jar" dest="${plugin.destination}/lib/commons-cli-1.2.jar" />
|
2014-10-02 01:32:36 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="DexlibPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/dexlib-1.3.4-dev.jar" property="dexlib.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchDexlib" depends="DexlibPresent" unless="dexlib.present">
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2014-10-02 01:32:36 +00:00
|
|
|
<get src="https://github.com/jgf/wala-mirror/raw/master/com.ibm.wala.dalvik/lib/dexlib-1.3.4-dev.jar" dest="${plugin.destination}/lib/dexlib-1.3.4-dev.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="GuavaPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/guava-13.0.1.jar" property="guava.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchGuava" depends="GuavaPresent" unless="guava.present">
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2014-10-02 01:32:36 +00:00
|
|
|
<get src="http://search.maven.org/remotecontent?filepath=com/google/guava/guava/13.0.1/guava-13.0.1.jar" dest="${plugin.destination}/lib/guava-13.0.1.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="LogbackPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/logback-core-1.0.9.jar" property="logback.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchLogback" depends="LogbackPresent" unless="logback.present">
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2014-10-02 01:32:36 +00:00
|
|
|
<get src="http://central.maven.org/maven2/ch/qos/logback/logback-core/1.0.9/logback-core-1.0.9.jar" dest="${plugin.destination}/lib/logback-core-1.0.9.jar"/>
|
|
|
|
<get src="http://central.maven.org/maven2/ch/qos/logback/logback-classic/1.0.9/logback-classic-1.0.9.jar" dest="${plugin.destination}/lib/logback-classic-1.0.9.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="Slf4jPresent" depends="init">
|
|
|
|
<available file="${plugin.destination}/lib/slf4j-api-1.7.2.jar" property="slf4j.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fetchSlf4j" depends="Slf4jPresent" unless="slf4j.present">
|
|
|
|
<delete dir="${temp.folder}"/>
|
|
|
|
<mkdir dir="${temp.folder}"/>
|
2015-02-26 16:39:54 +00:00
|
|
|
<mkdir dir="${plugin.destination}/lib"/>
|
2014-10-02 01:32:36 +00:00
|
|
|
<get src="http://www.slf4j.org/dist/slf4j-1.7.2.tar.gz" dest="${temp.folder}/slf4j-1.7.2.tar.gz"/>
|
|
|
|
<untar compression="gzip" src="${temp.folder}/slf4j-1.7.2.tar.gz" dest="${temp.folder}"/>
|
|
|
|
<copy file="${temp.folder}/slf4j-1.7.2/slf4j-api-1.7.2.jar" tofile="${plugin.destination}/lib/slf4j-api-1.7.2.jar" />
|
|
|
|
<delete dir="${temp.folder}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="getJars" depends="fetchCommonsIo,fetchCommonsCli,fetchGuava,fetchDexlib,fetchLogback,fetchSlf4j" />
|
|
|
|
|
|
|
|
<target name="init" depends="properties">
|
|
|
|
<condition property="pluginTemp" value="${buildTempFolder}/plugins">
|
|
|
|
<isset property="buildTempFolder"/>
|
|
|
|
</condition>
|
|
|
|
<property name="pluginTemp" value="${basedir}"/>
|
|
|
|
<condition property="build.result.folder" value="${pluginTemp}/com.ibm.wala.core.testdata">
|
|
|
|
<isset property="buildTempFolder"/>
|
|
|
|
</condition>
|
|
|
|
<property name="build.result.folder" value="${basedir}"/>
|
|
|
|
<property name="temp.folder" value="${basedir}/temp.folder"/>
|
|
|
|
<property name="plugin.destination" value="${basedir}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="properties" if="eclipse.running">
|
|
|
|
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|