[jbpm-commits] JBoss JBPM SVN: r3156 - in jbpm3/trunk/modules/integration/jboss42: scripts and 4 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Nov 28 11:57:06 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-11-28 11:57:06 -0500 (Fri, 28 Nov 2008)
New Revision: 3156

Added:
   jbpm3/trunk/modules/integration/jboss42/scripts/antrun-test-jars.xml
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/deployment/
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/deployment/fork-join-example/
Removed:
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/
Modified:
   jbpm3/trunk/modules/integration/jboss42/pom.xml
   jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml
   jbpm3/trunk/modules/integration/jboss42/src/test/java/org/jbpm/test/integration/deployment/SimpleDeploymentTest.java
Log:
Enable PAR hot-deployment testing

Modified: jbpm3/trunk/modules/integration/jboss42/pom.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/pom.xml	2008-11-28 16:42:27 UTC (rev 3155)
+++ jbpm3/trunk/modules/integration/jboss42/pom.xml	2008-11-28 16:57:06 UTC (rev 3156)
@@ -101,6 +101,25 @@
     </testResources>
     <plugins>
       <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>build-test-jars</id>
+            <phase>test-compile</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <tasks>
+                <property name="tests.output.dir" value="${project.build.directory}" />
+                <property name="tests.resources.dir" value="${basedir}/src/test/resources" />
+                <ant antfile="scripts/antrun-test-jars.xml" target="build-test-jars" />
+              </tasks>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <executions>
           <execution>

Added: jbpm3/trunk/modules/integration/jboss42/scripts/antrun-test-jars.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/scripts/antrun-test-jars.xml	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/scripts/antrun-test-jars.xml	2008-11-28 16:57:06 UTC (rev 3156)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ============================================================ -->
+<!--  JBoss, the OpenSource J2EE webOS                            -->
+<!--  Distributable under LGPL license.                           -->
+<!--  See terms of license at http://www.gnu.org.                 -->
+<!-- ============================================================ -->
+
+<!-- $Id$ -->
+
+<project>
+  
+  <description>jBPM enterprise test archive builder</description>
+  
+  <!-- ================================================================== -->
+  <!-- Building                                                           -->
+  <!-- ================================================================== -->
+  
+  <target name="build-test-jars" description="Build the test deployments">
+    
+    <mkdir dir="${tests.output.dir}/test-libs"/>
+    
+    <!-- fork-join-example -->
+    <jar jarfile="${tests.output.dir}/test-libs/fork-join-example.par">
+      <fileset dir="${tests.resources.dir}/deployment/fork-join-example"/>
+    </jar>
+
+    <!-- Please add alphabetically -->
+    
+  </target>
+  
+</project>


Property changes on: jbpm3/trunk/modules/integration/jboss42/scripts/antrun-test-jars.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml	2008-11-28 16:42:27 UTC (rev 3155)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml	2008-11-28 16:57:06 UTC (rev 3156)
@@ -4,7 +4,7 @@
   $Id$
 -->
 <server>
-   <mbean code="org.jbpm.integration.spec.jboss42.PARSubDeployer"
+   <mbean code="org.jbpm.integration.jboss42.PARSubDeployer"
       name="jboss.deployer:service=PARDeployer">
    </mbean>
 </server>
\ No newline at end of file

Modified: jbpm3/trunk/modules/integration/jboss42/src/test/java/org/jbpm/test/integration/deployment/SimpleDeploymentTest.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/test/java/org/jbpm/test/integration/deployment/SimpleDeploymentTest.java	2008-11-28 16:42:27 UTC (rev 3155)
+++ jbpm3/trunk/modules/integration/jboss42/src/test/java/org/jbpm/test/integration/deployment/SimpleDeploymentTest.java	2008-11-28 16:57:06 UTC (rev 3156)
@@ -33,8 +33,8 @@
  */
 public class SimpleDeploymentTest extends IntegrationTestCase
 {
-  String PAR_DEPLOYMENT = "simple/fork-join-example.par";
-  String XML_DEPLOYMENT = "simple/simple-process.xml";
+  String XML_DEPLOYMENT = "deployment/simple-process.xml";
+  String PAR_DEPLOYMENT = "fork-join-example.par";
 
   public void testSimpleXMLDeploy() throws Exception
   {
@@ -46,13 +46,13 @@
     undeploy(getResourceURL(XML_DEPLOYMENT));
   }
 
-  public void _testSimplePARDeploy() throws Exception
+  public void testSimplePARDeploy() throws Exception
   {
-    deploy(getResourceURL(PAR_DEPLOYMENT));
+    deploy(getTestArchiveURL(PAR_DEPLOYMENT));
   }
 
-  public void _testSimplePARUndeploy() throws Exception
+  public void testSimplePARUndeploy() throws Exception
   {
-    undeploy(getResourceURL(PAR_DEPLOYMENT));
+    undeploy(getTestArchiveURL(PAR_DEPLOYMENT));
   }
 }

Copied: jbpm3/trunk/modules/integration/jboss42/src/test/resources/deployment (from rev 3150, jbpm3/trunk/modules/integration/spec/src/test/resources/deployment)

Copied: jbpm3/trunk/modules/integration/jboss42/src/test/resources/deployment/fork-join-example (from rev 3154, jbpm3/trunk/modules/integration/spec/src/test/resources/deployment/fork-join-example)




More information about the jbpm-commits mailing list