aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorendolf <[email protected]>2010-04-16 17:18:37 +0000
committerendolf <[email protected]>2010-04-16 17:18:37 +0000
commit3719baaf3d7bbca5d7f0458fe0a56f504e2b7594 (patch)
treeb07d04b7a061981205b94e43e31055fcf49c3911
parent654ae9c323f80bcd5ae90c69b643c7c48601b504 (diff)
Add targets to ant that make it possible to place JInput in a maven repository.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@235 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r--build.xml62
-rw-r--r--lib/maven-ant-tasks-2.1.0.jarbin0 -> 1647435 bytes
2 files changed, 61 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 0d7898f..c74489e 100644
--- a/build.xml
+++ b/build.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<project name="Sun Games Initiative Client Technologies" basedir="." default="all">
+<project name="Sun Games Initiative Client Technologies" basedir="." default="all" xmlns:artifact="urn:maven-artifact-ant">
<target name="init">
<!-- If we are running in windows, set dx8 property to true -->
<condition property="windows" >
@@ -237,4 +237,64 @@
</tarfileset>
</tar>
</target>
+
+ <target name="install" description="Installs jinput in to local mvn repo">
+ <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks-2.1.0.jar" />
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
+ classpathref="maven-ant-tasks.classpath"/>
+
+ <artifact:pom id="jinputpom" groupId="net.java.games" artifactId="jinput" version="2.0.2-SNAPSHOT">
+ </artifact:pom>
+ <artifact:writepom pomRefId="jinputpom" file="dist/pom.xml"/>
+
+ <artifact:pom id="jinputpomfile" file="dist/pom.xml" />
+
+ <delete file="dist/jinput-windows-natives.zip"/>
+ <zip destfile="dist/jinput-windows-natives.zip">
+ <fileset dir="dist/">
+ <include name="**/*.dll"/>
+ </fileset>
+ </zip>
+
+ <delete file="dist/jinput-linux-natives.zip"/>
+ <zip destfile="dist/jinput-linux-natives.zip">
+ <fileset dir="dist/">
+ <include name="**/*.so"/>
+ </fileset>
+ </zip>
+
+ <delete file="dist/jinput-osx-natives.jar"/>
+ <zip destfile="dist/jinput-osx-natives.zip" >
+ <fileset dir="dist/">
+ <include name="**/*.jnilib"/>
+ </fileset>
+ </zip>
+
+ <artifact:install file="dist/jinput.jar">
+ <pom refid="jinputpomfile" />
+ <attach file="dist/jinput-windows-natives.zip" classifier="windows-natives" type="zip"/>
+ <attach file="dist/jinput-linux-natives.zip" classifier="linux-natives" type="zip"/>
+ <attach file="dist/jinput-osx-natives.zip" classifier="osx-natives" type="zip"/>
+ </artifact:install>
+ </target>
+
+ <target name="mvndeploy" depends="install" description="Installs jinput in to local mvn repo">
+ <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/>
+
+ <artifact:pom id="jinputpom" groupId="net.java.games" artifactId="jinput" version="2.0.1">
+ </artifact:pom>
+ <artifact:writepom pomRefId="jinputpom" file="dist/pom.xml"/>
+
+ <artifact:pom id="jinputpomfile" file="dist/pom.xml" />
+
+ <artifact:deploy file="dist/jinput.jar">
+ <remoteRepository url="${repository.url}">
+ <authentication username="${repository.username}" password="${repository.password}"/>
+ </remoteRepository>
+ <pom refid="jinputpomfile" />
+ <attach file="dist/jinput-windows-natives.zip" classifier="windows-natives" type="zip"/>
+ <attach file="dist/jinput-linux-natives.zip" classifier="linux-natives" type="zip"/>
+ <attach file="dist/jinput-osx-natives.zip" classifier="osx-natives" type="zip"/>
+ </artifact:deploy>
+ </target>
</project>
diff --git a/lib/maven-ant-tasks-2.1.0.jar b/lib/maven-ant-tasks-2.1.0.jar
new file mode 100644
index 0000000..b240040
--- /dev/null
+++ b/lib/maven-ant-tasks-2.1.0.jar
Binary files differ