[jboss-jira] [JBoss JIRA] Updated: (GPD-286) support deployment of process archives to runtime

Tom Baeyens (JIRA) jira-events at lists.jboss.org
Tue Sep 29 05:21:49 EDT 2009


     [ https://jira.jboss.org/jira/browse/GPD-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Baeyens updated GPD-286:
----------------------------

        Summary: support deployment of process archives to runtime  (was: Deployment of process archives)
    Description: 
should be based on ant targets.

for each process file, an action "Create Deploy Target" will be exposed

Create Deploy Target will create a target in an ant build file.  The generated target should look like the one below.

I think we can assume a "build.xml" in the root as the build file.  If not present, the build file should be created.  If the file already exists, the target for deployment of the new process definition should be added to the existing build file.   Maybe an macrodef can be used.

It is assumed that the processes and process classes that are to be deployed as a business archive are part of one src directory.

<?xml version="1.0" encoding="UTF-8"?>

<project name="zzz" default="deploy.zzz">

	<property name="database" value="hsqldb" />
	<property name="jbpm.home" value="c:/Software/jbpm-4.1-SNAPSHOT" />

	<target name="deploy.zzz">

		<!-- compile src to target/classes -->
		<path id="compile.classpath">
			<fileset dir="${jbpm.home}">
				<include name="jbpm.jar" />
			</fileset>
			<fileset dir="${jbpm.home}/lib" />
		</path>
		<mkdir dir="target/classes" />
    <javac srcdir="src" 
    	     destdir="target/classes" 
    	     classpathref="compile.classpath" />
    <copy todir="target/classes">
      <fileset dir="src">
        <exclude name="**/*.java" />
      </fileset>
    </copy>

    <!-- package zzz.bar business archive containing classes and processes -->
		<jar destfile="target/zzz.bar">
      <fileset dir="target/classes" />
    </jar>

    <!-- create the jbpm configuration for deployment -->
    <mkdir dir="target/deploycfg" />
    <copy file="${jbpm.home}/install/src/cfg/hibernate/jdbc/${database}.hibernate.cfg.xml" 
    	    tofile="target/deploycfg/jbpm.hibernate.cfg.xml" 
    	    overwrite="true">
      <filterset filtersfile="${jbpm.home}/install/jdbc/${database}.properties" />
    </copy>
    <copy file="${jbpm.home}/install/src/cfg/jbpm/standalone.testsuite.jbpm.cfg.xml" 
          tofile="target/deploycfg/jbpm.cfg.xml" 
          overwrite="true" />

    <!-- define the jbpm-deploy task in the proper classpath -->
    <path id="deploy.classpath">
      <pathelement location="target/classes" />
      <pathelement location="target/deploycfg" />
    	<path refid="compile.classpath" />
    </path>
    <taskdef name="jbpm-deploy" 
    	       classname="org.jbpm.pvm.internal.ant.JbpmDeployTask" 
    	       classpathref="deploy.classpath" />

		<!-- deploy the zzz business archive -->
    <jbpm-deploy file="target/zzz.bar" />
	</target>

</project>


  was:This needs to be carefully discussed. 



> support deployment of process archives to runtime
> -------------------------------------------------
>
>                 Key: GPD-286
>                 URL: https://jira.jboss.org/jira/browse/GPD-286
>             Project: jBPM GPD
>          Issue Type: Task
>          Components: jpdl
>            Reporter: Koen Aers
>            Assignee: Koen Aers
>             Fix For: jBPM jPDL Designer 4.x
>
>
> should be based on ant targets.
> for each process file, an action "Create Deploy Target" will be exposed
> Create Deploy Target will create a target in an ant build file.  The generated target should look like the one below.
> I think we can assume a "build.xml" in the root as the build file.  If not present, the build file should be created.  If the file already exists, the target for deployment of the new process definition should be added to the existing build file.   Maybe an macrodef can be used.
> It is assumed that the processes and process classes that are to be deployed as a business archive are part of one src directory.
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="zzz" default="deploy.zzz">
> 	<property name="database" value="hsqldb" />
> 	<property name="jbpm.home" value="c:/Software/jbpm-4.1-SNAPSHOT" />
> 	<target name="deploy.zzz">
> 		<!-- compile src to target/classes -->
> 		<path id="compile.classpath">
> 			<fileset dir="${jbpm.home}">
> 				<include name="jbpm.jar" />
> 			</fileset>
> 			<fileset dir="${jbpm.home}/lib" />
> 		</path>
> 		<mkdir dir="target/classes" />
>     <javac srcdir="src" 
>     	     destdir="target/classes" 
>     	     classpathref="compile.classpath" />
>     <copy todir="target/classes">
>       <fileset dir="src">
>         <exclude name="**/*.java" />
>       </fileset>
>     </copy>
>     <!-- package zzz.bar business archive containing classes and processes -->
> 		<jar destfile="target/zzz.bar">
>       <fileset dir="target/classes" />
>     </jar>
>     <!-- create the jbpm configuration for deployment -->
>     <mkdir dir="target/deploycfg" />
>     <copy file="${jbpm.home}/install/src/cfg/hibernate/jdbc/${database}.hibernate.cfg.xml" 
>     	    tofile="target/deploycfg/jbpm.hibernate.cfg.xml" 
>     	    overwrite="true">
>       <filterset filtersfile="${jbpm.home}/install/jdbc/${database}.properties" />
>     </copy>
>     <copy file="${jbpm.home}/install/src/cfg/jbpm/standalone.testsuite.jbpm.cfg.xml" 
>           tofile="target/deploycfg/jbpm.cfg.xml" 
>           overwrite="true" />
>     <!-- define the jbpm-deploy task in the proper classpath -->
>     <path id="deploy.classpath">
>       <pathelement location="target/classes" />
>       <pathelement location="target/deploycfg" />
>     	<path refid="compile.classpath" />
>     </path>
>     <taskdef name="jbpm-deploy" 
>     	       classname="org.jbpm.pvm.internal.ant.JbpmDeployTask" 
>     	       classpathref="deploy.classpath" />
> 		<!-- deploy the zzz business archive -->
>     <jbpm-deploy file="target/zzz.bar" />
> 	</target>
> </project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list