|
From: Matthew T. <mt...@wc...> - 2004-09-01 14:17:21
|
Saving this here for posterity... -- Matthew
-----Forwarded Message-----
From: Yong K. Pak
To: Matthew Todd
Cc: Jason Williams, Whey Joo Tan
Subject: .bat file for windows
Date: Tue, 03 Aug 2004 12:53:23 -0400
I have a map-drives.bat file in my startup folder that puts the
marketchangers project in the root of my N drive that contains this
command:
subst n: "M:\CVS Repository\MarketChangers\marketchangers"
I also have 2 files in n:\server:
"run.bat.tmp" - a copy of jboss run.bat with the following lines
modified:
@set JAVA_OPTS="-Djboss.server.home.dir=n:\server/target/ms/marketchangers" "-Djboss.server.home.url=file:/n:/server/target/ms/marketchangers"
@call n:\server/target/jboss-3.2.3\bin\run.bat -c marketchangers
I call modify-build.bat after a build - here's the source:
move target\marketchangers-standalone target\ms
copy run.bat.tmp target\ms\bin\run.bat
cd target\ms\bin
I do a run.bat to start the server.
Please let me know when you have a better way to do this.
|