You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/01/05 20:12:02 UTC

svn commit: r896182 - /james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml

Author: norman
Date: Tue Jan  5 19:12:02 2010
New Revision: 896182

URL: http://svn.apache.org/viewvc?rev=896182&view=rev
Log:
add some workaround or windows problems with long cmdline in generated run.bat script

Modified:
    james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml

Modified: james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml
URL: http://svn.apache.org/viewvc/james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml?rev=896182&r1=896181&r2=896182&view=diff
==============================================================================
--- james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml (original)
+++ james/server/sandbox/active/pure_spring_deployment/spring-deployment/pom.xml Tue Jan  5 19:12:02 2010
@@ -50,7 +50,7 @@
           <repositoryLayout>flat</repositoryLayout>
 		  <repositoryName>lib</repositoryName>
           <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
-          <!-- Generate bin scripts for windows and unix pr default -->
+          <!-- Generate bin scripts for windows and unix per default -->
           <platforms>
             <platform>windows</platform>
             <platform>unix</platform>
@@ -58,6 +58,7 @@
           <programs>
             <program>
               <mainClass>org.apache.james.container.spring.Main</mainClass>
+              <!-- call it only run because appassemble will add .bat by default on windows -->              
               <name>run</name>
               <!-- Only generate windows bat script for this application -->
               <platforms>
@@ -84,6 +85,29 @@
           </execution>
         </executions>
       </plugin>
+       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.2</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <configuration>
+
+              <tasks>
+          		<!-- this is only needed because windows freak out on long cmd lines, so we strip of the absolute path
+          			 from the lib dir to make windows happy again -->
+                <replace file="${project.build.directory}/appassembler/bin/run.bat" token="%BASEDIR%\lib" value="..\lib"/>
+              </tasks>
+
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      
 	  <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.2-beta-2</version>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org