-
1. Re: [JBPM 6] How to start JBPM without ant start.demo.noeclipse ?
smithca Jun 9, 2014 12:18 AM (in response to jeudi0506)The ant script will load what it needs to do from the build.xml file.
As such, the start.demo.noeclipse target points to the following:
<target name="start.demo.noeclipse" depends="start.h2,start.jboss" />
This means that in order to run start.demo.noeclipse it will first run start.h2 and start.jboss. So, now look at those targets to see what they do:
<target name="start.h2" depends="start.h2.check" if="start.h2.db">
+ This seems to start h2 database and check that it worked.
<target name="start.jboss">
<property name="jboss.full.path.win" location="${jboss.home}/bin/standalone.bat" />
<exec executable="${jboss.full.path.win}" spawn="yes" osfamily="windows">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="--server-config=standalone-full.xml" />
<arg value="-Dorg.kie.demo=true" />
<arg value="-Dorg.kie.example=false" />
</exec>
<property name="jboss.full.path.linux" location="${jboss.home}/bin/standalone.sh" />
<exec executable="${jboss.full.path.linux}" spawn="yes" osfamily="unix">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="--server-config=standalone-full.xml" />
<arg value="-Dorg.kie.demo=true" />
<arg value="-Dorg.kie.example=false" />
</exec>
<waitfor maxwait="5" maxwaitunit="minute" checkevery="10"
checkeveryunit="second" timeoutproperty="jboss.timeout">
<socket server="${jboss.bind.address}" port="8080" />
</waitfor>
<fail if="jboss.timeout" message="JBoss application server did not start within 5 minutes"/>
</target>
+ This starts jboss using the standalone.bat batch file with a whole host of options, those options depending on which os you are running.
So, if you want to emulate this I guess you need to start the h2 database, and then run the standalone batch file with similar options. However, I do not understand why you couldn't just run the ant version?