JBoss Community

Re: Startup of task service

created by David Harris in jBPM - View the full discussion

Hi, technically would this work since <java classname="org.jbpm.DemoTaskService" fork="true">  comes at the end?  That would leave </java> appearing before.  So, I did this

 

 

  <target name="start.human.task">


      <mkdir dir="${install.home}/task-service/target"/>
      <javac srcdir="${install.home}/task-service/src" destdir="${install.home}/task-service/target" classpathref="classpath.human.task">
          <compilerarg value="-Xlint:unchecked"/>
     </javac>
    <copy todir="${install.home}/task-service/target">
         <fileset dir="${install.home}/task-service/resources"/>
    </copy>


    <sysproperty key="jbpm.user.group.mapping" value="${install.home}/jboss-as-7.1.1.Final/standalone/configuration/roles.properties"/>
    <java classname="org.jbpm.DemoTaskService" fork="true"> 
         <classpath>
            <pathelement path="${install.home}/task-service/target"/>
            <path refid="classpath.human.task" />
         </classpath>
    </java>

 

 

  </target>

 

However, it didn't work.  I got the following response:

 

C:\jbpm>ant start.human.task
Buildfile: C:\jbpm\build.xml

start.human.task:
    [javac] C:\jbpm\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
C:\jbpm\build.xml:870: Problem: failed to create task or type sysproperty
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds

C:\jbpm>

 

What's next?



Reply to this message by going to Community

Start a new discussion in jBPM at Community