JBoss JBPM SVN: r5244 - in jbpm4/trunk/modules/userguide/src/main/docbook/en: modules and 1 other directory.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 05:43:13 -0400 (Mon, 06 Jul 2009)
New Revision: 5244
Modified:
jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml
jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch06-Jpdl.xml
Log:
fixing the docs
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml 2009-07-06 09:40:23 UTC (rev 5243)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml 2009-07-06 09:43:13 UTC (rev 5244)
@@ -9,7 +9,6 @@
<!ENTITY ch06-Jpdl SYSTEM "modules/ch06-Jpdl.xml">
<!ENTITY ch07-Variables SYSTEM "modules/ch07-Variables.xml">
<!ENTITY ch08-Scripting SYSTEM "modules/ch08-Scripting.xml">
- <!ENTITY ch09-Identity SYSTEM "modules/ch09-Identity.xml">
]>
<book lang="en">
@@ -28,6 +27,5 @@
&ch06-Jpdl;
&ch07-Variables;
&ch08-Scripting;
- &ch09-Identity;
</book>
\ No newline at end of file
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch06-Jpdl.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch06-Jpdl.xml 2009-07-06 09:40:23 UTC (rev 5243)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch06-Jpdl.xml 2009-07-06 09:43:13 UTC (rev 5244)
@@ -1227,6 +1227,69 @@
</tbody>
</tgroup>
</table>
+ <table><title><literal>notification</literal> attributes:</title>
+ <tgroup cols="5" rowsep="1" colsep="1">
+ <thead>
+ <row>
+ <entry>Attribute</entry>
+ <entry>Type</entry>
+ <entry>Default</entry>
+ <entry>Required?</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>continue</literal></entry>
+ <entry>{sync | async | exclusive}</entry>
+ <entry>sync</entry>
+ <entry>optional</entry>
+ <entry>Specifies if an asynchronous continuation should be introduced
+ right before sending this notification email.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table><title><literal>reminder</literal> attributes:</title>
+ <tgroup cols="5" rowsep="1" colsep="1">
+ <thead>
+ <row>
+ <entry>Attribute</entry>
+ <entry>Type</entry>
+ <entry>Default</entry>
+ <entry>Required?</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>duedate</literal></entry>
+ <entry>duration (plain string or containing expression)</entry>
+ <entry></entry>
+ <entry><emphasis role="bold">required</emphasis></entry>
+ <entry>Delay before a reminder email should be send.
+ </entry>
+ </row>
+ <row>
+ <entry><literal>repeat</literal></entry>
+ <entry>duration (plain string or containing expression)</entry>
+ <entry></entry>
+ <entry>optional</entry>
+ <entry>Delay after a subsequent reminder email should be send</entry>
+ </row>
+ <row>
+ <entry><literal>continue</literal></entry>
+ <entry>{sync | async | exclusive}</entry>
+ <entry>sync</entry>
+ <entry>optional</entry>
+ <entry>Specifies if an asynchronous continuation should be introduced
+ right before sending this notification email.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
<para>Here is a basic example that accepts the default templates.</para>
<programlisting><![CDATA[<task name="review"
assignee="#{order.owner}"
@@ -2329,26 +2392,15 @@
</process>
</programlisting>
</para>
-
<para>
- The examples in the distribution contain some processes using the mail
- activity. If you want to change the SMTP server, you can adjust the
- <emphasis role="bold">jbpm.mail.properties</emphasis> file, which is
- imported in the examples jBPM configuration file as follows:
-
- <programlisting>
-<transaction-context>
- ...
- <mail-session>
- <mail-server>
- <session-properties resource="jbpm.mail.properties" />
- </mail-server>
- </mail-session>
-</transaction-context>
- </programlisting>
+ The default configuration after installation contains a
+ <literal>jbpm.mail.properties</literal> for specifying the mail server
+ to be used by jBPM. To use another mail server then localhost,
+ property <literal>mail.smtp.host</literal> can be updated in that
+ configuration file.
</para>
-
- <para>Refer to the Developers Guide for advanced mail configuration and usage.</para>
+ <para>Refer to the Developers Guide for (unsupported) advanced mail
+ configuration and usage.</para>
</section>
</section>
15 years, 4 months
JBoss JBPM SVN: r5243 - in jbpm4/trunk/modules: test-db and 1 other directory.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 05:40:23 -0400 (Mon, 06 Jul 2009)
New Revision: 5243
Modified:
jbpm4/trunk/modules/examples/pom.xml
jbpm4/trunk/modules/test-db/pom.xml
Log:
fixed poms for integration test runs
Modified: jbpm4/trunk/modules/examples/pom.xml
===================================================================
--- jbpm4/trunk/modules/examples/pom.xml 2009-07-06 08:53:34 UTC (rev 5242)
+++ jbpm4/trunk/modules/examples/pom.xml 2009-07-06 09:40:23 UTC (rev 5243)
@@ -95,6 +95,9 @@
</goals>
<configuration>
<tasks>
+ <echo message="database: ${database}" />
+ <available property="qa.database.props.available" file="../../qa/jdbc/${database}.properties" />
+ <echo message="qa.database.props.available: ${qa.database.props.available}" />
<copy file="../../qa/jdbc/${database}.properties"
tofile="target/test-classes/jdbc.properties"
overwrite="true" />
Modified: jbpm4/trunk/modules/test-db/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 08:53:34 UTC (rev 5242)
+++ jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 09:40:23 UTC (rev 5243)
@@ -189,6 +189,23 @@
</goals>
<configuration>
<tasks>
+ <echo message="database: ${database}" />
+ <available property="qa.database.props.available" file="../../qa/jdbc/${database}.properties" />
+ <echo message="qa.database.props.available: ${qa.database.props.available}" />
+ <copy file="../../qa/jdbc/${database}.properties"
+ tofile="target/test-classes/jdbc.properties"
+ overwrite="true" />
+ <copy file="${user.home}/.jbpm4/jdbc/${database}.properties"
+ tofile="target/test-classes/jdbc.properties"
+ overwrite="true"
+ failonerror="false"/>
+ <copy file="../../modules/distro/src/main/files/db/hibernate.cfg/${database}.hibernate.cfg.xml"
+ tofile="target/test-classes/jbpm.hibernate.cfg.xml"
+ overwrite="true">
+ <filterset>
+ <filtersfile file="target/test-classes/jdbc.properties" />
+ </filterset>
+ </copy>
<copy todir="target/test-classes" overwrite="true" failonerror="false">
<fileset dir="../distro/src/main/files/jboss/jbpm.cfg.remote.client" />
</copy>
15 years, 4 months
JBoss JBPM SVN: r5242 - jbpm4/trunk/modules/examples.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 04:53:34 -0400 (Mon, 06 Jul 2009)
New Revision: 5242
Modified:
jbpm4/trunk/modules/examples/pom.xml
Log:
added -Ddatabase=$DATABASE to the testrun to fix SQLStmtTest
Modified: jbpm4/trunk/modules/examples/pom.xml
===================================================================
--- jbpm4/trunk/modules/examples/pom.xml 2009-07-06 08:36:21 UTC (rev 5241)
+++ jbpm4/trunk/modules/examples/pom.xml 2009-07-06 08:53:34 UTC (rev 5242)
@@ -95,14 +95,15 @@
</goals>
<configuration>
<tasks>
- <copy file="../../qa/jdbc/${database}.properties"
- tofile="target/test-classes/jdbc.properties" />
- <copy file="${user.home}/.jbpm4/jdbc/${database}.properties"
+ <copy file="../../qa/jdbc/${database}.properties"
tofile="target/test-classes/jdbc.properties"
+ overwrite="true" />
+ <copy file="${user.home}/.jbpm4/jdbc/${database}.properties"
+ tofile="target/test-classes/jdbc.properties"
overwrite="true"
- failonerror="true "/>
- <copy file="../../modules/distro/src/main/files/db/hibernate.cfg/${database}.hibernate.cfg.xml"
- tofile="target/test-classes/jbpm.hibernate.cfg.xml"
+ failonerror="false"/>
+ <copy file="../../modules/distro/src/main/files/db/hibernate.cfg/${database}.hibernate.cfg.xml"
+ tofile="target/test-classes/jbpm.hibernate.cfg.xml"
overwrite="true">
<filterset>
<filtersfile file="target/test-classes/jdbc.properties" />
15 years, 4 months
JBoss JBPM SVN: r5241 - jbpm4/trunk/modules/test-db.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 04:36:21 -0400 (Mon, 06 Jul 2009)
New Revision: 5241
Modified:
jbpm4/trunk/modules/test-db/pom.xml
Log:
fixed pom for -Ddatabase test runs
Modified: jbpm4/trunk/modules/test-db/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 08:12:09 UTC (rev 5240)
+++ jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 08:36:21 UTC (rev 5241)
@@ -108,11 +108,12 @@
<configuration>
<tasks>
<copy file="../../qa/jdbc/${database}.properties"
- tofile="target/test-classes/jdbc.properties" />
+ tofile="target/test-classes/jdbc.properties"
+ overwrite="true" />
<copy file="${user.home}/.jbpm4/jdbc/${database}.properties"
tofile="target/test-classes/jdbc.properties"
overwrite="true"
- failonerror="true "/>
+ failonerror="false"/>
<copy file="../../modules/distro/src/main/files/db/hibernate.cfg/${database}.hibernate.cfg.xml"
tofile="target/test-classes/jbpm.hibernate.cfg.xml"
overwrite="true">
15 years, 4 months
JBoss JBPM SVN: r5240 - jbpm4/trunk/qa.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 04:12:09 -0400 (Mon, 06 Jul 2009)
New Revision: 5240
Modified:
jbpm4/trunk/qa/hudson-jbpm4-jboss.sh
Log:
added -Ddatabase=$DATABASE to the testrun to fix SQLStmtTest
Modified: jbpm4/trunk/qa/hudson-jbpm4-jboss.sh
===================================================================
--- jbpm4/trunk/qa/hudson-jbpm4-jboss.sh 2009-07-06 07:33:19 UTC (rev 5239)
+++ jbpm4/trunk/qa/hudson-jbpm4-jboss.sh 2009-07-06 08:12:09 UTC (rev 5240)
@@ -17,6 +17,6 @@
ant -f qa/build.xml $ANT_PROPERTIES integration.testrun.setup
-mvn -U -Djboss.bind.address=localhost test
+mvn -U -Djboss.bind.address=localhost -Ddatabase=$DATABASE test
ant -f qa/build.xml $ANT_PROPERTIES integration.testrun.teardown
15 years, 4 months
JBoss JBPM SVN: r5239 - jbpm4/trunk/modules/test-db.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-06 03:33:19 -0400 (Mon, 06 Jul 2009)
New Revision: 5239
Modified:
jbpm4/trunk/modules/test-db/pom.xml
Log:
JBPM-2354 including SQLStmtTest for re-testing on qa lab
Modified: jbpm4/trunk/modules/test-db/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 07:23:17 UTC (rev 5238)
+++ jbpm4/trunk/modules/test-db/pom.xml 2009-07-06 07:33:19 UTC (rev 5239)
@@ -206,8 +206,9 @@
<failIfNoTests>false</failIfNoTests>
<trimStackTrace>false</trimStackTrace>
<excludes>
- <!-- doesn't run for the moment. see https://jira.jboss.org/jira/browse/JBPM-2354 -->
+ <!-- doesn't run for the moment. see https://jira.jboss.org/jira/browse/JBPM-2354
<exclude>org/jbpm/test/reporting/SQLStmtTest.java</exclude>
+ -->
</excludes>
</configuration>
</plugin>
15 years, 4 months
JBoss JBPM SVN: r5238 - in projects/gwt-console/trunk/gui/war: src/main and 4 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-07-06 03:23:17 -0400 (Mon, 06 Jul 2009)
New Revision: 5238
Added:
projects/gwt-console/trunk/gui/war/src/main/templates/
projects/gwt-console/trunk/gui/war/src/main/templates/WEB-INF/
projects/gwt-console/trunk/gui/war/src/main/templates/WEB-INF/jboss-web.xml
Removed:
projects/gwt-console/trunk/gui/war/src/main/webapp/WEB-INF/jboss-web.xml
Modified:
projects/gwt-console/trunk/gui/war/pom.xml
projects/gwt-console/trunk/gui/war/src/main/resources/mvc4g-conf.xml
Log:
Fix JBPM-2195: Rename webcontext based on profile
Modified: projects/gwt-console/trunk/gui/war/pom.xml
===================================================================
--- projects/gwt-console/trunk/gui/war/pom.xml 2009-07-06 07:20:35 UTC (rev 5237)
+++ projects/gwt-console/trunk/gui/war/pom.xml 2009-07-06 07:23:17 UTC (rev 5238)
@@ -211,6 +211,13 @@
<configuration>
<webXml>target/web.xml</webXml>
<warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
+ <webResources>
+ <resource>
+ <!-- this is relative to the pom.xml directory -->
+ <directory>src/main/templates</directory>
+ <filtering>true</filtering>
+ </resource>
+ </webResources>
</configuration>
</plugin>
<plugin>
@@ -254,13 +261,15 @@
<version>${version}</version>
</dependency>
</dependencies>
+ <properties>
+ <console.app.webcontext>jbpm-console</console.app.webcontext>
+ </properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
-
<execution>
<id>unpack-profile-jbpm</id>
<phase>process-resources</phase>
@@ -283,7 +292,9 @@
</executions>
</plugin>
+
</plugins>
+
</build>
</profile>
@@ -302,7 +313,10 @@
<version>${version}</version>
</dependency>
</dependencies>
- <build>
+ <properties>
+ <console.app.webcontext>gwt-console</console.app.webcontext>
+ </properties>
+ <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Modified: projects/gwt-console/trunk/gui/war/src/main/resources/mvc4g-conf.xml
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/resources/mvc4g-conf.xml 2009-07-06 07:20:35 UTC (rev 5237)
+++ projects/gwt-console/trunk/gui/war/src/main/resources/mvc4g-conf.xml 2009-07-06 07:23:17 UTC (rev 5238)
@@ -16,4 +16,8 @@
<start controllerName="mainController" actionName="login" />
+ <!--
+ ${webcontext}
+ @webcontext@
+ -->
</mvc4g>
\ No newline at end of file
Added: projects/gwt-console/trunk/gui/war/src/main/templates/WEB-INF/jboss-web.xml
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/templates/WEB-INF/jboss-web.xml (rev 0)
+++ projects/gwt-console/trunk/gui/war/src/main/templates/WEB-INF/jboss-web.xml 2009-07-06 07:23:17 UTC (rev 5238)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC
+ "-//JBoss//DTD Web Application 2.4//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+
+ <!--security-domain>java:/jaas/jbpm-console</security-domain-->
+
+ <context-root>${console.app.webcontext}</context-root>
+
+ <!--resource-ref>
+ <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
+ <jndi-name>java:/JbpmDS</jndi-name>
+ </resource-ref>
+ -->
+
+</jboss-web>
Deleted: projects/gwt-console/trunk/gui/war/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/webapp/WEB-INF/jboss-web.xml 2009-07-06 07:20:35 UTC (rev 5237)
+++ projects/gwt-console/trunk/gui/war/src/main/webapp/WEB-INF/jboss-web.xml 2009-07-06 07:23:17 UTC (rev 5238)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE jboss-web PUBLIC
- "-//JBoss//DTD Web Application 2.4//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
-
-<jboss-web>
-
- <!--security-domain>java:/jaas/jbpm-console</security-domain-->
-
- <context-root>gwt-console</context-root>
-
- <!--resource-ref>
- <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
- <jndi-name>java:/JbpmDS</jndi-name>
- </resource-ref>
- -->
-
-</jboss-web>
15 years, 4 months
JBoss JBPM SVN: r5237 - in projects/jopr-integration: src and 10 other directories.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-06 03:20:35 -0400 (Mon, 06 Jul 2009)
New Revision: 5237
Added:
projects/jopr-integration/pom.xml
projects/jopr-integration/src/
projects/jopr-integration/src/main/
projects/jopr-integration/src/main/java/
projects/jopr-integration/src/main/java/org/
projects/jopr-integration/src/main/java/org/jbosson/
projects/jopr-integration/src/main/java/org/jbosson/plugins/
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceDiscoveryComponent.java
projects/jopr-integration/src/main/resources/
projects/jopr-integration/src/main/resources/META-INF/
projects/jopr-integration/src/main/resources/META-INF/rhq-plugin.xml
projects/jopr-integration/src/main/resources/lib/
projects/jopr-integration/src/main/resources/lib/antlr.jar
projects/jopr-integration/src/main/resources/lib/asm.jar
projects/jopr-integration/src/main/resources/lib/bsh.jar
projects/jopr-integration/src/main/resources/lib/cglib.jar
projects/jopr-integration/src/main/resources/lib/commons-collections.jar
projects/jopr-integration/src/main/resources/lib/commons-logging.jar
projects/jopr-integration/src/main/resources/lib/dom4j.jar
projects/jopr-integration/src/main/resources/lib/hibernate.jar
projects/jopr-integration/src/main/resources/lib/hsqldb.jar
projects/jopr-integration/src/main/resources/lib/jbpm-identity.jar
projects/jopr-integration/src/main/resources/lib/jbpm-jpdl.jar
projects/jopr-integration/src/main/resources/lib/jsf-console.war
projects/jopr-integration/src/main/resources/lib/junit.jar
projects/jopr-integration/src/main/resources/lib/log4j.jar
projects/jopr-integration/src/test/
projects/jopr-integration/src/test/java/
projects/jopr-integration/src/test/resources/
Log:
initial commit for jbpm and jopr integration
Added: projects/jopr-integration/pom.xml
===================================================================
--- projects/jopr-integration/pom.xml (rev 0)
+++ projects/jopr-integration/pom.xml 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,283 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.jboss.on</groupId>
+ <!-- Bypass the jon-plugins-parent which can not have children. It must build after the plugins in order to execute integration tests on them. -->
+ <artifactId>jon-parent</artifactId>
+ <version>2.1.2.GA</version>
+ </parent>
+
+ <groupId>org.jboss.on</groupId>
+ <artifactId>rhq-jbpm-plugin</artifactId>
+ <packaging>jar</packaging>
+
+ <name>JON JBossESB jbpm Plugin</name>
+ <description>A plugin for managing JBossESB jbpm process</description>
+
+ <scm>
+ <connection>scm:svn:http://svn.corp.jboss.com/repos/jon/trunk/jon/plugins/jbossesb/</connection>
+ <developerConnection>scm:svn:http://svn.corp.jboss.com/repos/jon/trunk/jon/plugins/jbossesb/</developerConnection>
+ </scm>
+
+ <properties>
+ <scm.module.path>jon/plugins/jbossesb/</scm.module.path>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.on</groupId>
+ <artifactId>rhq-jbossas-plugin</artifactId>
+ <version>2.1.2.GA</version>
+ <scope>provided</scope>
+ </dependency>
+</dependencies>
+
+
+
+
+ <build>
+ <plugins>
+
+ <!-- Used to add dependencies to the plugin lib
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ <executions>
+ <execution>
+ <id>copy-postgres-jar</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.1-407.jdbc3</version>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>-->
+
+
+
+
+<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>copy-res</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
+ <resources>
+ <resource>
+ <directory>resources/lib</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+
+
+
+
+
+ <!--plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>3.2.5.GA</version>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin-->
+
+
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>integration-tests</id>
+ <activation>
+ <property>
+ <name>maven.test.skip</name>
+ <value>!true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <!-- Integration testing voodoo to load and test this plugin with its plugin dependencies -->
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>pre-integration-test</phase>
+ <configuration>
+ <tasks>
+ <echo>Setting up plugin dependencies for ${project.artifactId}-${project.version}.jar...</echo>
+ <property name="settings.localRepository" location="${user.home}/.m2/repository" />
+ <mkdir dir="target/itest" />
+ <mkdir dir="target/itest/plugins" />
+ <mkdir dir="target/itest/lib" />
+ <copy toDir="target/itest/plugins" flatten="true">
+ <fileset dir="${settings.localRepository}/">
+ <include name="org/rhq/rhq-platform-plugin/${rhq.version}/rhq-platform-plugin-${rhq.version}.jar" />
+ <include name="org/rhq/rhq-jmx-plugin/${rhq.version}/rhq-jmx-plugin-${rhq.version}.jar" />
+ <include name="org/jboss/on/rhq-tomcat-plugin/${project.version}/rhq-tomcat-plugin-${project.version}.jar" />
+ <include name="org/jboss/on/rhq-jbossas-plugin/${project.version}/rhq-jbossas-plugin-${project.version}.jar" />
+ </fileset>
+ <fileset dir="${project.build.directory}">
+ <include name="${project.artifactId}-${project.version}.jar" />
+ </fileset>
+ </copy>
+ <unzip dest="target/itest/lib">
+ <fileset dir="${settings.localRepository}/org/hyperic/sigar-dist/${sigar.version}" includes="*.zip" />
+ <patternset>
+ <include name="**/lib/sigar.jar" />
+ <include name="**/lib/bcel*.jar" />
+ <include name="**/lib/*.so" />
+ <include name="**/lib/*.sl" />
+ <include name="**/lib/*.dll" />
+ <include name="**/lib/*.dylib" />
+ </patternset>
+ </unzip>
+ <move todir="target/itest/lib" flatten="true">
+ <fileset dir="target/itest/lib">
+ <include name="**/lib/*" />
+ </fileset>
+ </move>
+ <delete dir="target/itest/lib/hyperic-sigar-${sigar.version}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <id>surefire-it</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>${maven.test.skip}</skip>
+ <excludedGroups>${rhq.testng.excludedGroups}</excludedGroups>
+ <useSystemClassLoader>false</useSystemClassLoader>
+ <argLine>-Dorg.hyperic.sigar.path=${basedir}/target/itest/lib</argLine>
+ <!--<argLine>-Dorg.hyperic.sigar.path=${basedir}/target/itest/lib -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y</argLine>-->
+ <systemProperties>
+ <property>
+ <name>project.artifactId</name>
+ <value>${project.artifactId}</value>
+ </property>
+ <property>
+ <name>project.version</name>
+ <value>${project.version}</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>dev</id>
+
+ <properties>
+ <rhq.rootDir>../../..</rhq.rootDir>
+ <rhq.containerDir>${rhq.rootDir}/${rhq.defaultDevContainerPath}</rhq.containerDir>
+ <rhq.deploymentDir>${rhq.containerDir}/jbossas/server/default/deploy/${rhq.earName}/rhq-downloads/rhq-plugins</rhq.deploymentDir>
+ </properties>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+
+ <execution>
+ <id>deploy</id>
+ <phase>compile</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="${rhq.deploymentDir}" />
+ <property name="deployment.file" location="${rhq.deploymentDir}/${project.build.finalName}.jar" />
+ <echo>*** Updating ${deployment.file}...</echo>
+ <jar destfile="${deployment.file}" basedir="${project.build.outputDirectory}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>undeploy</id>
+ <phase>clean</phase>
+ <configuration>
+ <tasks>
+ <property name="deployment.file" location="${rhq.deploymentDir}/${project.build.finalName}.jar" />
+ <echo>*** Deleting ${deployment.file}...</echo>
+ <delete file="${deployment.file}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+</project>
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,191 @@
+package org.jbosson.plugins.jbpm;
+
+import java.lang.reflect.Method;
+import java.util.Set;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.mc4j.ems.connection.EmsConnection;
+import org.mc4j.ems.connection.bean.EmsBean;
+import org.mc4j.ems.connection.bean.operation.EmsOperation;
+import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.domain.measurement.AvailabilityType;
+import org.rhq.core.domain.measurement.MeasurementDataTrait;
+import org.rhq.core.domain.measurement.MeasurementReport;
+import org.rhq.core.domain.measurement.MeasurementScheduleRequest;
+import org.rhq.core.pluginapi.inventory.DeleteResourceFacet;
+import org.rhq.core.pluginapi.inventory.ResourceComponent;
+import org.rhq.core.pluginapi.inventory.ResourceContext;
+import org.rhq.core.pluginapi.measurement.MeasurementFacet;
+import org.rhq.core.pluginapi.operation.OperationFacet;
+import org.rhq.core.pluginapi.operation.OperationResult;
+
+public class JbpmInstanceComponent implements ResourceComponent<JbpmProcessDefComponent>, MeasurementFacet, DeleteResourceFacet,OperationFacet {
+ public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ private ResourceContext<JbpmProcessDefComponent> resourceContext;
+ private Log log = LogFactory.getLog(JbpmProcessDefComponent.class);
+ private EmsConnection newConnection = null;
+ private EmsOperation getInsOperation = null;
+ private String instanceId = "";
+ private Class processInsClass = null;
+
+ public void start(ResourceContext<JbpmProcessDefComponent> resourceContext) {
+ this.resourceContext = resourceContext;
+ instanceId = resourceContext.getResourceKey();
+ newConnection = resourceContext.getParentResourceComponent().getNewConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ getInsOperation = bean.getOperation("getProcessInstance");
+ try {
+ processInsClass = newConnection.getClass().getClassLoader().loadClass("org.jbpm.graph.exe.ProcessInstance");
+ } catch(ClassNotFoundException e) {
+ log.error("Failed to load class [org.jbpm.graph.exe.ProcessInstance],please check the jbpm plugin configuration");
+ }
+ }
+
+ public void stop() {
+ }
+
+ public AvailabilityType getAvailability() {
+ return AvailabilityType.UP;
+ }
+
+ public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) {
+ for (MeasurementScheduleRequest request : metrics) {
+ if (request.getName().equals("version")) {
+ MeasurementDataTrait value = new MeasurementDataTrait(request,
+ String.valueOf(getObjectValue("getVersion")));
+ report.addData(value);
+ }
+ if (request.getName().equals("id")) {
+
+ MeasurementDataTrait value = new MeasurementDataTrait(request,
+ String.valueOf(getObjectValue("getId")));
+ report.addData(value);
+ }
+
+ if (request.getName().equals("start")) {
+
+ MeasurementDataTrait value = new MeasurementDataTrait(request,
+ String.valueOf(getObjectValue("getStart")));
+ report.addData(value);
+ }
+
+ if (request.getName().equals("end")) {
+ Object obj = getObjectValue("getEnd");
+ Object endData = obj != null ? obj : "";
+ MeasurementDataTrait value = new MeasurementDataTrait(request, String.valueOf(endData));
+ report.addData(value);
+ }
+
+
+ if (request.getName().equals("status")) {
+ String status = "Running";
+ boolean wasSuspended = (Boolean)getObjectValue("isSuspended");
+ status = wasSuspended ? "wasSuspended" : status;
+ status = getObjectValue("getEnd") != null ? "Ended" : status;
+ MeasurementDataTrait value = new MeasurementDataTrait(request, status);
+ report.addData(value);
+ }
+ }
+ }
+
+ public OperationResult invokeOperation(String name, Configuration configuration) throws InterruptedException {
+ String operataion = name.toUpperCase();
+ String message = "";
+ if ("SUSPEND".equals(operataion)) {
+ message = suspendInstance();
+ }
+
+ if ("END".equals(operataion)) {
+ message = endInstance();
+ }
+
+ if ("DELETE".equals(operataion)) {
+ message = deleteInstance();
+ }
+
+ if ("RESUME".equals(operataion)) {
+ message = resumeInstance();
+ }
+
+
+ OperationResult result = new OperationResult(message);
+ return result;
+
+ }
+
+ public String suspendInstance() {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(this.JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("suspendProcessInstance");
+ operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
+ return "Sucess";
+ }
+
+ public String endInstance() {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(this.JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("endProcessInstance");
+ operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
+ return "Sucess";
+ }
+
+ public String resumeInstance() {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(this.JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("resumeProcessInstance");
+ operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
+ return "Sucess";
+ }
+
+ public String deleteInstance() {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(this.JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("deleteProcessInstance");
+ operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
+ return "Sucess";
+ }
+
+
+ /* implement the DeleteResourceFacet */
+ public void deleteResource() throws Exception {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(this.JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("deleteProcessInstance");
+ operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
+ }
+
+
+ public Object getObjectValue(String getMethodName) {
+ Object obj = null;
+ Object res = "";
+ try {
+ obj = getInsOperation.invoke(Long.parseLong(instanceId));
+ Method jmxMethod = processInsClass.getSuperclass()
+ .getDeclaredMethod(getMethodName, new Class[] {});
+ res = jmxMethod.invoke(obj, new Object[] {});
+
+ } catch (NoSuchMethodException e) {
+ try {
+ Method method = processInsClass.getDeclaredMethod(getMethodName, new Class[] {});
+ res = method.invoke(obj, new Object[] {});
+ } catch (Exception e1) {
+ // do nothing
+ }
+ } catch (Exception e) {
+ log.error("Failed to invoke method [" + getMethodName + "] aginst this processIntance[" + resourceContext.getResourceKey() + "]");
+ }
+ return res;
+
+ }
+
+ public EmsConnection getNewConnection() {
+ return newConnection;
+ }
+
+ public String getId() {
+ return resourceContext.getResourceKey();
+ }
+
+
+}
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,54 @@
+package org.jbosson.plugins.jbpm;
+
+import java.lang.reflect.Method;
+import java.util.List;
+import java.util.Set;
+
+import org.jbpm.graph.exe.ProcessInstance;
+import org.mc4j.ems.connection.EmsConnection;
+import org.mc4j.ems.connection.bean.EmsBean;
+import org.mc4j.ems.connection.bean.operation.EmsOperation;
+import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails;
+import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent;
+import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext;
+
+public class JbpmInstanceDiscoveryComponent implements ResourceDiscoveryComponent<JbpmProcessDefComponent> {
+ public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ EmsConnection newConnection = null;
+
+ public Set<DiscoveredResourceDetails> discoverResources(
+ ResourceDiscoveryContext<JbpmProcessDefComponent> context) {
+
+ System.out.println("Discover jbpm instance definition");
+ Set<DiscoveredResourceDetails> jbpmDefs = new java.util.HashSet<DiscoveredResourceDetails>();
+
+ try {
+ newConnection = context.getParentResourceComponent().getNewConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("getProcessInstances");
+ Object obj = operation.invoke(Long.valueOf(context.getParentResourceComponent().getId()));
+ Class processInsClass = newConnection.getClass().getClassLoader().loadClass("org.jbpm.graph.exe.ProcessInstance");
+ Method idMethod = processInsClass.getDeclaredMethod("getId", new Class[]{});
+ if (obj != null) {
+ List<ProcessInstance> instances = (List<ProcessInstance>)obj;
+ for (int i = 0; i < instances.size(); i++) {
+ Object tmp = instances.get(i);
+ Method method = processInsClass.getDeclaredMethod("getId", new Class[]{});
+ Long insId = (Long)method.invoke(tmp, new Object[]{});
+ String insName = "Process Instances " + insId;
+ DiscoveredResourceDetails details = new DiscoveredResourceDetails(context
+ .getResourceType(), String.valueOf(insId), insName, null, insName, null, null);
+ jbpmDefs.add(details);
+ }
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+
+ } finally {
+
+ }
+ return jbpmDefs;
+ }
+
+}
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,160 @@
+package org.jbosson.plugins.jbpm;
+
+import static java.lang.Long.parseLong;
+
+import java.lang.reflect.Method;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.mc4j.ems.connection.EmsConnection;
+import org.mc4j.ems.connection.bean.EmsBean;
+import org.mc4j.ems.connection.bean.operation.EmsOperation;
+import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.domain.measurement.AvailabilityType;
+import org.rhq.core.domain.measurement.MeasurementDataTrait;
+import org.rhq.core.domain.measurement.MeasurementReport;
+import org.rhq.core.domain.measurement.MeasurementScheduleRequest;
+import org.rhq.core.domain.resource.CreateResourceStatus;
+import org.rhq.core.pluginapi.inventory.CreateChildResourceFacet;
+import org.rhq.core.pluginapi.inventory.CreateResourceReport;
+import org.rhq.core.pluginapi.inventory.DeleteResourceFacet;
+import org.rhq.core.pluginapi.inventory.ResourceComponent;
+import org.rhq.core.pluginapi.inventory.ResourceContext;
+import org.rhq.core.pluginapi.measurement.MeasurementFacet;
+import org.rhq.core.pluginapi.operation.OperationFacet;
+import org.rhq.core.pluginapi.operation.OperationResult;
+
+public class JbpmProcessDefComponent implements
+ ResourceComponent<JbpmServiceComponent>, MeasurementFacet, DeleteResourceFacet, OperationFacet, CreateChildResourceFacet {
+ public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ private ResourceContext<JbpmServiceComponent> resourceContext;
+ private Log log = LogFactory.getLog(JbpmProcessDefComponent.class);
+ private EmsConnection newConnection = null;
+ private Object jbpmProcessDef = null;
+ private Class processDefClass = null;
+ private String id = null;
+
+ public void start(ResourceContext<JbpmServiceComponent> resourceContext) {
+ this.resourceContext = resourceContext;
+ newConnection = resourceContext.getParentResourceComponent()
+ .getRebuildConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ Object obj = bean.getAttribute("DeployedProcessDefinitions").refresh();
+ id = resourceContext.getResourceKey();
+ //TODO: Check if we should refresh the jbpmProcessDef when collect metric value
+ try {
+ processDefClass = newConnection.getClass().getClassLoader()
+ .loadClass("org.jbpm.graph.def.ProcessDefinition");
+ List<ProcessDefinition> processList = (List<ProcessDefinition>) obj;
+ for (int i = 0; i < processList.size(); i++) {
+ Object processDef = processList.get(i);
+ String id = String.valueOf(getObjectValue(processDef, "getId"));
+ if (resourceContext.getResourceKey().equals(id)) {
+ jbpmProcessDef = processDef;
+ break;
+ }
+
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ public void stop() {
+ }
+
+ public AvailabilityType getAvailability() {
+ return AvailabilityType.UP;
+ }
+
+ public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) {
+ for (MeasurementScheduleRequest request : metrics) {
+ if (request.getName().equals("version")) {
+ MeasurementDataTrait value = new MeasurementDataTrait(request,
+ String.valueOf(getObjectValue(jbpmProcessDef,
+ "getVersion")));
+ report.addData(value);
+ }
+ if (request.getName().equals("id")) {
+
+ MeasurementDataTrait value = new MeasurementDataTrait(request,
+ String.valueOf(getObjectValue(jbpmProcessDef, "getId")));
+ report.addData(value);
+ }
+
+ }
+
+ }
+
+ /* implement the DeleteResourceFacet */
+ public void deleteResource() throws Exception {
+ EmsConnection connection = this.getNewConnection();
+ EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsOperation emsOp = bean.getOperation("deleteProcess");
+ emsOp.invoke(parseLong(id));
+ }
+
+ public CreateResourceReport createResource(CreateResourceReport report) {
+ String resourceTypeName = report.getResourceType().getName();
+ report.setResourceKey(resourceTypeName);
+ report.setResourceName(resourceTypeName);
+ try {
+ EmsConnection connection = this.getNewConnection();
+ EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsOperation emsOp = bean.getOperation("startProcessInstance");
+ emsOp.invoke(parseLong(id));
+ } catch (Exception e) {
+ report.setStatus(CreateResourceStatus.FAILURE);
+ report.setErrorMessage(e.getMessage());
+ report.setException(e);
+ }
+ report.setStatus(CreateResourceStatus.SUCCESS);
+ return report;
+ }
+
+
+
+ public OperationResult invokeOperation(String name, Configuration configuration) throws InterruptedException {
+ if ("startinstance".equals(name.toLowerCase())) {
+ EmsConnection connection = this.getNewConnection();
+ EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsOperation emsOp = bean.getOperation("startProcessInstance");
+ emsOp.invoke(parseLong(id));
+ }
+ return new OperationResult("Sucess to create process instance");
+ }
+
+
+
+ public Object getObjectValue(Object obj, String getMethodName) {
+ Object res = "";
+ try {
+ Method jmxMethod = processDefClass.getSuperclass()
+ .getDeclaredMethod(getMethodName, new Class[] {});
+ res = jmxMethod.invoke(obj, new Object[] {});
+ } catch (Exception e) {
+ //e.printStackTrace();
+ try {
+ Method method = processDefClass.getDeclaredMethod(getMethodName, new Class[] {});
+ res = method.invoke(obj, new Object[] {});
+ } catch (Exception e1) {
+ //do nothing
+ }
+ }
+ return res;
+
+ }
+
+ public EmsConnection getNewConnection() {
+ return newConnection;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+}
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,59 @@
+package org.jbosson.plugins.jbpm;
+
+import java.lang.reflect.Method;
+import java.util.List;
+import java.util.Set;
+
+import org.jbpm.graph.def.ProcessDefinition;
+import org.mc4j.ems.connection.EmsConnection;
+import org.mc4j.ems.connection.bean.EmsBean;
+import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails;
+import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent;
+import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext;
+
+/**
+ *
+ *
+ */
+public class JbpmProcessDefDiscoveryComponent implements
+ ResourceDiscoveryComponent<JbpmServiceComponent> {
+ public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ EmsConnection newConnection = null;
+
+ public Set<DiscoveredResourceDetails> discoverResources(
+ ResourceDiscoveryContext<JbpmServiceComponent> context) {
+
+ System.out.println("Discover jbpm process definition");
+ Set<DiscoveredResourceDetails> jbpmDefs = new java.util.HashSet<DiscoveredResourceDetails>();
+
+ try {
+ newConnection = context.getParentResourceComponent().getRebuildConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ Object obj = bean.getAttribute("DeployedProcessDefinitions").refresh();
+ Class processDefClass = newConnection.getClass().getClassLoader().loadClass("org.jbpm.graph.def.ProcessDefinition");
+
+ List<ProcessDefinition> processList = (List<ProcessDefinition>)obj;
+ Method getIdMethod = processDefClass.getSuperclass().getDeclaredMethod("getId", new Class[]{});
+ Method getNameMethod = processDefClass.getSuperclass().getDeclaredMethod("getName", new Class[]{});
+ Method getVersionMethod = processDefClass.getDeclaredMethod("getVersion", new Class[]{});
+ for (int i =0 ; i < processList.size(); i++) {
+ Object processDef = processList.get(i);
+ Long defId = (Long)getIdMethod.invoke(processDef, new Object[]{});
+
+ String defName = (String) getNameMethod.invoke(processDef, new Object[]{});
+ String version = String.valueOf(getVersionMethod.invoke(processDef, new Object[]{}));
+ defName = defName + "-V" + version;
+ DiscoveredResourceDetails details = new DiscoveredResourceDetails(context
+ .getResourceType(), String.valueOf(defId), defName, null, defName, null, null);
+ jbpmDefs.add(details);
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+
+ } finally {
+
+ }
+ return jbpmDefs;
+ }
+}
\ No newline at end of file
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,220 @@
+package org.jbosson.plugins.jbpm;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.FilenameFilter;
+import java.io.OutputStream;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import org.mc4j.ems.connection.ConnectionFactory;
+import org.mc4j.ems.connection.EmsConnection;
+import org.mc4j.ems.connection.bean.EmsBean;
+import org.mc4j.ems.connection.bean.operation.EmsOperation;
+import org.mc4j.ems.connection.settings.ConnectionSettings;
+import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.domain.configuration.PropertySimple;
+import org.rhq.core.domain.content.PackageDetailsKey;
+import org.rhq.core.domain.content.transfer.ResourcePackageDetails;
+import org.rhq.core.domain.measurement.AvailabilityType;
+import org.rhq.core.domain.resource.CreateResourceStatus;
+import org.rhq.core.pluginapi.content.ContentContext;
+import org.rhq.core.pluginapi.content.ContentServices;
+import org.rhq.core.pluginapi.inventory.CreateChildResourceFacet;
+import org.rhq.core.pluginapi.inventory.CreateResourceReport;
+import org.rhq.core.pluginapi.inventory.ResourceContext;
+import org.rhq.plugins.jmx.MBeanResourceComponent;
+
+public class JbpmServiceComponent extends MBeanResourceComponent implements
+ CreateChildResourceFacet {
+ public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ private static final String RESOURCE_TYPE_JBPM_PROCESS = "Process Definitions";
+ private static final String RESOURCE_TYPE_PAR = "par";
+ EmsConnection newConnection = null;
+ ContentContext contentContext = null;
+
+ public EmsConnection getRebuildConnection() {
+ if (this.newConnection == null) {
+ ConnectionSettings settings = this.getEmsConnection()
+ .getConnectionProvider().getConnectionSettings();
+ addAdditionalJarsToConnectionSettings(settings,
+ this.resourceContext);
+ ConnectionFactory cf = new ConnectionFactory();
+ cf.discoverServerClasses(settings);
+ newConnection = cf.getConnectionProvider(settings).connect();
+ newConnection.loadSynchronous(false);
+ }
+ return newConnection;
+
+ }
+
+ public void start(ResourceContext context) {
+ super.start(context);
+ contentContext = context.getContentContext();
+ }
+
+ private void addAdditionalJarsToConnectionSettings(
+ ConnectionSettings settings, ResourceContext context) {
+ // get the plugin config setting that contains comma-separated list of
+ // files/dirs to additional jars
+ // if no additional classpath entries are specified, we'll return
+ // immediately and not do anything to settings
+
+ List<File> entries = settings.getClassPathEntries();
+ if (entries == null) {
+ entries = new ArrayList<File>();
+ }
+
+ Configuration pc = context.getPluginConfiguration();
+ PropertySimple prop = pc.getSimple("additionalClassPathEntries");
+ if (prop == null || prop.getStringValue() == null
+ || prop.getStringValue().trim().length() == 0) {
+ ClassLoader loader = getClass().getClassLoader();
+ if (loader instanceof URLClassLoader) {
+ URLClassLoader urlClassLoader = (URLClassLoader) loader;
+ for (URL url : urlClassLoader.getURLs()) {
+ entries.add(new File(url.getFile()));
+ }
+ }
+ settings.setClassPathEntries(entries);
+ return;
+ }
+
+ String[] paths = prop.getStringValue().trim().split(",");
+ if (paths == null || paths.length == 0) {
+ return;
+ }
+
+ // get the current set of class path entries - we are going to add to
+ // these
+
+ // Get all additional classpath entries which can be listed as jar
+ // filenames or directories.
+ // If a directory has "/*.jar" at the end, all jar files found in that
+ // directory will be added
+ // as class path entries.
+ final class JarFilenameFilter implements FilenameFilter {
+ public boolean accept(File dir, String name) {
+ return name.endsWith(".jar");
+ }
+ }
+
+ for (String path : paths) {
+ path = path.trim();
+ if (path.length() > 0) {
+ if (path.endsWith("*.jar")) {
+ path = path.substring(0, path.length() - 5);
+ File dir = new File(path);
+ File[] jars = dir.listFiles(new JarFilenameFilter());
+ if (jars != null && jars.length > 0) {
+ entries.addAll(Arrays.asList(jars));
+ }
+ } else {
+ File pathFile = new File(path);
+ entries.add(pathFile);
+ }
+ }
+ }
+
+ // now that we've appended our additional jars, tell the connection
+ // settings about the new list
+ settings.setClassPathEntries(entries);
+
+ return;
+ }
+
+ @Override
+ public AvailabilityType getAvailability() {
+ AvailabilityType av = super.getAvailability();
+ return av;
+ }
+
+ public CreateResourceReport createResource(CreateResourceReport report) {
+ String resourceTypeName = report.getResourceType().getName();
+ try {
+ if (resourceTypeName.equals(RESOURCE_TYPE_JBPM_PROCESS)) {
+ jbpmProcessCreate(report);
+ } else {
+ throw new UnsupportedOperationException(
+ "Unknown Resource type: " + resourceTypeName);
+ }
+ } catch (Exception e) {
+ report.setErrorMessage(e.getMessage());
+ report.setException(e);
+ }
+ return report;
+ }
+
+ public void jbpmProcessCreate(CreateResourceReport report) {
+ ResourcePackageDetails details = report.getPackageDetails();
+ PackageDetailsKey key = details.getKey();
+ String resourceTypeName = report.getResourceType().getName();
+ String archiveName = key.getName();
+
+ report.setResourceName(archiveName);
+ report.setResourceKey(archiveName);
+
+ int lastPeriod = archiveName.lastIndexOf(".");
+ String extension = archiveName.substring(lastPeriod + 1);
+
+ Configuration deployTimeConfiguration = details.getDeploymentTimeConfiguration();
+
+ PropertySimple zipProperty = deployTimeConfiguration.getSimple("deployZipped");
+
+ if (zipProperty == null || zipProperty.getBooleanValue() == null) {
+ report.setErrorMessage("Zipped property is required.");
+ report.setStatus(CreateResourceStatus.FAILURE);
+ return;
+ }
+
+ boolean zip = zipProperty.getBooleanValue();
+
+ String expectedExtension = "xml";
+ if (zip) {
+ expectedExtension = "par";
+ }
+
+
+ if (lastPeriod == -1 || !expectedExtension.equals(extension) ) {
+ report.setErrorMessage("Incorrect extension specified on filename [" + archiveName + "]. Expected ["
+ + expectedExtension + "]");
+ report.setStatus(CreateResourceStatus.FAILURE);
+ return;
+ }
+
+
+ File tempDir = resourceContext.getTemporaryDirectory();
+ String filename = zip ? "process.par" : "process.xml";
+ File tempFile = new File(tempDir.getAbsolutePath(), filename);
+ try {
+ OutputStream osForTempDir = new BufferedOutputStream(
+ new FileOutputStream(tempFile));
+
+ ContentServices contentServices = contentContext
+ .getContentServices();
+ contentServices.downloadPackageBitsForChildResource(contentContext,
+ resourceTypeName, key, osForTempDir);
+
+ osForTempDir.close();
+ URL fileURL = tempFile.toURL();
+ deployFile(fileURL.toExternalForm());
+ report.setStatus(CreateResourceStatus.SUCCESS);
+ } catch (Exception e) {
+ report.setErrorMessage("Failed to deploy [" + archiveName + "]");
+ report.setException(e);
+ report.setStatus(CreateResourceStatus.FAILURE);
+ }
+
+ }
+
+ public void deployFile(String url) throws Exception {
+ newConnection = this.getRebuildConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ EmsOperation operation = bean.getOperation("deploy");
+ operation.invoke(url);
+ }
+}
Added: projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceDiscoveryComponent.java
===================================================================
--- projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceDiscoveryComponent.java (rev 0)
+++ projects/jopr-integration/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceDiscoveryComponent.java 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,18 @@
+package org.jbosson.plugins.jbpm;
+
+import java.util.Set;
+
+import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails;
+import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext;
+import org.rhq.plugins.jmx.JMXComponent;
+import org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent;
+
+public class JbpmServiceDiscoveryComponent extends MBeanResourceDiscoveryComponent {
+ @Override
+ public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<JMXComponent> context) {
+ Set<DiscoveredResourceDetails> jmxResources = super.discoverResources(context);
+
+
+ return jmxResources;
+ }
+}
\ No newline at end of file
Added: projects/jopr-integration/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- projects/jopr-integration/src/main/resources/META-INF/rhq-plugin.xml (rev 0)
+++ projects/jopr-integration/src/main/resources/META-INF/rhq-plugin.xml 2009-07-06 07:20:35 UTC (rev 5237)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<plugin name="JBossESB-JBPM" displayName="JBossESB-JBPM"
+ package="org.jbosson.plugins.jbpm"
+ description="Provides monitoring of JBoss JBPM" version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="urn:xmlns:rhq-plugin" xmlns:c="urn:xmlns:rhq-configuration">
+
+ <depends plugin="JMX" />
+ <depends plugin="Tomcat" />
+ <depends plugin="JBossAS" useClasses="true" />
+ <service name="JBPM Service"
+ discovery="org.jbosson.plugins.jbpm.JbpmServiceDiscoveryComponent"
+ class="org.jbosson.plugins.jbpm.JbpmServiceComponent"
+ description="JBPM Service" singleton="true">
+ <runs-inside>
+ <parent-resource-type name="JBossAS Server"
+ plugin="JBossAS" />
+ </runs-inside>
+
+ <plugin-configuration>
+ <c:simple-property name="objectName" readOnly="true"
+ default="jboss.esb:service=JbpmService" />
+ <c:simple-property name="nameTemplate"
+ default="JBPM Service" />
+ <c:simple-property name="DescriptionTemplate"
+ default="JBoss Service." />
+ <!--c:simple-property name="additionalClassPathEntries" default="/x1/jbossON/jbpm-lib/*.jar"/-->
+ </plugin-configuration>
+ <operation name="start" displayName="Start JBPM Service"
+ description="Start the JBPM Service" />
+ <operation name="stop" displayName="Stop JBPM Service"
+ description="Stop the JBPM Service" />
+ <metric property="Name" displayName="Service Name"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="JBPM ServiceName" />
+ <metric property="StateString" displayName="jbpm State String"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Current state of JBPM Service" />
+ <metric property="State" displayName="jbpm State"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Numeric value of the state of the jbpm service" />
+ <help>
+ <![CDATA[
+ JBoss JBPM Service
+ ]]>
+ </help>
+
+ <service name="Process Definitions"
+ discovery="org.jbosson.plugins.jbpm.JbpmProcessDefDiscoveryComponent"
+ class="org.jbosson.plugins.jbpm.JbpmProcessDefComponent"
+ creationDataType="content"
+ createDeletePolicy="both"
+ description="JBPM Process Definitions">
+
+
+ <metric property="version" displayName="Version"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Process definition version" />
+ <metric property="id" displayName="Id" dataType="trait"
+ displayType="summary" defaultOn="true"
+ description="Process definition id" />
+ <content name="file" displayName="jBPM Process"
+ category="deployable" isCreationType="true">
+ <configuration>
+ <c:group name="deployment"
+ displayName="Deployment Options">
+ <c:simple-property name="deployZipped"
+ displayName="Deploy Zipped" type="boolean" default="false"
+ required="true"
+ description="Indicates jBPM process artifacts either par file or xml file" />
+ </c:group>
+ </configuration>
+ </content>
+ <service name="Process Instances"
+ discovery="org.jbosson.plugins.jbpm.JbpmInstanceDiscoveryComponent"
+ class="org.jbosson.plugins.jbpm.JbpmInstanceComponent"
+ createDeletePolicy="both"
+ creationDataType="configuration"
+ description="Process Instances">
+
+
+ <operation name="suspend" displayName="suspend"
+ description="Suspend this process instance"/>
+
+ <operation name="resume" displayName="resume"
+ description="Resume this process instance"/>
+
+ <operation name="end" displayName="end"
+ description="End this process instance"/>
+
+ <metric property="version" displayName="Version"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Process Instance version" />
+
+ <metric property="id" displayName="Id" dataType="trait"
+ displayType="summary" defaultOn="true"
+ description="Process Instance Id" />
+
+ <metric property="start" displayName="StartData"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Process Instance StartData" />
+
+ <metric property="status" displayName="Status"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Process Instance Satus" />
+
+ <metric property="end" displayName="EndData"
+ dataType="trait" displayType="summary" defaultOn="true"
+ description="Process Instance EndData" />
+
+ <help>
+ <![CDATA[
+ JBoss Process Instances
+ ]]>
+ </help>
+
+
+ </service>
+
+ </service>
+ </service>
+</plugin>
Added: projects/jopr-integration/src/main/resources/lib/antlr.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/antlr.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/asm.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/asm.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/bsh.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/bsh.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/cglib.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/cglib.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/dom4j.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/dom4j.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/hibernate.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/hibernate.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/hsqldb.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/hsqldb.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/jbpm-identity.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/jbpm-identity.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/jbpm-jpdl.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/jbpm-jpdl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/jsf-console.war
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/jsf-console.war
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/junit.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/junit.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/jopr-integration/src/main/resources/lib/log4j.jar
===================================================================
(Binary files differ)
Property changes on: projects/jopr-integration/src/main/resources/lib/log4j.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 4 months
JBoss JBPM SVN: r5235 - jbpm4/branches/jimma.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-06 02:53:53 -0400 (Mon, 06 Jul 2009)
New Revision: 5235
Added:
jbpm4/branches/jimma/trunk/
Log:
Merged the r5234 to branch
Copied: jbpm4/branches/jimma/trunk (from rev 5234, jbpm4/trunk)
15 years, 4 months
JBoss JBPM SVN: r5234 - jbpm4/branches/jimma.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-06 02:37:16 -0400 (Mon, 06 Jul 2009)
New Revision: 5234
Removed:
jbpm4/branches/jimma/build.xml
jbpm4/branches/jimma/eclipse/
jbpm4/branches/jimma/modules/
jbpm4/branches/jimma/pom.xml
jbpm4/branches/jimma/qa/
Log:
Removed old migration code
Deleted: jbpm4/branches/jimma/build.xml
===================================================================
--- jbpm4/branches/jimma/build.xml 2009-07-05 14:27:27 UTC (rev 5233)
+++ jbpm4/branches/jimma/build.xml 2009-07-06 06:37:16 UTC (rev 5234)
@@ -1,173 +0,0 @@
-<project name="jbpm4" default="install" basedir=".">
-
- <!-- This ant build only serves as IDE integration to run maven jobs.
- Now in eclipse it's possible to open the ant view and double click
- the targets in this ant build that will just delegate to the maven
- build. Also, if there are html results being produced by a target,
- they are opened in a browser.
- -->
-
- <!-- Overwrite property values in your local
- file ${user.home}/.jbpm4/ant.properties
- -->
- <property file="${user.home}/.jbpm4/ant.properties" />
-
- <property name="mvn.executable" value="mvn.bat" />
-
- <!-- BROWSER PROPERTIES -->
- <!-- <property name="windows.browser" value="C:/Program Files/Internet Explorer/IEXPLORE.EXE" /> -->
- <property name="windows.browser" value="C:/Program Files/Mozilla Firefox/firefox.exe" />
- <property name="macos.browser" value="/usr/bin/open" />
- <property name="linux.browser" value="mozilla" />
-
- <property name="distro.installation.dir" value="c:/software" />
- <property name="distro.version" value="4.0-SNAPSHOT" />
- <property name="distro.jboss.version" value="5.0.0.GA" />
- <property name="distro.eclipse" value="c:/downloads/eclipse/eclipse-jee-ganymede-SR1-win32.zip" />
- <property name="distro.jboss" value="c:/downloads/jboss/jboss-${distro.jboss.version}.zip" />
- <property name="distro.gef" value="c:/downloads/eclipse/GEF-runtime-3.4.1.zip" />
-
- <target name="clean">
- <exec executable="${mvn.executable}">
- <arg line="clean" />
- </exec>
- </target>
-
- <target name="install">
- <exec executable="${mvn.executable}" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="-DskipTests install" />
- </exec>
- </target>
-
- <target name="javadoc">
- <exec executable="${mvn.executable}" dir="modules/api" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="javadoc:javadoc" />
- </exec>
- <antcall target="show.html">
- <param name="page" value="modules/api/target/site/apidocs/index.html"/>
- </antcall>
- </target>
-
- <target name="test.pvm">
- <exec dir="modules/pvm" executable="${mvn.executable}" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="${mvn.executable} surefire-report:report" />
- </exec>
- <antcall target="show.html">
- <param name="page" value="modules/pvm/target/site/surefire-report.html"/>
- </antcall>
- </target>
-
- <target name="distro.test" depends="distro.build, distro.install" />
-
- <target name="distro.build">
- <exec dir="." executable="cmd" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="/C ${mvn.executable} -Pdistro -Ddatabase=hsqldb -Djbpm.target.container=jboss500 -Djboss.home=${distro.installation.dir}/jbpm-${distro.version}/jboss-${distro.jboss.version} clean install" />
- </exec>
- </target>
-
- <target name="distro.install" >
- <delete dir="${distro.installation.dir}/jbpm-${distro.version}" />
- <unzip src="${distro.jboss}" dest="${distro.installation.dir}/jbpm-${distro.version}" />
- <java jar="modules/distro/target/jbpm-installer-${distro.version}.jar" fork="true">
- <arg value="modules/distro/target/resources/auto-install-template.xml" />
- </java>
-
- <!--
- <unzip src="${distro.eclipse}" dest="${distro.installation.dir}/jbpm-${distro.version}" />
- <exec executable="cmd" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="/C start "${distro.installation.dir}/jbpm-${distro.version}/eclipse/eclipse.exe" "-data" "${distro.installation.dir}/jbpm-${distro.version}/workspace"" />
- </exec>
- <exec executable="cmd" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="/C start "${windows.browser}" "file://${distro.installation.dir}/jbpm-${distro.version}"" />
- </exec>
- -->
- </target>
-
- <target name="distro.eclipse.install">
- <unzip src="${distro.eclipse}" dest="${distro.installation.dir}/jbpm-${distro.version}" />
- </target>
-
- <target name="distro.eclipse.start">
- <exec executable="cmd" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg line="/C start "${distro.installation.dir}/jbpm-${distro.version}/eclipse/eclipse.exe" "-data" "${distro.installation.dir}/jbpm-${distro.version}/workspace"" />
- </exec>
- </target>
-
- <target name="schemadocs">
- <exec executable="${mvn.executable}" dir="modules/api">
- <arg line="-Pschemadocs package" />
- </exec>
- <antcall target="show.html">
- <param name="page" value="modules/api/target/schemadocs/index.html"/>
- </antcall>
- </target>
-
- <target name="devguide">
- <exec executable="${mvn.executable}" dir="modules/devguide">
- <arg line="jdocbook:resources jdocbook:generate" />
- </exec>
- <antcall target="show.html">
- <param name="page" value="modules/devguide/target/docbook/publish/en/html_single/index.html"/>
- </antcall>
- </target>
-
- <target name="userguide">
- <exec executable="${mvn.executable}" dir="modules/userguide">
- <arg line="jdocbook:resources jdocbook:generate" />
- </exec>
- <antcall target="show.html">
- <param name="page" value="modules/userguide/target/docbook/publish/en/html_single/index.html"/>
- </antcall>
- </target>
-
- <!-- HTML -->
- <target name="show.html">
- <fail message="property page has to be specified to use this target" unless="page" />
- <exec executable="cmd" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
- <arg value="/C start "${windows.browser}" "file://${basedir}/${page}"" />
- </exec>
- <exec executable="${macos.browser}" os="Mac OS X">
- <arg value="file://${basedir}/${page}" />
- </exec>
- <exec executable="${linux.browser}" os="Linux">
- <arg value="file://${basedir}/${page}" />
- </exec>
- </target>
-
- <!-- target name="update.configurations" description="update the pvm, jpdl, example and test-db test resources by running the config tool">
- <ant antfile="modules/distro/src/main/resources/config-tool/build.xml" target="create.configuration.files" inheritall="false">
- <property name="config.files.dir" value="${basedir}/modules/pvm/src/test/resources" />
- <property name="tmp.dir" value="${basedir}/modules/pvm/target/config-tmp" />
- <property name="jpdl" value="exclude" />
- </ant>
- <ant antfile="modules/distro/src/main/resources/config-tool/build.xml" target="create.configuration.files" inheritall="false">
- <property name="config.files.dir" value="${basedir}/modules/jpdl/src/test/resources" />
- <property name="tmp.dir" value="${basedir}/modules/jpdl/target/config-tmp" />
- </ant>
- <ant antfile="modules/distro/src/main/resources/config-tool/build.xml" target="create.configuration.files" inheritall="false">
- <property name="config.files.dir" value="${basedir}/modules/examples/src/test/resources" />
- <property name="tmp.dir" value="${basedir}/modules/examples/target/config-tmp" />
- </ant>
- <ant antfile="modules/distro/src/main/resources/config-tool/build.xml" target="create.configuration.files" inheritall="false">
- <property name="config.files.dir" value="${basedir}/modules/test-db/src/test/resources" />
- <property name="tmp.dir" value="${basedir}/modules/test-db/target/config-tmp" />
- </ant>
- </target -->
-
- <target name="test.configuration" description="create test configuration in target/config">
- <ant antfile="modules/distro/src/main/resources/config-tool/build.xml"
- target="db.drop.create" inheritall="false">
- <property name="jboss.bind.address" value="localhost" />
- <property name="config.files.dir" value="${basedir}/target/config.tool/config.files" />
- <property name="tmp.dir" value="${basedir}/target/config.tool/tmp" />
- <property name="libs.dir" value="${basedir}/target/libs" />
- </ant>
- </target>
-
- <target name="db.create.mysql">
- <exec executable="${mvn.executable}">
- <arg line=" -Ddatabase=mysql -DskipTests -Pdrop-tables -Pcreate-tables clean install" />
- </exec>
- </target>
-
-</project>
\ No newline at end of file
Deleted: jbpm4/branches/jimma/pom.xml
===================================================================
--- jbpm4/branches/jimma/pom.xml 2009-07-05 14:27:27 UTC (rev 5233)
+++ jbpm4/branches/jimma/pom.xml 2009-07-06 06:37:16 UTC (rev 5234)
@@ -1,792 +0,0 @@
-<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <name>jBPM 4</name>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm</artifactId>
- <packaging>pom</packaging>
-
- <version>4.0-SNAPSHOT</version>
-
- <organization>
- <name>JBoss, a division of Red Hat</name>
- <url>http://www.jboss.org</url>
- </organization>
-
- <!-- Modules -->
- <modules>
- <module>modules/log</module>
- <module>modules/api</module>
- <module>modules/test-base</module>
- <module>modules/pvm</module>
- <module>modules/jpdl</module>
- <module>modules/integration</module>
- <module>modules/examples</module>
- <module>modules/test-db</module>
- <module>modules/test-pojo</module>
- </modules>
-
- <!-- Properties -->
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <apache.ant.version>1.7.0</apache.ant.version>
- <cactus.version>13-1.7.1</cactus.version>
- <freemarker.version>2.3.15</freemarker.version>
- <gwt.console.version>1.0.0.CR1</gwt.console.version>
- <jbpm.gpd.version>4.0.0-SNAPSHOT</jbpm.gpd.version>
- <hibernate.version>3.3.1.GA</hibernate.version>
- <slf4j.version>1.5.2</slf4j.version>
- <hsqldb.version>1.8.0.7</hsqldb.version>
- <izpack.version>4.2.1</izpack.version>
- <jboss.identity.version>1.0.0.Alpha8</jboss.identity.version>
- <jboss.j2ee.version>4.2.2.GA</jboss.j2ee.version>
- <jboss.client.version>5.0.1.GA</jboss.client.version>
- <jsr233.version>2.0.5</jsr233.version>
- <juel.version>2.1.0</juel.version>
- <junit.version>3.8.1</junit.version>
- <log4j.version>1.2.14</log4j.version>
- <mail.version>1.4.1</mail.version>
- <report.engine.version>2.3.2</report.engine.version>
- <servlet-api.version>2.5</servlet-api.version>
- <spring.version>2.0.8</spring.version>
- <stax.api.version>1.0.1</stax.api.version>
- <wiser.version>1.2</wiser.version>
- <woodstox.version>3.2.6</woodstox.version>
- <!-- Database Driver Versions -->
- <hsqldb.version>1.8.0.7</hsqldb.version>
- <mysql.connector.version>5.0.8</mysql.connector.version>
- <postgresql.version>8.3-603.jdbc3</postgresql.version>
- <jtds.version>1.2.2</jtds.version>
- <oracle.version>10.0.2.0</oracle.version>
- </properties>
-
- <!-- DependencyManagement -->
- <dependencyManagement>
- <dependencies>
-
- <!-- Core engine components -->
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-api</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-db</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-enterprise</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-examples</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-jpdl</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-log</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-pvm</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-test-base</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-test-db</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-spi</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-jboss5</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-integration</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-form-plugin</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-graphView-plugin</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.birt</groupId>
- <artifactId>report-engine</artifactId>
- <type>zip</type>
- <version>${report.engine.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-reports</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-jboss4</artifactId>
- <version>${version}</version>
- </dependency>
-
-
- <!-- GWT console -->
- <dependency>
- <groupId>org.jboss.bpm</groupId>
- <artifactId>gwt-console</artifactId>
- <version>${gwt.console.version}</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.bpm</groupId>
- <artifactId>gwt-console-server</artifactId>
- <version>${gwt.console.version}</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.bpm</groupId>
- <artifactId>gwt-console-server-integration</artifactId>
- <version>${gwt.console.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.bpm</groupId>
- <artifactId>gwt-console-rpc</artifactId>
- <version>${gwt.console.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <!-- GPD -->
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-gpd</artifactId>
- <type>zip</type>
- <version>${jbpm.gpd.version}</version>
- </dependency>
-
- <!-- External dependencies -->
- <!-- Please sort by groupid -->
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>${apache.ant.version}</version>
- </dependency>
- <dependency>
- <groupId>cactus</groupId>
- <artifactId>cactus</artifactId>
- <version>${cactus.version}</version>
- </dependency>
- <dependency>
- <groupId>org.freemarker</groupId>
- <artifactId>freemarker</artifactId>
- <version>${freemarker.version}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>${hibernate.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-jdk14</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.identity.idm</groupId>
- <artifactId>idm-core</artifactId>
- <version>${jboss.identity.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.identity.idm</groupId>
- <artifactId>idm-hibernate</artifactId>
- <version>${jboss.identity.version}</version>
- </dependency>
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>${hsqldb.version}</version>
- </dependency>
- <dependency>
- <groupId>izpack</groupId>
- <artifactId>standalone-compiler</artifactId>
- <version>${izpack.version}</version>
- </dependency>
-
- <!-- AS 5 dependencies -->
- <dependency>
- <groupId>org.jboss.javaee</groupId>
- <artifactId>jboss-javaee</artifactId>
- <version>${jboss.client.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.jbossas</groupId>
- <artifactId>jboss-as-client</artifactId>
- <version>${jboss.client.version}</version>
- <type>pom</type>
- </dependency>
-
- <!-- enterprise module deepends on j2ee -->
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-j2ee</artifactId>
- <version>${jboss.j2ee.version}</version>
- </dependency>
-
-
- <dependency>
- <groupId>juel</groupId>
- <artifactId>juel</artifactId>
- <version>${juel.version}</version>
- </dependency>
- <dependency>
- <groupId>juel</groupId>
- <artifactId>juel-impl</artifactId>
- <version>${juel.version}</version>
- </dependency>
- <dependency>
- <groupId>juel</groupId>
- <artifactId>juel-engine</artifactId>
- <version>${juel.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>${servlet-api.version}</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.livetribe</groupId>
- <artifactId>livetribe-jsr223</artifactId>
- <version>${jsr233.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.mail</groupId>
- <artifactId>mail</artifactId>
- <version>${mail.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.subethamail</groupId>
- <artifactId>subethasmtp-wiser</artifactId>
- <version>${wiser.version}</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.woodstox</groupId>
- <artifactId>wstx-lgpl</artifactId>
- <version>${woodstox.version}</version>
- </dependency>
-
- <!-- Database Driver Versions -->
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>${hsqldb.version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgresql.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jtds</groupId>
- <artifactId>jtds</artifactId>
- <version>${jtds.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbpm/jbpm4</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbpm/jbpm4</developerConnection>
- <url>http://fisheye.jboss.com/browse/JbpmSvn/jbpm4</url>
- </scm>
-
- <!-- IssueManagement -->
- <issueManagement>
- <system>jira</system>
- <url>http://jira.jboss.org/jira/browse/JBPM</url>
- </issueManagement>
-
- <!-- Licenses -->
- <licenses>
- <license>
- <name>lgpl</name>
- <url>http://repository.jboss.com/licenses/lgpl.txt</url>
- </license>
- </licenses>
-
- <!-- Plugins -->
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <showDeprecation>true</showDeprecation>
- <showWarnings>true</showWarnings>
- <optimize>true</optimize>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <failIfNoTests>false</failIfNoTests>
- <trimStackTrace>false</trimStackTrace>
- <systemProperties>
- <property>
- <name>log4j.output.dir</name>
- <value>${project.build.directory}</value>
- </property>
- </systemProperties>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- </excludes>
- </configuration>
- </plugin>
-
- </plugins>
-
- <!-- PluginManagement -->
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2.SP1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>1.0-beta-1</version>
- </plugin>
- <plugin>
- <groupId>net.sourceforge.maven-taglib</groupId>
- <artifactId>maven-taglib-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <!-- Profiles -->
- <profiles>
-
- <profile>
- <id>distro</id>
- <modules>
- <module>modules/enterprise</module>
- <module>modules/db</module>
- <module>modules/devguide</module>
- <module>modules/userguide</module>
- <module>modules/distro</module>
- </modules>
- <properties>
- <skipTests>true</skipTests>
- </properties>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>load</id>
- <modules>
- <module>modules/test-load</module>
- </modules>
- </profile>
-
- <profile>
- <id>skiptests</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <!--
- Name: no-database
- Descr: Setup the default database
- -->
- <profile>
- <id>no-database</id>
- <activation>
- <property>
- <name>!database</name>
- </property>
- </activation>
- <properties>
- <database>hsqldb</database>
- </properties>
- <dependencies>
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <!--
- Name: no-target-container
- Descr: Setup the default target container
- -->
- <profile>
- <id>no-target-container</id>
- <activation>
- <property>
- <name>!jbpm.target.container</name>
- </property>
- </activation>
- <properties>
- <jbpm.target.container>jboss500</jbpm.target.container>
- </properties>
- </profile>
-
- <profile>
- <id>hsql</id>
- <activation>
- <property>
- <name>database</name>
- <value>hsqldb</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <!-- -Ddatabase=oracle -->
- <profile>
- <id>oracle</id>
- <activation>
- <property>
- <name>database</name>
- <value>oracle</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc14</artifactId>
- <version>${oracle.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>qa.jboss.com</id>
- <url>http://www.qa.jboss.com/jdbc-drivers/maven2</url>
- </repository>
- </repositories>
- </profile>
-
- <!-- -Ddatabase=mysql -->
- <profile>
- <id>mysql</id>
- <activation>
- <property>
- <name>database</name>
- <value>mysql</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.0.8</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <!-- -Ddatabase=postgresql -->
- <profile>
- <id>postgresql</id>
- <activation>
- <property>
- <name>database</name>
- <value>postgresql</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
-
- <!-- -Ddatabase=sybase -->
- <profile>
- <id>sybase</id>
- <activation>
- <property>
- <name>database</name>
- <value>sybase</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>net.sourceforge.jtds</groupId>
- <artifactId>jtds</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.sybase</groupId>
- <artifactId>jconnect</artifactId>
- <version>6.0.5</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>qa.jboss.com</id>
- <url>http://www.qa.jboss.com/jdbc-drivers/maven2</url>
- </repository>
- </repositories>
- </profile>
-
- <profile>
- <id>report</id>
- <!-- Report Customization 'mvn site:site'-->
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.0.1</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>index</report>
- <report>summary</report>
- <report>issue-tracking</report>
- <report>mailing-list</report>
- <report>scm</report>
- <report>project-team</report>
- <report>license</report>
- <report>javadoc</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
-
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jxr-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </reporting>
- </profile>
- </profiles>
-
- <!-- Repositories -->
- <repositories>
- <repository>
- <id>maven1.java.net</id>
- <url>http://download.java.net/maven/1/</url>
- <layout>legacy</layout>
- </repository>
- <repository>
- <id>repository.jboss.org</id>
- <url>http://repository.jboss.com/maven2</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>snapshots.jboss.org</id>
- <url>http://snapshots.jboss.org/maven2</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>repository.codehaus.org</id>
- <url>http://repository.codehaus.org</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>maven2.java.net</id>
- <name>Java.net Repository for Maven 2</name>
- <url>http://download.java.net/maven/2/</url>
- </repository>
- <repository>
- <id>gwt-maven</id>
- <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
- </repository>
- </repositories>
-
- <!-- PluginRepositories -->
- <pluginRepositories>
- <pluginRepository>
- <id>maven2.java.net</id>
- <name>Java.net Repository for Maven 2</name>
- <url>http://download.java.net/maven/2/</url>
- </pluginRepository>
- <pluginRepository>
- <id>repository.jboss.com</id>
- <url>http://repository.jboss.com/maven2</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>snapshots.jboss.org</id>
- <url>http://snapshots.jboss.org/maven2</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>gwt-maven</id>
- <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
- </pluginRepository>
- </pluginRepositories>
-
- <!-- DistributionManagement -->
- <distributionManagement>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Maven Repository</name>
- <url>file://${jboss.maven.repository}</url>
- </repository>
- <snapshotRepository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshot Repository</name>
- <url>dav:https://snapshots.jboss.org/maven2</url>
- </snapshotRepository>
- </distributionManagement>
-
-</project>
15 years, 4 months