1 Reply Latest reply on Jan 15, 2008 11:11 AM by Wolfgang Hollweck

    DeployProcessTask in 3.2.1

    Wolfgang Hollweck Newbie

      I just found out that my ant task that was working with jbpm-3.4.1 will not work any more with jbpm-3.2.1

       <target name="deploy.par" depends="create.par">
       <taskdef name="deploypar"
       classname="org.jbpm.ant.DeployProcessTask">
       <classpath refid="compile.classpath" />
       <classpath refid="hibernate"/>
       <classpath path="./lib/commons-collections-3.2.jar" />
       <classpath path="${jboss.root.dir}/server/default/lib/cglib.jar" />
       <classpath path="${jboss.root.dir}/server/default/lib/antlr-2.7.6.jar" />
       </taskdef>
       <deploypar process="jpdl/deployment/test.par"
       cfg="jpdl/deployment/hibernate.cfg.xml" />
       </target>
      


      I get the following error message:
      BUILD FAILED
      .../build.xml:161: deploypar doesn't support the "cfg" attribute
      


      The 'cfg' attribute is not valid any more...
      I found out that there's an attribute 'jbpmCfg' now, instead.
      But configuring the deploypar target with 'jbpmCfg' attribute pointing to my 'hibernate.cfg.xml' doesn't work. Either pointing it to my jbpm.cfg.xml and configuring the path to my hibernate.cfg.xml within the jbpm.cfg.xml file doesn't work.
      It always results in
      couldn't deploy process archives : hibernate.cfg.xml not found
      


      Documentation in user guide is not up to date, i.e. still described with 'cfg' attribute setting.

      Anybody knows how to set up my paths correctly?
      Anybody got a working ant task example with jbpm 3.2.x?


        • 1. Re: DeployProcessTask in 3.2.1
          Wolfgang Hollweck Newbie

          It finally works now with additionally adding the folder with my hibernate.cfg.xml to my classpath.

           <target name="deploy.par" depends="create.par">
           <taskdef name="deploypar"
           classname="org.jbpm.ant.DeployProcessTask">
           <classpath refid="compile.classpath" />
           <classpath refid="hibernate"/>
           <classpath path="./lib/commons-collections-3.2.jar" />
           <classpath>
           <pathelement path="jpdl/deployment" />
           </classpath>
           <classpath path="${jboss.root.dir}/server/default/lib/cglib.jar" />
           <classpath path="${jboss.root.dir}/server/default/lib/antlr-2.7.6.jar" />
           </taskdef>
           <deploypar process="jpdl/deployment/test.par"
           jbpmCfg="jpdl/deployment/jbpm.cfg.xml" />
           </target>
          


          Why had the DeployProcessTask to be changed?

          Updating documentation and adding an example ant task would really have been nice to have, at least...