From 724ee652f1ec4181d6528b10e9ac6024d3378be7 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Sep 2010 05:26:00 +0000 Subject: [PATCH] Praise be to Ivy, which lets me do what I need without tremendous amounts of hair-pulling and ball-ache. We now have Maven call out to an Ivy-based Ant task to do the Proguard build (with Ivy maintaining a parallel copy of the dependencies, unfortunately). It's a twisty maze of passages, but it gets the Proguard build done during the right Maven phase so that all of its magical building, version number changing, SVN commits, etc. can happen as usual during the publishing process. --- build-ivy.xml | 106 +++++++++++++++----------------------------------- ivy.xml | 9 +---- pom.xml | 56 +++++++++++++++----------- 3 files changed, 67 insertions(+), 104 deletions(-) diff --git a/build-ivy.xml b/build-ivy.xml index 7b06d6c..c6f6885 100644 --- a/build-ivy.xml +++ b/build-ivy.xml @@ -1,7 +1,6 @@ - + - @@ -19,84 +18,43 @@ - - - Compile classpath: - ${compile.str} - - - - - - - + + + + + + - + --injars dist/getdown.jar(!**/tools/**) --injars dist/getdown.jar(**/tools/*Patcher*,**/tools/Differ*) --injars dist/lib/jRegistryKey.jar(!META-INF/*) --injars dist/lib/samskivert.jar( - com/samskivert/Log.class,**/io/**,**/swing/**,**/net/**,**/text/**,**/util/**) --injars dist/lib/commons-codec.jar(!META-INF/*) - --dontskipnonpubliclibraryclasses - --outjars target/getdown-pro.jar - --keep public class ca.beq.util.win32.registry.** { - *; -} - --keep public class com.threerings.getdown.launcher.Getdown { - public static void main (java.lang.String[]); -} - --keep public class com.threerings.getdown.launcher.GetdownApp { - public static void main (java.lang.String[]); -} - --keep public class com.threerings.getdown.launcher.GetdownApplet { - *; -} - --keep class * extends javax.swing.JApplet { - <methods>; -} - --keep public class com.threerings.getdown.launcher.GetdownAppletConfig { - *; -} + + + + + + + + + + + + + + + + + + - - - + diff --git a/ivy.xml b/ivy.xml index 202003a..52b1eb8 100644 --- a/ivy.xml +++ b/ivy.xml @@ -1,6 +1,6 @@ - + @@ -14,17 +14,10 @@ - - - - - - - diff --git a/pom.xml b/pom.xml index 8f2aad4..6cee10e 100644 --- a/pom.xml +++ b/pom.xml @@ -41,21 +41,6 @@ - - log4j - log4j - 1.2.15 - compile - true - - javax.mailmail - javax.jmsjms - com.sun.jdmkjmxtools - com.sun.jmxjmxri - orooro - junitjunit - - net.sf.proguard proguard @@ -77,13 +62,6 @@ compile true - - net.sourceforge.retroweaver - retroweaver - 2.0.7 - compile - true - org.apache.ant ant @@ -146,6 +124,40 @@ + + org.apache.maven.plugins + maven-antrun-plugin + RELEASE + + + package + package + + + + + + + + + + run + + + + + + org.apache.maven.plugins + maven-jar-plugin + RELEASE + + + + com.threerings.getdown.launcher.Getdown + + + + org.apache.maven.plugins maven-gpg-plugin