[jbpm-commits] JBoss JBPM SVN: r4060 - in jbpm4/trunk: modules/distro/scripts and 3 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Feb 27 05:10:32 EST 2009


Author: tom.baeyens at jboss.com
Date: 2009-02-27 05:10:32 -0500 (Fri, 27 Feb 2009)
New Revision: 4060

Added:
   jbpm4/trunk/modules/distro/src/main/resources/examples-hibernate.cfg.xml
Modified:
   jbpm4/trunk/build.xml
   jbpm4/trunk/modules/distro/scripts/assembly-deploy-artifacts.xml
   jbpm4/trunk/modules/distro/src/main/resources/installer/install-definition.xml
   jbpm4/trunk/modules/examples/pom.xml
Log:
fixed examples in the distro

Modified: jbpm4/trunk/build.xml
===================================================================
--- jbpm4/trunk/build.xml	2009-02-27 08:50:31 UTC (rev 4059)
+++ jbpm4/trunk/build.xml	2009-02-27 10:10:32 UTC (rev 4060)
@@ -1,28 +1,30 @@
 <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" />
+  
+  <!-- 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.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">
@@ -32,11 +34,11 @@
   </target>
 
   <target name="install">
-  	<exec executable="${mvn.executable}" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
+    <exec executable="${mvn.executable}" os="Windows Vista, Windows XP,Windows 2000,Windows 98">
       <arg line="-DskipTests install" />
-  	</exec>
-	</target>
-	
+    </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" />
@@ -65,8 +67,9 @@
   </target>
 
   <target name="distro.install" >
-  	<delete dir="${distro.installation.dir}/jbpm-${distro.version}" />
-  	<unzip src="modules/distro/target/jbpm-${distro.version}.zip" dest="${distro.installation.dir}" />
+    <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"/>
     <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 &quot;${distro.installation.dir}/jbpm-${distro.version}/eclipse/eclipse.exe&quot; &quot;-data&quot; &quot;${distro.installation.dir}/jbpm-${distro.version}/workspace&quot;" />

Modified: jbpm4/trunk/modules/distro/scripts/assembly-deploy-artifacts.xml
===================================================================
--- jbpm4/trunk/modules/distro/scripts/assembly-deploy-artifacts.xml	2009-02-27 08:50:31 UTC (rev 4059)
+++ jbpm4/trunk/modules/distro/scripts/assembly-deploy-artifacts.xml	2009-02-27 10:10:32 UTC (rev 4060)
@@ -171,6 +171,13 @@
       <outputDirectory>examples/src</outputDirectory>
     </fileSet>
     <fileSet>
+      <directory>src/main/resources</directory>
+      <includes>
+        <include>examples-hibernate.cfg.xml</include>
+      </includes>
+      <outputDirectory>examples/src</outputDirectory>
+    </fileSet>    
+    <fileSet>
       <directory>../examples/src/eclipse</directory>
       <outputDirectory>examples</outputDirectory>
     </fileSet>

Added: jbpm4/trunk/modules/distro/src/main/resources/examples-hibernate.cfg.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/resources/examples-hibernate.cfg.xml	                        (rev 0)
+++ jbpm4/trunk/modules/distro/src/main/resources/examples-hibernate.cfg.xml	2009-02-27 10:10:32 UTC (rev 4060)
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='utf-8'?>
+
+<!DOCTYPE hibernate-configuration PUBLIC
+          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+  <session-factory>
+
+    <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+    <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>    
+    <property name="hibernate.connection.url">jdbc:hsqldb:mem:.</property>
+    <property name="hibernate.connection.username">sa</property>
+    <property name="hibernate.connection.password"></property>
+
+    <property name="hibernate.hbm2ddl.auto">create</property>
+
+    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+    <property name="hibernate.format_sql">true</property>
+
+    <mapping resource="jbpm.pvm.typedefs.hbm.xml" />
+    <mapping resource="jbpm.pvm.wire.hbm.xml" />
+    <mapping resource="jbpm.pvm.definition.hbm.xml" />
+    <mapping resource="jbpm.pvm.execution.hbm.xml" />
+    <mapping resource="jbpm.pvm.variable.hbm.xml" />
+    <mapping resource="jbpm.pvm.job.hbm.xml" />
+    <mapping resource="jbpm.pvm.history.hbm.xml" />
+    <mapping resource="jbpm.task.hbm.xml" />
+    <mapping resource="jbpm.jpdl.hbm.xml" />
+
+  </session-factory>
+  
+</hibernate-configuration>
+    
\ No newline at end of file


Property changes on: jbpm4/trunk/modules/distro/src/main/resources/examples-hibernate.cfg.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: jbpm4/trunk/modules/distro/src/main/resources/installer/install-definition.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/resources/installer/install-definition.xml	2009-02-27 08:50:31 UTC (rev 4059)
+++ jbpm4/trunk/modules/distro/src/main/resources/installer/install-definition.xml	2009-02-27 10:10:32 UTC (rev 4060)
@@ -118,6 +118,8 @@
       <!-- jbpm4/ -->
       <file src="@{deploy.artifacts.dir}/release.notes.html" targetdir="$INSTALL_PATH" override="true" />
       <file src="@{deploy.artifacts.dir}/jboss.eula.txt" targetdir="$INSTALL_PATH" override="true" />
+      <file src="@{deploy.artifacts.dir}/license.txt" targetdir="$INSTALL_PATH" override="true" />
+      <file src="@{deploy.artifacts.dir}/readme.html" targetdir="$INSTALL_PATH" override="true" />
 
       <!-- jbpm4/config -->
       <file src="@{deploy.artifacts.dir}/lib/jbpm-jpdl-config.jar" targetdir="$INSTALL_PATH/config"

Modified: jbpm4/trunk/modules/examples/pom.xml
===================================================================
--- jbpm4/trunk/modules/examples/pom.xml	2009-02-27 08:50:31 UTC (rev 4059)
+++ jbpm4/trunk/modules/examples/pom.xml	2009-02-27 10:10:32 UTC (rev 4060)
@@ -58,7 +58,21 @@
       <groupId>org.codehaus.woodstox</groupId>
       <artifactId>wstx-lgpl</artifactId>
       <scope>test</scope>
-    </dependency>    
+    </dependency>   
+    <dependency>
+      <groupId>org.jbpm.jbpm4.dependencies.esb</groupId>
+      <artifactId>jbossesb-rosetta</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>stax</groupId>
+          <artifactId>stax-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>stax</groupId>
+          <artifactId>stax</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
   </dependencies>
 
   <build>




More information about the jbpm-commits mailing list