Start Jboss with Ant. Command exec doesn't work -


i try start jboss ant. when execute script :

<target name="start-jboss" >          <exec executable="${jboss.bin.dir}\run.bat" >                        <arg line="--configuration=myserver -b localhost" />          </exec>  </target>    

jboss blocking @ step :

 [exec] 15:52:55,373 info  [ajpprotocol] initializing coyote ajp/1.3 on ajp-localhost%2f127.0.0.1-8009 

but when run run.bat works... same when add spawn="true" in exec.

i think problem comes eclipse...

thanks

to run batchfile use cmd executable, :

<exec dir"yourworkingdir" executable="cmd" failonerror="true"> <arg line="/c ${jboss.bin.dir}\run.bat --configuration=myserver -b localhost"/> </exec> 

if arg line=... doesn't work, use arg value=... every parameter.

edit : if have trouble using batchfile, why not rid of using addtional batchfile , use java task straightforward explained here ?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -