Skip to content

Instantly share code, notes, and snippets.

@scottj
Created July 26, 2015 20:35
Show Gist options
  • Save scottj/59b618e0053f7d4a888b to your computer and use it in GitHub Desktop.
Save scottj/59b618e0053f7d4a888b to your computer and use it in GitHub Desktop.
Build dex2jar.jar from a d2j snapshot
<project name="dex2jar" basedir="." default="build.jar">
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="dist"/>
<property name="dist.jar" value="${dist.dir}/dex2jar.jar"/>
<target name="init" description="Create Directories">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${lib.dir}"/>
</target>
<target name="clean" depends="init" description="Clean Build Dir">
<delete>
<fileset dir="${build.dir}"/>
</delete>
</target>
<target name="build.jar" depends="clean" description="Build JAR file">
<delete>
<fileset dir="${dist.dir}"/>
</delete>
<tstamp/>
<jar destfile="${dist.jar}" basedir="${build.dir}" level="9">
<zipgroupfileset dir="${lib.dir}" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="com.googlecode.dex2jar.tools.Dex2jarCmd"/>
<attribute name="Build-Date" value="${TODAY}"/>
</manifest>
</jar>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment