You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ka...@apache.org on 2002/12/16 16:26:32 UTC
cvs commit: jakarta-turbine-maven/src/plugins-build/uberjar plugin.jelly project.xml
kaz 2002/12/16 07:26:32
Modified: src/plugins-build/uberjar plugin.jelly project.xml
Log:
Updating the uberjar plugin to work with the new classworlds JARs Bob
has just created. For the user of this plugin, its a completely
transparent change.
Revision Changes Path
1.5 +8 -7 jakarta-turbine-maven/src/plugins-build/uberjar/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/uberjar/plugin.jelly,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- plugin.jelly 16 Dec 2002 05:29:33 -0000 1.4
+++ plugin.jelly 16 Dec 2002 15:26:32 -0000 1.5
@@ -17,8 +17,11 @@
<goal name="uberjar:init">
<property name="dest" value="target/uberjar"/>
- <property name="libdir" value="${dest}/lib"/>
+ <property name="inf" value="${dest}/WORLDS-INF"/>
+ <property name="libdir" value="${inf}/lib"/>
+ <property name="confdir" value="${inf}/conf"/>
<mkdir dir="${libdir}"/>
+ <mkdir dir="${confdir}"/>
</goal>
@@ -38,7 +41,7 @@
<attainGoal name="uberjar:classworlds-conf"/>
</j:when>
<j:otherwise>
- <copy file="${uberconf}" tofile="${dest}/classworlds.conf"/>
+ <copy file="${uberconf}" tofile="${confdir}/classworlds.conf"/>
</j:otherwise>
</j:choose>
@@ -54,11 +57,9 @@
file="${maven.repo.local}/${dep.projectId}/jars/${dep.artifact}"/>
</j:forEach>
- <!-- Copy the classworlds jar
- FIXME: what if the user's project has classworlds as a dep, or
- more specifically, what happens if the versions differ. -->
+ <!-- Copy the classworlds.jar -->
<copy
- tofile="${libdir}/classworlds.jar"
+ tofile="${inf}/classworlds.jar"
file="${plugin.getDependencyPath('classworlds')}"/>
<!-- Unjar the bootstrap code -->
@@ -105,7 +106,7 @@
happen soon. -->
<j:set var="self" value="${maven.final.name}"/>
<velocity:merge
- name="${dest}/classworlds.conf"
+ name="${confdir}/classworlds.conf"
template="${plugin.dir}/src/conf/classworlds.conf"/>
</goal>
1.2 +2 -2 jakarta-turbine-maven/src/plugins-build/uberjar/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/uberjar/project.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project.xml 14 Dec 2002 23:43:13 -0000 1.1
+++ project.xml 16 Dec 2002 15:26:32 -0000 1.2
@@ -87,13 +87,13 @@
<dependencies>
<dependency>
<id>classworlds</id>
- <version>1.0-beta-2</version>
+ <version>1.0-beta-3</version>
<url>http://classworlds.werken.com</url>
</dependency>
<dependency>
<id>classworlds+boot</id>
- <version>1.0-beta-2</version>
+ <version>1.0-beta-3</version>
<url>http://classworlds.werken.com</url>
</dependency>
</dependencies>