Am 26.01.2012 20:30, schrieb Quince, Devin:

> <targetname="QA-Install">
> <exec workingdir="c:\DLS\"basedir="c:\DLS\"program="ChainInstalls.bat">
> </exec>
> </target>
>
> And the batch file that is being called by chaininstalls.bat file is this
>
> cd c:\DLS
>
> java -Dfelix.config.properties=file:conf/config.properties
> -Dtroppus.http.jetty.resource.base="c:/DLS"
> -Dlogback.configurationFile="c:/DLS/conf/logback.xml"
> -Dlogback.logfile.path="%APPDATA%/Troppus Software/Digital LifeSupport"
> -Dtroppus.oesis.config.path="c:/DLS/OesisSupport_3_5/bin/release"
> -Dcom.jacob.autogc=true -jar bin/felix.jar "%APPDATA%/Troppus
> Software/Digital LifeSupport/felixcache"
>
>
> Any ideas on how to get this task to return back to the script, so I can
> execute the next task?

Hi Devin,
I have two proposals:
a) use cmd /c by your own:
<exec program='cmd.exe' commandline='/C "c:\DLS\ChainInstalls.bat"' />

b) drop your own bat file (if noone else need it)
<exec program="java.exe" workingdir="c:\DLS\" >
  <arg value='-Dfelix.config.properties=file:conf/config.properties' />
  <arg value='-Dtroppus.http.jetty.resource.base=c:/DLS' />
  <arg value='-Dlogback.configurationFile=c:/DLS/conf/logback.xml' />
  <arg value='-Dlogback.logfile.path="%APPDATA%/Troppus Software/Digital 
LifeSupport"' />
  <arg 
value='-Dtroppus.oesis.config.path=c:/DLS/OesisSupport_3_5/bin/release' />
  <arg value='-Dcom.jacob.autogc=true' />
  <arg value='-jar bin/felix.jar' />
  <arg value='"%APPDATA%/Troppus Software/Digital 
LifeSupport/felixcache"' />
</exec>


hth
Dominik

-- 
The answer to the great question of life,
the universe and everything is 42 (Douglas Adams)

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to