michal 2003/07/03 02:01:53 Modified: src/plugins-build/uberjar/xdocs goals.xml changes.xml src/plugins-build/uberjar plugin.jelly Log: Added install, install-snapshot, deploy, deploy-snapshot goals Revision Changes Path 1.2 +16 -0 maven/src/plugins-build/uberjar/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /home/cvs/maven/src/plugins-build/uberjar/xdocs/goals.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- goals.xml 24 Jan 2003 03:46:22 -0000 1.1 +++ goals.xml 3 Jul 2003 09:01:52 -0000 1.2 @@ -17,5 +17,21 @@ </description> </goal> </goals> + <goal> + <name>uberjar:install</name> + <description>Install the uberjar in the local repository</description> + </goal> + <goal> + <name>uberjar:install-snapshot</name> + <description>Install the snapshot version of the uberjar in the local repository</description> + </goal> + <goal> + <name>uberjar:deploy</name> + <description>Deploy the uberjar to the remote repository(ies)</description> + </goal> + <goal> + <name>uberjar:deploy-snapshot</name> + <description>Deploy the snapshot version of the uberjar to the remote repository(ies)</description> + </goal> </body> </document> 1.2 +3 -0 maven/src/plugins-build/uberjar/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven/src/plugins-build/uberjar/xdocs/changes.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- changes.xml 24 Jan 2003 03:46:22 -0000 1.1 +++ changes.xml 3 Jul 2003 09:01:52 -0000 1.2 @@ -17,6 +17,9 @@ Created uberjar plugin based on the cool bootstrapping code that Jason and Bob worked out! </action> + <action dev="michal" type="add"> + Added install, install-snapshot, deploy, deploy-snapshot goals + </action> </release> </body> </document> 1.6 +65 -4 maven/src/plugins-build/uberjar/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /home/cvs/maven/src/plugins-build/uberjar/plugin.jelly,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- plugin.jelly 26 Jun 2003 18:36:40 -0000 1.5 +++ plugin.jelly 3 Jul 2003 09:01:53 -0000 1.6 @@ -1,7 +1,9 @@ <?xml version="1.0"?> -<project xmlns:j="jelly:core" - xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary"> +<project + xmlns:j="jelly:core" + xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary" + xmlns:artifact="artifact"> <!--==================================================================--> <!-- Default goal : Builds a uberjar file --> @@ -16,7 +18,8 @@ <!--==================================================================--> <goal name="uberjar:init"> - <property name="dest" value="${maven.build.dir}/uberjar"/> + <property name="maven.uberjar.final.name" value="${maven.build.dir}/${maven.final.name}-uber.jar"/> + <property name="dest" value="${maven.build.dir}/uberjar"/> <property name="inf" value="${dest}/WORLDS-INF"/> <property name="libdir" value="${inf}/lib"/> <property name="confdir" value="${inf}/conf"/> @@ -74,7 +77,7 @@ <!-- Jar it all up --> <jar - jarfile="${maven.build.dir}/${maven.final.name}-uber.jar" + jarfile="${maven.uberjar.final.name}" basedir="${dest}"> <manifest> <attribute name="Built-By" value="${user.name}"/> @@ -116,5 +119,63 @@ template="classworlds.conf"/> </goal> + + + <!--==================================================================--> + <!-- Install the uberjar in the local repository --> + <!--==================================================================--> + <goal name="uberjar:install" + prereqs="uberjar:uberjar" + description="Install the uberjar in the local repository"> + + <artifact:install + artifact="${maven.uberjar.final.name}" + type="uberjar" + project="${pom}"/> + + </goal> + + <!--=====================================================================--> + <!-- Install the snapshot version of the uberjar in the local repository --> + <!--=====================================================================--> + <goal name="uberjar:install-snapshot" + prereqs="uberjar:uberjar" + description="Install the snapshot version of the uberjar in the local repository"> + + <artifact:install-snapshot + artifact="${maven.uberjar.final.name}" + type="uberjar" + project="${pom}"/> + + </goal> + + <!--==================================================================--> + <!-- Deploys the uberjar to the remote repository --> + <!--==================================================================--> + <goal name="uberjar:deploy" + prereqs="uberjar:uberjar" + description="Deploys the uberjar to the remote repository"> + + <artifact:deploy + artifact="${maven.uberjar.final.name}" + type="uberjar" + project="${pom}"/> + + </goal> + + <!--==================================================================--> + <!-- Deploys the snapshot of the uberjar to the remote repository --> + <!--==================================================================--> + <goal name="uberjar:deploy-snapshot" + prereqs="uberjar:uberjar" + description="Deploys the snapshot version of the uberjar to remote repository"> + + <artifact:deploy-snapshot + artifact="${maven.uberjar.final.name}" + type="uberjar" + project="${pom}"/> + + </goal> + </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]