From f6a03dd99fb18cae6162d68c29b734ee8a4f5e5c Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Sep 2010 00:45:35 +0000 Subject: [PATCH] A bastard combination of Maven and Ivy that will hopefully eventually allow us to build and publish Getdown. Everything builds with Maven, but getting Proguard to work inside Maven is an exercise in gouge-my-eyes-out-now, so I'll be doing the Proguard bits in a separate Ant script which will use Ivy to obtain dependencies sanely. This too is rife with PITA, but less so than doing everything in Maven. Ivy bits don't yet work. --- build-ivy.xml | 102 ++++++++++++++++++++++++++++ ivy.xml | 30 +++++++++ pom.xml | 183 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 315 insertions(+) create mode 100644 build-ivy.xml create mode 100644 ivy.xml create mode 100644 pom.xml diff --git a/build-ivy.xml b/build-ivy.xml new file mode 100644 index 0000000..7b06d6c --- /dev/null +++ b/build-ivy.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000..202003a --- /dev/null +++ b/ivy.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8f2aad4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,183 @@ + + + 4.0.0 + com.threerings + getdown + jar + 1.0-SNAPSHOT + getdown + An application installer and updater. + http://code.google.com/p/getdown/ + + http://code.google.com/p/getdown/issues/list + + + + org.sonatype.oss + oss-parent + 5 + + + + + GNU Lesser General Public License (LGPL), Version 2.1 + http://www.fsf.org/licensing/licenses/lgpl.txt + repo + + + + + + samskivert + Michael Bayne + mdb@samskivert.com + + + + + scm:svn:http://getdown.googlecode.com/svn/trunk/ + scm:svn:https://getdown.googlecode.com/svn/trunk/ + http://getdown.googlecode.com/svn/trunk/ + + + + + log4j + log4j + 1.2.15 + compile + true + + javax.mailmail + javax.jmsjms + com.sun.jdmkjmxtools + com.sun.jmxjmxri + orooro + junitjunit + + + + net.sf.proguard + proguard + 4.4 + compile + true + + + com.samskivert + samskivert + 1.0 + compile + true + + + commons-codec + commons-codec + 1.4 + compile + true + + + net.sourceforge.retroweaver + retroweaver + 2.0.7 + compile + true + + + org.apache.ant + ant + 1.7.1 + provided + + + jregistrykey + jregistrykey + 1.0 + system + ${project.basedir}/lib/jRegistryKey.jar + + + junit + junit + 4.8.1 + test + + + + + + org.apache.maven.plugins + maven-compiler-plugin + RELEASE + + 1.5 + 1.5 + true + true + true + + -Xlint" "-Xlint:-serial" "-Xlint:-path + + + + org.apache.maven.plugins + maven-resources-plugin + RELEASE + + UTF-8 + + + + org.apache.maven.plugins + maven-surefire-plugin + RELEASE + + + org.apache.maven.plugins + maven-javadoc-plugin + RELEASE + + true + public + + http://java.sun.com/products/javamail/javadocs/ + http://download.oracle.com/javaee/1.2.1/api/ + + + + + org.apache.maven.plugins + maven-gpg-plugin + RELEASE + + + sign-artifacts + verify + + sign + + + + + mdb@samskivert.com + + + + org.apache.maven.plugins + maven-jar-plugin + RELEASE + + + org.apache.maven.plugins + maven-install-plugin + RELEASE + + + org.apache.maven.plugins + maven-deploy-plugin + RELEASE + + + +