1 Reply Latest reply on Jul 26, 2005 1:41 PM by Olivier Kloss

    deploy a process

    Ronald van Kuijk Master

      if you look in the package dir in the source you see a class that almost is called the same? maybe that one works?

        • 1. Re: deploy a process
          Olivier Kloss Newbie

          Here's the basic idea of what I did:

          <target name="deploy.par">
           <taskdef name="deploypar" classname="org.jbpm.ant.DeployParTask">
           <classpath refid="classpath"/>
           </taskdef>
           <deploypar par="C:/env/jbpm-starters-kit-3.0/jbpm/build/websale.par" properties="C:/eclipse3/workspace/MyApp/hibernate.properties"/>
           </target>


          I put this in the main build.xml of the jbpm.3 project and it works fine. I'm not sure about the hibernate.properties file, maybe it should be the jbpm.properties one? Anyway, it seems to work for me.
          You should add the par creation as a dependency. Well I mean, any way you see fit to make sure that you don't forget to recompile before deploying when you make changes. ; )
          A quick and dirty way looks like this:
          <target name="deploy.par">
           <taskdef name="deploypar" classname="org.jbpm.ant.DeployParTask">
           <classpath refid="classpath"/>
           </taskdef>
           <zip destfile="build/websale.par">
           <fileset dir="build/websale" />
           </zip>
           <deploypar par="C:/env/jbpm-starters-kit-3.0/jbpm/build/websale.par" properties="C:/eclipse3/workspace/MyApp/hibernate.properties"/>
           </target>

          but it's just to give you and idea. There are 100 better ways to do this.

          (The documentation should be fixed in that regard btw, as the instructions don't work. The suggested class is not in the project, for one thing).

          Hope this helps!