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 be...@apache.org on 2007/09/27 07:27:42 UTC
svn commit: r579897 -
/james/server/sandbox/spring-integration/spring-deployment/build.xml
Author: berndf
Date: Wed Sep 26 22:27:41 2007
New Revision: 579897
URL: http://svn.apache.org/viewvc?rev=579897&view=rev
Log:
add windows startup script
fix the replacement from absolute to relative library patch
Modified:
james/server/sandbox/spring-integration/spring-deployment/build.xml
Modified: james/server/sandbox/spring-integration/spring-deployment/build.xml
URL: http://svn.apache.org/viewvc/james/server/sandbox/spring-integration/spring-deployment/build.xml?rev=579897&r1=579896&r2=579897&view=diff
==============================================================================
--- james/server/sandbox/spring-integration/spring-deployment/build.xml (original)
+++ james/server/sandbox/spring-integration/spring-deployment/build.xml Wed Sep 26 22:27:41 2007
@@ -25,7 +25,7 @@
<property name="spring-deployment.artefact.name" value="${name}-spring-deployment-${version}" />
- <property name="spring-deployment.target.basedir" value="${basedir}/target/" />
+ <property name="spring-deployment.target.basedir" value="${basedir}/target" />
<property name="spring-deployment.target.dir" value="${spring-deployment.target.basedir}/${spring-deployment.artefact.name}" />
<property name="spring-deployment.target.bin.dir" value="${spring-deployment.target.dir}/bin" />
<property name="spring-deployment.target.lib.dir" value="${spring-deployment.target.dir}/lib" />
@@ -319,13 +319,24 @@
<property name="exe-classpath" refid="targetlibs" />
<mkdir dir="${spring-deployment.target.bin.dir}" />
+
+ <!-- create unix startup script-->
<echo file="${spring-deployment.target.bin.dir}/run.sh" append="false">#! /bin/sh
java -cp ${exe-classpath}:../conf org.apache.james.container.spring.Main
</echo>
-
+ <echo>${spring-deployment.target.lib.dir}</echo>
<replace file="${spring-deployment.target.bin.dir}/run.sh" token="${spring-deployment.target.lib.dir}" value="../lib" />
- <!-- TODO change the classpath elements coming from stage folder, from absolute into relative -->
+ <replace file="${spring-deployment.target.bin.dir}/run.sh" token=";" value=":" />
<chmod file="${spring-deployment.target.bin.dir}/run.sh" perm="a+rx" />
+
+ <!-- create windows startup script-->
+ <echo file="${spring-deployment.target.bin.dir}/run.bat" append="false">
+echo This is batch file is untested. Please report to server-dev@james.apache.org if it works or not. Thank you!
+pause
+java -cp ${exe-classpath};../conf org.apache.james.container.spring.Main
+ </echo>
+ <replace file="${spring-deployment.target.bin.dir}/run.bat" token="${spring-deployment.target.lib.dir}" value="../lib" />
+ <replace file="${spring-deployment.target.bin.dir}/run.bat" token=":" value=";" />
</target>
<target name="dist-binary" >
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org