Revamped primary build to use Maven Ant tasks. Eliminated Ivy-based build,
which was used by Maven, now Maven calls into the primary build to generate its Proguarded jar file. Retired the Retroweaved jar file after a tremendous amount of fucking around with Retroweaver. I think it's safe to say that the number of people showing up with a 1.4 JDK operational in their browser is epsilon close to zero.
This commit is contained in:
@@ -1,84 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="getdown" basedir=".">
|
|
||||||
<property name="app.name" value="getdown"/>
|
|
||||||
|
|
||||||
<!-- downloads ivy if necessary and sets everything up -->
|
|
||||||
<property name="ivy.vers" value="2.1.0-rc2" />
|
|
||||||
<property name="ivy.jar.dir" value="${user.home}/.ant/lib" />
|
|
||||||
<condition property="ivy.exists"><available file="${ivy.jar.dir}/ivy.jar"/></condition>
|
|
||||||
<target name="-download-ivy" unless="ivy.exists">
|
|
||||||
<mkdir dir="${ivy.jar.dir}"/>
|
|
||||||
<get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.vers}/ivy-${ivy.vers}.jar"
|
|
||||||
dest="${ivy.jar.dir}/ivy.jar" usetimestamp="true"/>
|
|
||||||
</target>
|
|
||||||
<target name="-init-ivy" depends="-download-ivy">
|
|
||||||
<path id="ivy.lib.path"><fileset dir="${ivy.jar.dir}" includes="*.jar"/></path>
|
|
||||||
<taskdef resource="org/apache/ivy/ant/antlib.xml"
|
|
||||||
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
|
|
||||||
<ivy:cachepath pathid="compile.classpath" conf="compile" log="download-only"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="proguard" depends="-init-ivy">
|
|
||||||
<!-- Ivy is awesome and will fill the location of all of our dependencies into properties -->
|
|
||||||
<property name="cache.dir" value="${user.home}/.ivy2/cache"/>
|
|
||||||
<ivy:artifactproperty
|
|
||||||
name="[artifact]"
|
|
||||||
value="${cache.dir}/[organization]/[module]/[type]s/[artifact]-[revision].[ext]"/>
|
|
||||||
|
|
||||||
<!-- fucking Proguard, fucking Mac OS X -->
|
|
||||||
<mkdir dir="target"/>
|
|
||||||
<copy file="${java.home}/../Classes/classes.jar" tofile="target/runtime.jar"
|
|
||||||
failonerror="false"/>
|
|
||||||
<copy file="${java.home}/lib/rt.jar" tofile="target/runtime.jar" failonerror="false"/>
|
|
||||||
|
|
||||||
<taskdef resource="proguard/ant/task.properties" classpath="${proguard}"/>
|
|
||||||
<proguard obfuscate="false">
|
|
||||||
<injar path="target/getdown-${maven.version}.jar"/>
|
|
||||||
<injar path="lib/jregistrykey/jregistrykey/1.0/jregistrykey-1.0.jar" filter="!META-INF/**"/>
|
|
||||||
<injar path="${samskivert}" filter="!META-INF/**,!**/Log4JLogger*,
|
|
||||||
!**/*.java,com/samskivert/Log.class,**/samskivert/io/**,**/samskivert/swing/**,
|
|
||||||
**/samskivert/text/**,**/samskivert/util/**"/>
|
|
||||||
<injar path="${commons-codec}" filter="!META-INF/**"/>
|
|
||||||
<outjar path="target/getdown-pro-${maven.version}.jar"/>
|
|
||||||
<libraryjar name="target/runtime.jar"/>
|
|
||||||
<libraryjar name="${ant}"/>
|
|
||||||
<keep name="com.threerings.getdown.launcher.Getdown">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.launcher.GetdownApp">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.data.Resource">
|
|
||||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.tools.Differ">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.tools.Patcher">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.tools.Digester">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.tools.AppletParamSigner">
|
|
||||||
<method access="static" name="main"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.launcher.GetdownApplet">
|
|
||||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.tools.DigesterTask">
|
|
||||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="com.threerings.getdown.util.LaunchUtil">
|
|
||||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
|
||||||
</keep>
|
|
||||||
<keep name="ca.beq.util.win32.registry.**">
|
|
||||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
|
||||||
</keep>
|
|
||||||
</proguard>
|
|
||||||
|
|
||||||
<delete file="target/runtime.jar"/>
|
|
||||||
<move file="target/getdown-pro-${maven.version}.jar"
|
|
||||||
tofile="target/getdown-${maven.version}.jar" overwrite="true"/>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
||||||
@@ -1,164 +1,185 @@
|
|||||||
<!-- build configuration -->
|
<?xml version="1.0"?>
|
||||||
<project name="getdown" default="compile" basedir=".">
|
<project name="getdown" default="compile" basedir="." xmlns:artifact="urn:maven-artifact-ant">
|
||||||
|
|
||||||
<!-- various basic settings -->
|
|
||||||
<property name="app.name" value="getdown"/>
|
|
||||||
<property name="src.dir" value="src/main/java"/>
|
<property name="src.dir" value="src/main/java"/>
|
||||||
<property name="rsrc.dir" value="src/main/resources"/>
|
<property name="rsrc.dir" value="src/main/resources"/>
|
||||||
<property name="test.dir" value="src/test/java"/>
|
<property name="tsrc.dir" value="src/test/java"/>
|
||||||
<property name="deploy.dir" value="dist"/>
|
<property name="deploy.dir" value="dist"/>
|
||||||
<property name="libs.dir" value="lib"/>
|
|
||||||
<import file="etc/libs-incl.xml"/>
|
|
||||||
|
|
||||||
<!-- these are only used if we're going to sign things -->
|
|
||||||
<property file="build.properties"/>
|
|
||||||
<property file="${cert_dir}/certificate.properties"/>
|
<property file="${cert_dir}/certificate.properties"/>
|
||||||
|
|
||||||
<!-- used when generating javadocs -->
|
<property name="maven-ant.vers" value="2.1.1"/>
|
||||||
<property name="javadoc.dir" value="${deploy.dir}/docs"/>
|
<property name="maven-ant.dir" value="${user.home}/.m2/ant-support"/>
|
||||||
<property name="doc.packages" value="com.threerings.getdown.*"/>
|
<property name="maven-ant.jar" value="${maven-ant.dir}/maven-ant-tasks-${maven-ant.vers}.jar"/>
|
||||||
<property name="doc.overview" value="com/threerings/getdown/overview.html"/>
|
<property name="maven-ant.url"
|
||||||
<property name="copy.pre" value="Copyright © 2010"/>
|
value="http://mirrors.ibiblio.org/pub/mirrors/apache/maven/binaries"/>
|
||||||
<property name="copyright.holder" value="Three Rings Design, Inc."/>
|
<condition property="maven-ant.exists"><available file="${maven-ant.jar}"/></condition>
|
||||||
<property name="copy.post" value="All Rights Reserved."/>
|
<target name="-download-maven-ant" unless="maven-ant.exists">
|
||||||
|
<mkdir dir="${maven-ant.dir}"/>
|
||||||
<!-- declare our classpath -->
|
<get src="${maven-ant.url}/maven-ant-tasks-${maven-ant.vers}.jar"
|
||||||
<path id="clazzpath">
|
dest="${maven-ant.jar}" usetimestamp="true"/>
|
||||||
<pathelement location="${deploy.dir}/classes"/>
|
|
||||||
<fileset dir="${deploy.dir}/lib" includes="*.jar"/>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<!-- prepares the application directories -->
|
|
||||||
<target name="prepare">
|
|
||||||
<mkdir dir="${deploy.dir}/lib"/>
|
|
||||||
<mkdir dir="${deploy.dir}/classes"/>
|
|
||||||
<mkdir dir="${deploy.dir}/test-classes"/>
|
|
||||||
<mkdir dir="${javadoc.dir}"/>
|
|
||||||
<!-- copy media and properties into the target directory -->
|
|
||||||
<copy todir="${deploy.dir}/classes">
|
|
||||||
<fileset dir="${rsrc.dir}" includes="**"/>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${deploy.dir}/lib">
|
|
||||||
<fileset dir="lib" includes="**/*.jar"/>
|
|
||||||
</copy>
|
|
||||||
<copy todir="${deploy.dir}/lib" flatten="true">
|
|
||||||
<fileset refid="${app.name}.libs"/>
|
|
||||||
</copy>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- cleans out the intermediate build files -->
|
<target name="-init-maven-ant" depends="-download-maven-ant">
|
||||||
<target name="clean">
|
<taskdef resource="org/apache/maven/artifact/ant/antlib.xml"
|
||||||
|
uri="urn:maven-artifact-ant" classpath="${maven-ant.jar}"/>
|
||||||
|
<artifact:pom id="pom" file="pom.xml"/>
|
||||||
|
<artifact:dependencies pathId="compile.classpath" pomRefId="pom" useScope="compile"/>
|
||||||
|
<artifact:dependencies pathId="testlibs.classpath" pomRefId="pom" useScope="test"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="-prepare" depends="-init-maven-ant">
|
||||||
|
<mkdir dir="${deploy.dir}"/>
|
||||||
|
<path id="built.classpath">
|
||||||
|
<path refid="compile.classpath"/>
|
||||||
|
<pathelement location="${deploy.dir}/classes"/>
|
||||||
|
</path>
|
||||||
|
<path id="test.classpath">
|
||||||
|
<path refid="testlibs.classpath"/>
|
||||||
|
<path refid="built.classpath"/>
|
||||||
|
<pathelement location="${deploy.dir}/test-classes"/>
|
||||||
|
</path>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean" description="Cleans out build results.">
|
||||||
<delete dir="${deploy.dir}/classes"/>
|
<delete dir="${deploy.dir}/classes"/>
|
||||||
<delete dir="${deploy.dir}/test-classes"/>
|
<delete dir="${deploy.dir}/test-classes"/>
|
||||||
<delete dir="${deploy.dir}/docs"/>
|
<delete dir="${deploy.dir}/docs"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- wipes the entire build directory clean -->
|
<target name="distclean" description="Scorched earth clean.">
|
||||||
<target name="distclean" depends="clean">
|
|
||||||
<delete dir="${deploy.dir}"/>
|
<delete dir="${deploy.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="prepare" description="Compiles main classes.">
|
<target name="compile" depends="-prepare" description="Compiles main and test classes.">
|
||||||
|
<mkdir dir="${deploy.dir}/classes"/>
|
||||||
<javac srcdir="${src.dir}" destdir="${deploy.dir}/classes" includeAntRuntime="no"
|
<javac srcdir="${src.dir}" destdir="${deploy.dir}/classes" includeAntRuntime="no"
|
||||||
classpathref="clazzpath" debug="on" deprecation="on" source="1.5" target="1.5">
|
classpathref="compile.classpath" debug="on" deprecation="on" source="1.5" target="1.5"
|
||||||
|
encoding="utf-8">
|
||||||
<compilerarg value="-Xlint"/>
|
<compilerarg value="-Xlint"/>
|
||||||
<compilerarg value="-Xlint:-serial"/>
|
<compilerarg value="-Xlint:-serial"/>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="test-compile" depends="compile" description="Compiles test classes.">
|
<mkdir dir="${deploy.dir}/test-classes"/>
|
||||||
<javac srcdir="${test.dir}" destdir="${deploy.dir}/test-classes" includeAntRuntime="false"
|
<javac srcdir="${tsrc.dir}" destdir="${deploy.dir}/test-classes" includeAntRuntime="false"
|
||||||
debug="on" deprecation="on" source="1.5" target="1.5" encoding="utf-8">
|
classpathref="test.classpath" debug="on" deprecation="on" source="1.5" target="1.5"
|
||||||
<classpath>
|
encoding="utf-8">
|
||||||
<path refid="clazzpath"/>
|
|
||||||
<pathelement location="${deploy.dir}/classes"/>
|
|
||||||
</classpath>
|
|
||||||
<compilerarg value="-Xlint"/>
|
<compilerarg value="-Xlint"/>
|
||||||
<compilerarg value="-Xlint:-serial"/>
|
<compilerarg value="-Xlint:-serial"/>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the javadoc documentation -->
|
|
||||||
<target name="javadoc" depends="prepare">
|
|
||||||
<javadoc sourcepath="${src.dir}"
|
|
||||||
packagenames="${doc.packages}"
|
|
||||||
windowtitle="${app.name} API"
|
|
||||||
doctitle="${app.name} API"
|
|
||||||
overview="${src.dir}/${doc.overview}"
|
|
||||||
bottom="${copy.pre} ${copyright.holder} ${copy.post}"
|
|
||||||
destdir="${javadoc.dir}">
|
|
||||||
<classpath refid="clazzpath"/>
|
|
||||||
<link href="http://samskivert.com/code/samskivert/samskivert/docs/api"/>
|
|
||||||
<link href="http://java.sun.com/j2se/1.5/docs/api/"/>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- a target for rebuilding everything -->
|
|
||||||
<target name="all" depends="clean,compile,javadoc,dist"/>
|
|
||||||
|
|
||||||
<!-- builds our distribution files -->
|
|
||||||
<target name="dist" depends="compile">
|
|
||||||
<jar destfile="${deploy.dir}/${app.name}.jar" manifest="lib/manifest.mf"
|
|
||||||
basedir="${deploy.dir}/classes" excludes="**/netscape/**"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<property name="test" value=""/>
|
<property name="test" value=""/>
|
||||||
<target name="tests" depends="test-compile"
|
<target name="tests" depends="compile"
|
||||||
description="Runs unit tests. Use -Dtest=Foo to run only FooTest.">
|
description="Runs unit tests. Use -Dtest=Foo to run only FooTest.">
|
||||||
<taskdef name="unit" classpathref="clazzpath"
|
<taskdef name="unit" classpathref="test.classpath"
|
||||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
|
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
|
||||||
<unit printsummary="off" haltonfailure="yes">
|
<unit printsummary="off" haltonfailure="yes">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${deploy.dir}/classes"/>
|
<path refid="test.classpath"/>
|
||||||
<pathelement location="${deploy.dir}/test-classes"/>
|
|
||||||
<fileset dir="${deploy.dir}/lib" includes="*.jar"/>
|
|
||||||
</classpath>
|
</classpath>
|
||||||
<formatter type="brief" usefile="false"/>
|
<formatter type="brief" usefile="false"/>
|
||||||
<batchtest>
|
<batchtest>
|
||||||
<fileset dir="${test.dir}" includes="**/*${test}*Test.java"/>
|
<fileset dir="${tsrc.dir}" includes="**/*${test}*Test.java"/>
|
||||||
</batchtest>
|
</batchtest>
|
||||||
</unit>
|
</unit>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- optimizes, combines and removes dead code -->
|
<target name="javadoc" depends="-prepare">
|
||||||
<target name="proguard" depends="dist">
|
<javadoc sourcepath="${src.dir}" packagenames="com.threerings.getdown.*"
|
||||||
<!-- we need ant-contrib for if -->
|
windowtitle="${ant.project.name} API" doctitle="${ant.project.name} API"
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml">
|
overview="${src.dir}/com/threerings/getdown/overview.html"
|
||||||
<classpath>
|
bottom="Copyright © 2010 Three Rings Design, Inc. All Rights Reserved."
|
||||||
<pathelement location="${deploy.dir}/lib/ant-contrib.jar"/>
|
destdir="${deploy.dir}/docs">
|
||||||
</classpath>
|
<classpath refid="compile.classpath"/>
|
||||||
</taskdef>
|
<link href="http://java.sun.com/j2se/1.5/docs/api/"/>
|
||||||
|
</javadoc>
|
||||||
<!-- figure out where the Java rt.jar file lives -->
|
|
||||||
<if><and><os family="mac"/><os family="unix"/></and><then>
|
|
||||||
<property name="rtClasses" value="${java.home}/../Classes/classes.jar"/>
|
|
||||||
</then><else>
|
|
||||||
<property name="rtClasses" value="${java.home}/lib/rt.jar"/>
|
|
||||||
</else></if>
|
|
||||||
|
|
||||||
<mkdir dir="${deploy.dir}"/>
|
|
||||||
|
|
||||||
<taskdef resource="proguard/ant/task.properties"
|
|
||||||
classpath="${deploy.dir}/lib/proguard.jar"/>
|
|
||||||
<proguard configuration="etc/getdown.pro">
|
|
||||||
<libraryjar name="${rtClasses}"/>
|
|
||||||
</proguard>
|
|
||||||
|
|
||||||
<taskdef name="weave" classname="com.rc.retroweaver.ant.RetroWeaverTask"
|
|
||||||
classpath="${deploy.dir}/lib/retroweaver-all-1.2.2.jar"/>
|
|
||||||
<weave inputjar="${basedir}/${deploy.dir}/${app.name}-pro.jar"
|
|
||||||
outputjar="${basedir}/${deploy.dir}/${app.name}-retro-pro.jar"/>
|
|
||||||
<!-- now combine the retroweaved jar file with the retroweaver runtime -->
|
|
||||||
<unjar src="${deploy.dir}/lib/retroweaver-rt-1.2.2.jar"
|
|
||||||
dest="${deploy.dir}/rptmp"/>
|
|
||||||
<jar destfile="${deploy.dir}/${app.name}-retro-pro.jar"
|
|
||||||
manifest="lib/manifest.mf" basedir="${deploy.dir}/rptmp" update="true"/>
|
|
||||||
<delete dir="${deploy.dir}/rptmp"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="sign" depends="proguard">
|
<target name="dist" depends="compile" description="Builds jar files.">
|
||||||
<signjar jar="${deploy.dir}/${app.name}-retro-pro.jar" lazy="true"
|
<jar destfile="${deploy.dir}/${ant.project.name}.jar" manifest="lib/manifest.mf"
|
||||||
keystore="${sign.keystore}" storepass="${sign.storepass}"
|
basedir="${deploy.dir}/classes"/>
|
||||||
alias="${sign.alias}" keypass="${sign.keypass}"/>
|
<!-- generate our proguard jar file -->
|
||||||
|
<antcall target="-proguard">
|
||||||
|
<param name="getdown.jar" value="${deploy.dir}/${ant.project.name}.jar"/>
|
||||||
|
<param name="version.suff" value=""/>
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="-proguard" depends="-prepare">
|
||||||
|
<!-- locate the platform classes -->
|
||||||
|
<condition property="tools.jar" value="${java.home}/../Classes/classes.jar">
|
||||||
|
<available file="${java.home}/../Classes/classes.jar"/>
|
||||||
|
</condition>
|
||||||
|
<condition property="tools.jar" value="${java.home}/lib/rt.jar">
|
||||||
|
<available file="${java.home}/lib/rt.jar"/>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- we have to do some jockeying to get our Maven dependencies somewhere
|
||||||
|
that Proguard can process them; unfortunately the Maven ant task
|
||||||
|
doesn't provide a property for each dependency like Ivy does -->
|
||||||
|
<artifact:dependencies filesetId="compile.fileset" pomRefId="pom" useScope="compile"/>
|
||||||
|
<mkdir dir="${deploy.dir}/proguard"/>
|
||||||
|
<copy todir="${deploy.dir}/proguard">
|
||||||
|
<fileset refid="compile.fileset"/>
|
||||||
|
<mapper type="flatten"/>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- we put these guys in the test classpath though really we just want a
|
||||||
|
tools classpath -->
|
||||||
|
<artifact:dependencies pathId="proguard.classpath">
|
||||||
|
<dependency groupId="net.sf.proguard" artifactId="proguard" version="4.4"/>
|
||||||
|
</artifact:dependencies>
|
||||||
|
<taskdef resource="proguard/ant/task.properties" classpathref="proguard.classpath"/>
|
||||||
|
<proguard>
|
||||||
|
<injar path="${getdown.jar}"/>
|
||||||
|
<injar path="${deploy.dir}/proguard/jregistrykey-1.0.jar" filter="!META-INF/**"/>
|
||||||
|
<injar path="${deploy.dir}/proguard/samskivert-1.0.jar" filter="!META-INF/**,
|
||||||
|
!**/Log4JLogger*,!**/*.java,com/samskivert/Log.class,**/samskivert/io/**,
|
||||||
|
**/samskivert/swing/**,**/samskivert/text/**,**/samskivert/util/**"/>
|
||||||
|
<injar path="${deploy.dir}/proguard/commons-codec-1.4.jar" filter="!META-INF/**"/>
|
||||||
|
<outjar path="${deploy.dir}/getdown-pro${version.suff}.jar"/>
|
||||||
|
<libraryjar name="${tools.jar}"/>
|
||||||
|
<libraryjar name="${deploy.dir}/proguard/ant-1.7.1.jar"/>
|
||||||
|
|
||||||
|
<keep name="com.threerings.getdown.launcher.Getdown">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.launcher.GetdownApp">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.data.Resource">
|
||||||
|
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.tools.Differ">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.tools.Patcher">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.tools.Digester">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.tools.AppletParamSigner">
|
||||||
|
<method access="static" name="main"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.launcher.GetdownApplet">
|
||||||
|
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.tools.DigesterTask">
|
||||||
|
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="com.threerings.getdown.util.LaunchUtil">
|
||||||
|
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||||
|
</keep>
|
||||||
|
<keep name="ca.beq.util.win32.registry.**">
|
||||||
|
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||||
|
</keep>
|
||||||
|
</proguard>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="sign" depends="compile">
|
||||||
|
<signjar jar="${deploy.dir}/${ant.project.name}-retro-pro.jar" lazy="true"
|
||||||
|
keystore="${sign.keystore}" storepass="${sign.storepass}"
|
||||||
|
alias="${sign.alias}" keypass="${sign.keypass}"/>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ivy-module version="2.0" xmlns:mvn="http://ant.apache.org/ivy/maven">
|
|
||||||
<info organisation="com.threerings" module="getdown" revision="1.0">
|
|
||||||
<description homepage="http://code.google.com/p/getdown"/>
|
|
||||||
</info>
|
|
||||||
<configurations>
|
|
||||||
<conf name="default" visibility="public" extends="runtime,master"/>
|
|
||||||
<conf name="master" visibility="public"/>
|
|
||||||
<conf name="provided" visibility="public"/>
|
|
||||||
<conf name="runtime" visibility="public"/>
|
|
||||||
<conf name="sources" visibility="public"/>
|
|
||||||
<conf name="javadoc" visibility="public"/>
|
|
||||||
<conf name="optional" visibility="public"/>
|
|
||||||
<conf name="compile" visibility="private" extends="runtime,provided,optional"/>
|
|
||||||
<conf name="test" visibility="private" extends="compile"/>
|
|
||||||
</configurations>
|
|
||||||
<dependencies>
|
|
||||||
<dependency org="net.sf.proguard" name="proguard" rev="4.4" conf="compile->master(*)"/>
|
|
||||||
<dependency org="com.samskivert" name="samskivert" rev="1.0" conf="compile->master(*)"/>
|
|
||||||
<dependency org="commons-codec" name="commons-codec" rev="1.4" conf="compile->master(*)"/>
|
|
||||||
<dependency org="org.apache.ant" name="ant" rev="1.7.1" conf="compile->master(*)"/>
|
|
||||||
</dependencies>
|
|
||||||
</ivy-module>
|
|
||||||
@@ -48,26 +48,17 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>net.sf.proguard</groupId>
|
|
||||||
<artifactId>proguard</artifactId>
|
|
||||||
<version>4.4</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.samskivert</groupId>
|
<groupId>com.samskivert</groupId>
|
||||||
<artifactId>samskivert</artifactId>
|
<artifactId>samskivert</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-codec</groupId>
|
<groupId>commons-codec</groupId>
|
||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
<version>1.4</version>
|
<version>1.4</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jregistrykey</groupId>
|
<groupId>jregistrykey</groupId>
|
||||||
@@ -138,9 +129,11 @@
|
|||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<property name="maven.version" value="${project.version}" />
|
<property name="deploy.dir" value="target"/>
|
||||||
<ant antfile="${basedir}/build-proguard.xml">
|
<property name="getdown.jar" value="target/getdown-${project.version}.jar"/>
|
||||||
<target name="proguard" />
|
<property name="version.suff" value="-${project.version}.jar"/>
|
||||||
|
<ant antfile="${basedir}/build.xml">
|
||||||
|
<target name="-proguard"/>
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
Reference in New Issue
Block a user