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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -