added ant task to install Vault.jar into local maven repository

This commit is contained in:
mung3r 2011-11-23 09:34:18 -08:00
parent 79c2dd39b4
commit f4c53f70c9
3 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<project default="main"> <project default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property environment="env"/> <property environment="env"/>
@ -7,7 +7,7 @@
<fileset dir="lib" includes="**/*.jar"/> <fileset dir="lib" includes="**/*.jar"/>
</path> </path>
<target name="main" depends="clean, compile, compress, javadoc" description="Main target"> <target name="main" depends="clean, compile, compress, maven, javadoc" description="Main target">
<echo>Building the .jar file.</echo> <echo>Building the .jar file.</echo>
</target> </target>
@ -56,4 +56,12 @@
</bottom> </bottom>
</javadoc> </javadoc>
</target> </target>
<target name ="maven" depends="compress">
<artifact:install file="Vault.jar" pomRefId="maven_pom"/>
</target>
<artifact:pom id="maven_pom" file="pom.xml"/>
<path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks-2.1.3.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" />
</project> </project>

Binary file not shown.

10
pom.xml Normal file
View File

@ -0,0 +1,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.1.0dev</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>