Remove duplicate goals

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2003-09-30 23:26:03 +00:00
parent 23a3baa470
commit fe280edcb3

View File

@@ -1,52 +1,4 @@
<project default="plugin">
<goal name="plugin">
<!-- set up the directory the jar will be assembled to -->
<property name="assemblyDir" value="target/assemblyDir"/>
<mkdir dir="${assemblyDir}"/>
<!-- copy the plugin files to the assembly directory -->
<copy todir="${assemblyDir}">
<fileset dir=".">
<exclude name="**/target/**"/>
<exclude name="src/**"/>
<exclude name="maven.xml"/>
<exclude name="maven.log"/>
<exclude name="**/velocity.log"/>
<exclude name="**/.cvsignore"/>
</fileset>
</copy>
<!-- jar the files up -->
<jar jarfile="${maven.build.dir}/${maven.final.name}.jar">
<fileset dir="${assemblyDir}"/>
</jar>
<!-- copy the jar to the local repository as a maven jar -->
<copy
file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.repo.local}/maven/jars"/>
</goal>
<!-- install the plugin in the maven home directory -->
<goal name="plugin:install" prereqs="plugin"
description="Install the plugin in Maven's plugins dir">
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.home}/plugins"/>
</goal>
<!-- unzip the jar file into a plugin directory -->
<goal name="plugin:deploy" prereqs="plugin"
description="Install an unpacked version of the plugin">
<mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
<unzip src="${maven.build.dir}/${maven.final.name}.jar"
dest="${maven.home}/plugins/${maven.final.name}"/>
</goal>
</project>