[jbpm-commits] JBoss JBPM SVN: r3075 - in jbpm4/trunk: hudson/hudson-home and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Nov 25 06:05:56 EST 2008


Author: tom.baeyens at jboss.com
Date: 2008-11-25 06:05:56 -0500 (Tue, 25 Nov 2008)
New Revision: 3075

Modified:
   jbpm4/trunk/build.xml
   jbpm4/trunk/hudson/hudson-home/command.sh
   jbpm4/trunk/modules/api/pom.xml
Log:
adding schemadoc generation as a profile

Modified: jbpm4/trunk/build.xml
===================================================================
--- jbpm4/trunk/build.xml	2008-11-25 11:05:53 UTC (rev 3074)
+++ jbpm4/trunk/build.xml	2008-11-25 11:05:56 UTC (rev 3075)
@@ -59,7 +59,7 @@
 
   <target name="schemadocs">
     <exec executable="cmd" dir="modules/api">
-      <arg line="/C mvn package" />
+      <arg line="/C mvn -Pschemadocs package" />
     </exec>
     <antcall target="show.html">
       <param name="page" value="modules/api/target/doc/schemadoc/index.html"/>

Modified: jbpm4/trunk/hudson/hudson-home/command.sh
===================================================================
--- jbpm4/trunk/hudson/hudson-home/command.sh	2008-11-25 11:05:53 UTC (rev 3074)
+++ jbpm4/trunk/hudson/hudson-home/command.sh	2008-11-25 11:05:56 UTC (rev 3075)
@@ -16,7 +16,7 @@
 #
 cd $JBPMDIR
 cp profiles.xml.example profiles.xml
-MVN_CMD="mvn $ENVIRONMENT clean install"
+MVN_CMD="mvn $ENVIRONMENT -DskiptTests clean install"
 echo $MVN_CMD; $MVN_CMD 2>&1; MVN_STATUS=$?
 if [ $MVN_STATUS -ne 0 ]; then
   echo maven exit status $MVN_STATUS
@@ -35,3 +35,12 @@
 MVN_CMD="mvn -o $ENVIRONMENT -DtestFailureIgnore=true test"
 echo $MVN_CMD; $MVN_CMD 2>&1 | tee $WORKSPACE/tests.log
 cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+
+#
+# generate schema docs
+#   ( for some reason or another xsddoc has to be called from 
+#     the modules/api dir and can't be called from the parent 
+#     project directory )
+#  
+MVN_CMD="cd modules/api; mvn $ENVIRONMENT -Pschemadocs package"
+echo $MVN_CMD; $MVN_CMD 2>&1 | tee $WORKSPACE/schemadocs.log

Modified: jbpm4/trunk/modules/api/pom.xml
===================================================================
--- jbpm4/trunk/modules/api/pom.xml	2008-11-25 11:05:53 UTC (rev 3074)
+++ jbpm4/trunk/modules/api/pom.xml	2008-11-25 11:05:56 UTC (rev 3075)
@@ -11,6 +11,7 @@
 
 <!-- $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 - API</name>
   <groupId>org.jbpm.jbpm4</groupId>
@@ -47,40 +48,6 @@
   <build>
     <plugins>
       <!-- 
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>generate-jpdlxsd-doc</id>
-            <phase>package</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <echo message="basedir: ${basedir}" />
-                <taskdef name="xsddoc" classname="net.sf.xframe.xsddoc.Task" classpathref="maven.plugin.classpath" />
-                <mkdir dir="target/doc/schemadoc" />
-                <xsddoc out="${basedir}/target/doc/schemadoc" title="jBPM 4 Schema's" verbose="false">
-                  <fileset dir="src/main/resources" />
-                </xsddoc>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-        <dependencies>
-          <dependency>
-            <groupId>xsddoc</groupId>
-            <artifactId>xsddoc</artifactId>
-            <version>1.0</version>
-          </dependency>
-          <dependency>
-            <groupId>xalan</groupId>
-            <artifactId>xalan</artifactId>
-            <version>2.7.0</version>
-          </dependency>
-        </dependencies>
-      </plugin>
        -->
     </plugins>
   </build>
@@ -97,5 +64,49 @@
       </plugin>
     </plugins>
   </reporting>
+
+  <profiles>
+    <profile>
+      <id>schemadocs</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>generate-schemadocs</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <echo message="basedir: ${basedir}" />
+                    <mkdir dir="target/doc/schemadoc" />
+                    <taskdef name="xsddoc" classname="net.sf.xframe.xsddoc.Task" classpathref="maven.plugin.classpath" />
+                    <xsddoc out="${basedir}/target/doc/schemadoc" title="jBPM 4 Schema's" verbose="false">
+                      <fileset dir="src/main/resources" />
+                    </xsddoc>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+            <dependencies>
+              <dependency>
+                <groupId>xsddoc</groupId>
+                <artifactId>xsddoc</artifactId>
+                <version>1.0</version>
+              </dependency>
+              <dependency>
+                <groupId>xalan</groupId>
+                <artifactId>xalan</artifactId>
+                <version>2.7.0</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
   
 </project>
\ No newline at end of file




More information about the jbpm-commits mailing list