-
1. Re: JBPM 4.3 command line deployment of bar
swiderski.maciej Apr 13, 2010 12:22 PM (in response to madsph)Hi,
you can still use Ant task for deployments just make sure you have correctly configured class path for it.
I use that approach as well, not from Hudson though. Here are two targets that I have in my ant script:
<target name="jbpm.libs.path"> <path id="jbpm.libs.incl.dependencies"> <pathelement location="to-deploy-conf" /> <fileset dir="${jbpm.home}"> <include name="jbpm.jar" /> </fileset> <fileset dir="${jbpm.home}/lib" /> </path> </target> <target name="deploy" depends="jbpm.libs.path"> <taskdef name="jbpm-deploy" classname="org.jbpm.pvm.internal.ant.JbpmDeployTask" classpathref="jbpm.libs.incl.dependencies" /> <jbpm-deploy file="${dest.dir}/bar/${bar.name}" /> </target>
Make sure that jbpm configuration files are on your class path as well, in my example it is inside to-deploy-conf directory.
Cheers
Maciej
-
2. Re: JBPM 4.3 command line deployment of bar
rebody Apr 13, 2010 8:48 PM (in response to madsph)Hi Mads,
I think you are using a wrong version of XML parser. I saw a AbstractMethodError in the exception stack trace. You should re-check your classpath and remove the unnecessary XML parsers, e.g. xersers.jar.
-
3. Re: JBPM 4.3 command line deployment of bar
madsph Apr 14, 2010 7:25 AM (in response to madsph)I realized that eclipse was bundled with a newer version of ant than the one in my command line path - upgrading ant and adding the cfg.xml files to classpath did the trick - thank you for the help.
-
4. Re: JBPM 4.3 command line deployment of bar
madsph Apr 14, 2010 8:35 AM (in response to madsph)Just in case others would like to use a simple ant target for deploying their processes, I have made a small project with only the jars needed for deployment included.
The ant target takes the bar file as an argument so you can run it like:
ant -Dbar_file=./jbpm-4.3/examples/target/examples.bar
The example is configured to run against postgresql with default port and user.
-
deploy_tool.zip 6.2 MB
-