jstrachan 2002/07/15 10:36:23
Modified: . maven.xml
Log:
Patched so that this file works on Windows. We may want to define some global
variable like ${maven.script.ext} to be '.bat' on Windows or '' otherwise to make this
kinda thing easier.
Revision Changes Path
1.22 +20 -2 jakarta-turbine-maven/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/maven.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- maven.xml 15 Jul 2002 04:26:31 -0000 1.21
+++ maven.xml 15 Jul 2002 17:36:23 -0000 1.22
@@ -35,7 +35,16 @@
<j:if test="${plugin.parentFile.name == tmp}">
<echo>Building ${plugin.parentFile.name}</echo>
- <exec executable="${maven.home}/bin/maven">
+ <j:choose>
+ <j:when test="${systemScope['os.name'].startsWith('Windows')}">
+ <j:set var="maven.bin.script"
value="${maven.home}/bin/maven.bat"/>
+ </j:when>
+ <j:otherwise>
+ <j:set var="maven.bin.script"
value="${maven.home}/bin/maven"/>
+ </j:otherwise>
+ </j:choose>
+
+ <exec executable="${maven.bin.script}">
<arg line="-d ${plugin.parent}"/>
<arg line="-p ${plugin}"/>
</exec>
@@ -53,7 +62,16 @@
<j:forEach var="plugin" items="${plugins.iterator()}">
<echo>Building ${plugin.parentFile.name}</echo>
- <exec executable="${maven.home}/bin/maven">
+ <j:choose>
+ <j:when test="${systemScope['os.name'].startsWith('Windows')}">
+ <j:set var="maven.bin.script"
value="${maven.home}/bin/maven.bat"/>
+ </j:when>
+ <j:otherwise>
+ <j:set var="maven.bin.script"
value="${maven.home}/bin/maven"/>
+ </j:otherwise>
+ </j:choose>
+
+ <exec executable="${maven.bin.script}">
<arg line="-d ${plugin.parent}"/>
<arg line="-p ${plugin}"/>
</exec>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>