[Jpackage-commits] rpms/free/sysunit pom-maven2jpp-depcat.xsl, NONE, 1.1.2.1 pom-maven2jpp-mapdeps.xsl, NONE, 1.1.2.1 pom-maven2jpp-newdepmap.xsl, NONE, 1.1.2.1 sysunit-1.0-jpp-depmap.xml, NONE, 1.1.2.1 sysunit-1.0.pom, NONE, 1.1.2.1 sysunit-project.patch, NONE, 1.1.2.1 sysunit.spec, NONE, 1.1.2.1

jpackage jpackage at ryu.zarb.org
Sun Feb 8 14:16:07 CET 2009


Update of /home/projects/jpackage/cvs/rpms/free/sysunit
In directory ryu.zarb.org:/tmp/S9nNXlJrVl/rpms/free/sysunit

Added Files:
      Tag: JPACKAGE-5_0
	pom-maven2jpp-depcat.xsl pom-maven2jpp-mapdeps.xsl 
	pom-maven2jpp-newdepmap.xsl sysunit-1.0-jpp-depmap.xml 
	sysunit-1.0.pom sysunit-project.patch sysunit.spec 
Log Message:
1.0-1.jpp5

--- NEW FILE: pom-maven2jpp-depcat.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="*[name() != 'dependencies']|*/text()">
     <xsl:apply-templates/>
 </xsl:template>
 <xsl:template match="//dependencies">
  <xsl:for-each select="./dependency">
   <xsl:element name="dependency">
    <xsl:element name="maven">
     <xsl:choose>
      <xsl:when test="./groupId">
       <xsl:copy-of select="./groupId"/>
       <xsl:copy-of select="./artifactId"/>
      </xsl:when>
      <xsl:when test="./id">
       <xsl:choose>
        <xsl:when test="substring-before(./id/text(),':') != ''">
         <xsl:element name="groupId">
          <xsl:value-of select="substring-before(./id/text(),':')"/>
         </xsl:element>
         <xsl:element name="artifactId">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:element>
        </xsl:when>
        <xsl:otherwise>
         <xsl:element name="groupId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
         <xsl:element name="artifactId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
ERROR
      </xsl:otherwise>
     </xsl:choose>
     <xsl:for-each select="./*">
      <xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id')">
       <xsl:copy-of select="."/>
      </xsl:if>
     </xsl:for-each>
    </xsl:element>
    <xsl:element name="jpp">
     <xsl:element name="groupId">JPP</xsl:element>
     <xsl:choose>
      <xsl:when test="./artifactId">
       <xsl:copy-of select="./artifactId"/>
      </xsl:when>
      <xsl:when test="./id">
       <xsl:choose>
        <xsl:when test="substring-after(./id/text(),':') != ''">
         <xsl:element name="artifactId">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:element>
        </xsl:when>
        <xsl:otherwise>
         <xsl:element name="artifactId">
          <xsl:value-of select="./id/text()"/>
         </xsl:element>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
ERROR
      </xsl:otherwise>
     </xsl:choose>
     <xsl:element name="jar">
      <xsl:choose>
       <xsl:when test="./artifactId">
        <xsl:value-of select="./artifactId/text()"/>
       </xsl:when>
       <xsl:when test="./id">
        <xsl:choose>
         <xsl:when test="substring-after(./id/text(),':') != ''">
          <xsl:value-of select="substring-after(./id/text(),':')"/>
         </xsl:when>
         <xsl:otherwise>
          <xsl:value-of select="./id/text()"/>
         </xsl:otherwise>
        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
ERROR
       </xsl:otherwise>
      </xsl:choose>
      <xsl:choose>
       <xsl:when test="./type">
        <xsl:choose>
         <xsl:when test="./type/text() = 'plugin'">.jar</xsl:when>
         <xsl:otherwise>.<xsl:value-of select="./type/text()"/></xsl:otherwise>
        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>.jar</xsl:otherwise>
      </xsl:choose>
     </xsl:element>
     <xsl:for-each select="./*">
      <xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id')">
       <xsl:copy-of select="."/>
      </xsl:if>
     </xsl:for-each>
    </xsl:element>
   </xsl:element>
  </xsl:for-each>
 </xsl:template>
</xsl:stylesheet>

--- NEW FILE: pom-maven2jpp-newdepmap.xsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:saxon="http://icl.com/saxon"
	extension-element-prefixes="saxon">
 <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="/" >
  <xsl:element name="depset">
   <saxon:group select="//dependency" group-by="./maven/artifactId">
    <xsl:sort select="./maven/artifactId"/>
    <xsl:element name="dependency">
     <xsl:element name="maven">
      <xsl:copy-of select="./maven/*[name() != 'properties']"/>
     </xsl:element>
     <xsl:element name="jpp">
      <xsl:copy-of select="./jpp/*[name() != 'properties']"/>
     </xsl:element>
    </xsl:element>
    <saxon:item/>
   </saxon:group>
  </xsl:element>
 </xsl:template>
</xsl:stylesheet>

--- NEW FILE: sysunit-1.0-jpp-depmap.xml ---
<?xml version="1.0" encoding="utf-8"?>
<depset>
   <dependency>
      <maven>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-logging</artifactId>
         <jar>commons-logging.jar</jar>
         <version>1.0.2</version>
      </jpp>
   </dependency>

<!--
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jboss-jmx</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jboss-jmx</artifactId>
         <jar>jboss4/jboss-jmx.jar</jar>
         <version>4.0.4</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jboss-jmx</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jboss-jmx</artifactId>
         <jar>jbossas/jboss-jmx.jar</jar>
         <version>4.2.3</version>
      </jpp>
   </dependency>

<!--
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jboss-system</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jboss-system</artifactId>
         <jar>jboss4/jboss-system.jar</jar>
         <version>4.0.4</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jboss-system</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jboss-system</artifactId>
         <jar>jbossas/jboss-system.jar</jar>
         <version>4.2.3</version>
      </jpp>
   </dependency>

<!--
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jbossall-client</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jbossall-client</artifactId>
         <jar>../jboss4/client/jbossall-client.jar</jar>
         <version>4.0.4</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jbossall-client</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jbossall-client</artifactId>
         <jar>jbossas/jbossall-client.jar</jar>
         <version>4.2.3</version>
      </jpp>
   </dependency>

<!--
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jmx-adaptor-plugin</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jmx-adaptor-plugin</artifactId>
         <jar>jboss4/jmx-adaptor-plugin.jar</jar>
         <version>4.0.4</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jmx-adaptor-plugin</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jmx-adaptor-plugin</artifactId>
         <jar>jbossas/jmx-adaptor-plugin.jar</jar>
         <version>4.2.3</version>
      </jpp>
   </dependency>

   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jnet</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jnet</artifactId>
         <jar>jnet.jar</jar>
         <version>3.2.1</version>
      </jpp>
   </dependency>

<!--
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jnp-client</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jnp-client</artifactId>
         <jar>jboss4/jnp-client.jar</jar>
         <version>4.0.4</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>jboss</groupId>
         <artifactId>jnp-client</artifactId>
         <version>3.2.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jnp-client</artifactId>
         <jar>jbossas/jnp-client.jar</jar>
         <version>4.2.3</version>
      </jpp>
   </dependency>

   <dependency>
      <maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>junit</artifactId>
         <jar>junit.jar</jar>
         <version>3.8.2</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>mx4j+jmx</groupId>
         <artifactId>mx4j+jmx</artifactId>
         <version>1.1.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>mx4j+jmx</artifactId>
         <jar>mx4j/mx4j-jmx.jar</jar>
         <version>3.0.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>mx4j+tools</groupId>
         <artifactId>mx4j+tools</artifactId>
         <version>1.1.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>mx4j+tools</artifactId>
         <jar>mx4j/mx4j-tools.jar</jar>
         <version>3.0.1</version>
      </jpp>
   </dependency>
</depset>

--- NEW FILE: sysunit-project.patch ---
--- project.xml.sav0	2003-06-06 16:09:10.000000000 +0200
+++ project.xml	2008-09-27 13:00:02.000000000 +0200
@@ -1,216 +1,83 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
+<?xml version="1.0" encoding="utf-8"?>
 <project>
-  <pomVersion>3</pomVersion>
-  <name>SysUnit</name>
-  <id>sysunit</id>
-  <currentVersion>1.0</currentVersion>
-  
-  <organization>
-    <name>SpritSoft, Inc.</name>
-    <url>http://www.spiritsoft.com</url>
-    <logo>/images/group-logo.gif</logo>
-  </organization>
-  <logo>http://sourceforge.net/sflogo.php?group_id=76653&type=5</logo>
-
-
-  <inceptionYear>2003</inceptionYear>
-  <package>org.sysunit</package>
-  <shortDescription>SysUnit is a JUnit framework for system testing</shortDescription>
-
-  <!-- Gump integration -->
-  <gumpRepositoryId>sysunit</gumpRepositoryId>
-  
-  <description>
+   <pomVersion>3</pomVersion>
+   <name>SysUnit</name>
+   <id>sysunit</id>
+   <currentVersion>1.0</currentVersion>
+   <organization>
+      <name>SpritSoft, Inc.</name>
+      <url>http://www.spiritsoft.com</url>
+      <logo>/images/group-logo.gif</logo>
+   </organization>
+   <logo>http://sourceforge.net/sflogo.php?group_id=76653&type=5</logo>
+   <inceptionYear>2003</inceptionYear>
+   <package>org.sysunit</package>
+   <shortDescription>SysUnit is a JUnit framework for system testing</shortDescription>
+   <gumpRepositoryId>sysunit</gumpRepositoryId>
+   <description>
   	SysUnit is a JUnit framework for system testing
   </description>
-  
-  <url>http://sysunit.sourceforge.net/</url>
-  <issueTrackingUrl>http://sourceforge.net/tracker/?group_id=76653</issueTrackingUrl>
-  
-  <siteAddress>sysunit.sourceforge.net</siteAddress>
-  <siteDirectory>/home/groups/s/sy/sysunit/htdocs</siteDirectory>
-  <distributionDirectory>/home/groups/s/sy/sysunit/htdocs/dist</distributionDirectory>
-  
-  <repository>
-    <connection>scm:cvs:pserver:anonymous at cvs.sourceforge.net:/cvsroot/sysunit:sysunit</connection>
-    <developerConnection>scm:cvs:ext:${maven.username}@cvs.sourceforge.net:/cvsroot/sysunit:sysunit</developerConnection>
-    <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sysunit/sysunit/</url>
-  </repository>
-  
-  <mailingLists>
-    <mailingList>
-      <name>SysUnit Interest List</name>
-      <subscribe></subscribe>
-      <unsubscribe></unsubscribe>
-      <archive></archive>
-    </mailingList>
-  </mailingLists>
-  
-  
-  <versions>
-    <version>
-      <id>1.0-beta-1</id>
-      <name>1.0-beta-1</name>
-      <tag>1.0-beta-1</tag>
-    </version>
-  </versions>
-  <branches></branches>
-  
-  <mailingLists>
-    <mailingList>
-      <name>sysunit at spiritsoft.com</name>
-      <subscribe></subscribe>
-      <unsubscribe></unsubscribe>
-      <archive></archive>
-    </mailingList>
-  </mailingLists>
-  
-  <developers>
-    <developer>
-      <name>James Strachan</name>
-      <id>jstrachan</id>
-      <email>jstrachan at apache.org</email>
-      <organization>SpiritSoft, Inc.</organization>
-    </developer>
-  </developers>
-
-  <developers>
-    <developer>
-      <name>Bob McWhirter</name>
-      <id>werken</id>
-      <email>bob at werken.com</email>
-      <organization>The Werken Company</organization>
-    </developer>
-  </developers>
-
-  <contributors>
-  </contributors>
-
-  <dependencies>
-    <dependency>
-      <id>commons-logging</id>
-      <version>1.0.2</version>
-    </dependency>
-
-		<!-- used by the JMX connectors -->
-    <dependency>
-      <id>mx4j+jmx</id>
-      <version>1.1.1</version>
-    </dependency>
-    <dependency>
-      <id>mx4j+tools</id>
-      <version>1.1.1</version>
-    </dependency>
-
-		<!-- jars for jboss -->
-<!--
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jboss</artifactId>
-      <version>3.2.1</version>
-    </dependency>
--->
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jboss-system</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-<!--
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jboss-common</artifactId>
-      <version>3.2.1</version>
-    </dependency>
--->
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jboss-jmx</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jmx-adaptor-plugin</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jnp-client</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jnet</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jbossall-client</artifactId>
-      <version>3.2.1</version>
-    </dependency>
-
-<!--
-    <dependency>
-      <groupId>jboss</groupId>
-      <artifactId>jboss-j2ee</artifactId>
-      <version>3.2.1</version>
-    </dependency>
--->
-
-		<!-- jars for unit tests -->
-
-    <dependency>
-      <id>junit</id>
-      <version>3.8.1</version>
-    </dependency>
-    
-<!--
-    <dependency>
-      <id>xml-apis</id>
-      <version>1.0.b2</version>
-    </dependency>
-    
-    <dependency>
-      <id>xerces</id>
-      <version>2.0.2</version>
-    </dependency>
--->
-  </dependencies>
-  
-  <build>
-    <nagEmailAddress>sysunit at spiritsoft.com</nagEmailAddress>
-    <sourceDirectory>src/java</sourceDirectory>
-    <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
-    
-    <integrationUnitTestSourceDirectory/>
-    <aspectSourceDirectory/>
-    
-    <unitTest>
-      <resources>
-        <resource>
-          <directory>src/java</directory>
-          <includes>
-            <include>**/*.properties</include>
-          </includes>
-        </resource>
-      </resources>
-      <includes>
-        <include>**/Test*.java</include>
-      </includes>
-    </unitTest>
-
-    
-    <!-- J A R  R E S O U R C E S -->
-    <!-- Resources that are packaged up inside the JAR file -->
-    <resources>
-<!--
+   <url>http://sysunit.sourceforge.net/</url>
+   <issueTrackingUrl>http://sourceforge.net/tracker/?group_id=76653</issueTrackingUrl>
+   <siteAddress>sysunit.sourceforge.net</siteAddress>
+   <siteDirectory>/home/groups/s/sy/sysunit/htdocs</siteDirectory>
+   <distributionDirectory>/home/groups/s/sy/sysunit/htdocs/dist</distributionDirectory>
+   <repository>
+      <connection>scm:cvs:pserver:anonymous at cvs.sourceforge.net:/cvsroot/sysunit:sysunit</connection>
+      <developerConnection>scm:cvs:ext:${maven.username}@cvs.sourceforge.net:/cvsroot/sysunit:sysunit</developerConnection>
+      <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sysunit/sysunit/</url>
+   </repository>
+   <versions>
+      <version>
+         <id>1.0-beta-1</id>
+         <name>1.0-beta-1</name>
+         <tag>1.0-beta-1</tag>
+      </version>
+   </versions>
+   <branches/>
+   <mailingLists>
+      <mailingList>
+         <name>sysunit at spiritsoft.com</name>
+         <subscribe/>
+         <unsubscribe/>
+         <archive/>
+      </mailingList>
+   </mailingLists>
+   <developers>
+      <developer>
+         <name>James Strachan</name>
+         <id>jstrachan</id>
+         <email>jstrachan at apache.org</email>
+         <organization>SpiritSoft, Inc.</organization>
+      </developer>
+      <developer>
+         <name>Bob McWhirter</name>
+         <id>werken</id>
+         <email>bob at werken.com</email>
+         <organization>The Werken Company</organization>
+      </developer>
+   </developers>
+   <contributors/>
+   <build>
+      <nagEmailAddress>sysunit at spiritsoft.com</nagEmailAddress>
+      <sourceDirectory>src/java</sourceDirectory>
+      <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
+      <integrationUnitTestSourceDirectory/>
+      <aspectSourceDirectory/>
+      <unitTest>
+         <resources>
+            <resource>
+               <directory>src/java</directory>
+               <includes>
+                  <include>**/*.properties</include>
+               </includes>
+            </resource>
+         </resources>
+         <includes>
+            <include>**/Test*.java</include>
+         </includes>
+      </unitTest><!-- J A R  R E S O U R C E S --><!-- Resources that are packaged up inside the JAR file -->
+      <resources><!--
       <resource>
         <directory>src/jar</directory>
         <includes>
@@ -218,12 +85,74 @@
           <include>**/*.xml</include>
         </includes>
       </resource>
--->
-<!--
+--><!--
       <includes>
         <include>**/*.properties</include>
       </includes>
--->
-    </resources>
-  </build>
+--></resources>
+   </build>
+   <dependencies>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>commons-logging</artifactId>
+         <jar>commons-logging.jar</jar>
+         <version>1.0.2</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>mx4j+jmx</artifactId>
+         <jar>mx4j/mx4j-jmx.jar</jar>
+         <version>3.0.1</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>mx4j+tools</artifactId>
+         <jar>mx4j/mx4j-tools.jar</jar>
+         <version>3.0.1</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jboss-system</artifactId>
+         <jar>jbossas/jboss-system.jar</jar>
+         <version>4.2.3</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jboss-jmx</artifactId>
+         <jar>jbossas/jboss-jmx.jar</jar>
+         <version>4.2.3</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jmx-adaptor-plugin</artifactId>
+         <jar>jbossas/jmx-adaptor-plugin.jar</jar>
+         <version>4.2.3</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jnp-client</artifactId>
+         <jar>jbossas/jnp-client.jar</jar>
+         <version>4.2.3</version>
+      </dependency>
+<!--
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jnet</artifactId>
+         <jar>jnet.jar</jar>
+         <version>3.2.1</version>
+      </dependency>
+-->
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>jbossall-client</artifactId>
+         <jar>jbossas/jbossall-client.jar</jar>
+         <version>4.2.3</version>
+      </dependency>
+      <dependency>
+         <groupId>JPP</groupId>
+         <artifactId>junit</artifactId>
+         <jar>junit.jar</jar>
+         <version>3.8.2</version>
+      </dependency>
+   </dependencies>
 </project>

--- NEW FILE: sysunit-1.0.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <name>SysUnit</name>
  <groupId>sysunit</groupId>
  <artifactId>sysunit</artifactId>
  <version>1.0</version>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
    </dependency>
  </dependencies>

</project>

--- NEW FILE: sysunit.spec ---
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free

Name:           sysunit
Summary:        SysUnit
Url:            http://sourceforge.net/projects/sysunit
Version:        1.0
Release:        1%{dist}
Epoch:          0
License:        Apache Software License 2
Group:          Development/Libraries/Java
Source0:        sysunit.tar.gz
#  cvs -d:pserver:anonymous at sysunit.cvs.sourceforge.net:/cvsroot/sysunit login
#  cvs -z3 -d:pserver:anonymous at sysunit.cvs.sourceforge.net:/cvsroot/sysunit export -r HEAD sysunit

Source1:        pom-maven2jpp-depcat.xsl
Source2:        pom-maven2jpp-newdepmap.xsl
Source3:        pom-maven2jpp-mapdeps.xsl
Source4:        sysunit-1.0-jpp-depmap.xml
Source5:        sysunit-1.0.pom

Patch0:         sysunit-project.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant
BuildRequires:  junit
BuildRequires:  maven >= 0:1.1
BuildRequires:  maven-plugins-base
BuildRequires:  maven-plugin-changelog
BuildRequires:  maven-plugin-changes
BuildRequires:  maven-plugin-checkstyle
BuildRequires:  maven-plugin-developer-activity
BuildRequires:  maven-plugin-file-activity
BuildRequires:  maven-plugin-html2xdoc
BuildRequires:  maven-plugin-jdepend
BuildRequires:  maven-plugin-jxr
BuildRequires:  maven-plugin-license
BuildRequires:  maven-plugin-linkcheck
BuildRequires:  maven-plugin-multiproject
BuildRequires:  maven-plugin-pmd
BuildRequires:  maven-plugin-tasklist
BuildRequires:  maven-plugin-test
BuildRequires:  maven-plugin-war
BuildRequires:  maven-plugin-xdoc
BuildRequires:  saxon
BuildRequires:  saxon-scripts
#
BuildRequires:  jakarta-commons-logging
BuildRequires:  jbossas

#BuildRequires:  mx4j

#
Requires:  java >= 0:1.5.0
Requires:  jakarta-commons-logging
#Requires:  jbossas
#Requires:  mx4j

Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot

%description
SysUnit is a JUnit framework for distributed testing, system
testing and integration testing. SysUnit is ideal for testing
highly distributed software such as clusters of web
applications, web services or MOM based software.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}
chmod -R go=u-w *
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

export DEPCAT=$(pwd)/sysunit-1.0-depcat.new.xml
echo '<?xml version="1.0" standalone="yes"?>' > $DEPCAT
echo '<depset>' >> $DEPCAT
for p in $(find . -name project.xml); do
    pushd $(dirname $p)
    /usr/bin/saxon project.xml %{SOURCE1} >> $DEPCAT
    popd
done
echo >> $DEPCAT
echo '</depset>' >> $DEPCAT
/usr/bin/saxon $DEPCAT %{SOURCE2} > sysunit-1.0-depmap.new.xml

%patch0 -b .sav0

%build
for p in $(find . -name project.xml); do
    pushd $(dirname $p)
    cp project.xml project.xml.orig
    /usr/bin/saxon -o project.xml project.xml.orig %{SOURCE3} map=%{SOURCE4}
    popd
done

export MAVEN_HOME_LOCAL=$(pwd)/.maven

maven -e \
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
        sar doc javadoc


%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}

install -m 644 \
        target/%{name}-%{version}.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -pm 644 %{SOURCE5} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}

# sar
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/sar
install -m 644 \
        target/%{name}-%{version}.sar \
        $RPM_BUILD_ROOT%{_datadir}/%{name}/sar/%{name}-%{version}.sar

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

cp -pr target/docs/apidocs/* \
                $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
rm -rf target/docs/apidocs
cp -pr target/docs/* \
   $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm \
    --exclude /usr/share/%{name}/sar/%{name}-5{version}.sar
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(-,root,root)
%{_javadir}/*.jar
%{_datadir}/%{name}
%doc %{_docdir}/%{name}-%{version}
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/*-%{version}.jar.*
%endif

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%changelog
* Fri Feb 06 2009 Ralph Apel <r.apel at r-apel.de> 0:1.0-1.jpp5
- First release


--- NEW FILE: pom-maven2jpp-mapdeps.xsl ---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:param name="map" /> 
 <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/> 
 <xsl:strip-space elements="*"/> 
 <xsl:template match="/project" >
  <xsl:element name="project">
   <xsl:copy-of select="child::*[not(self::dependencies)]"/>
   <xsl:if test="not(./dependencies)">
    <xsl:element name="dependencies">
     <xsl:for-each select="document($map)//add/dependency">
       <xsl:copy-of select="."/>
     </xsl:for-each>
    </xsl:element>
   </xsl:if>
   <xsl:apply-templates select="dependencies"/>
  </xsl:element>
 </xsl:template>
 <xsl:template match="dependencies" >
  <xsl:element name="dependencies">
   <xsl:for-each select="dependency">
    <xsl:if test="./artifactId">
     <xsl:call-template name="replace">
      <xsl:with-param name="artifact" select="./artifactId/text()"/>
     </xsl:call-template>
    </xsl:if>
    <xsl:if test="./id">
     <xsl:choose>
      <xsl:when test="substring-after(./id/text(),':') != ''">
       <xsl:call-template name="replace">
        <xsl:with-param name="artifact" select="substring-after(./id/text(),':')"/>
       </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
       <xsl:call-template name="replace">
        <xsl:with-param name="artifact" select="./id/text()"/>
       </xsl:call-template>
      </xsl:otherwise>
     </xsl:choose>
    </xsl:if>
   </xsl:for-each>
   <xsl:for-each select="document($map)//add/dependency">
    <xsl:copy-of select="."/>
   </xsl:for-each>
  </xsl:element>
 </xsl:template>
 <xsl:template name="replace">
  <xsl:param name="artifact"/>
  <xsl:variable name="this" select="."/>
  <xsl:element name="dependency">
   <xsl:choose>
    <xsl:when test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
     <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
      <xsl:copy-of select="../jpp/*"/>
      <xsl:copy-of select="$this/properties"/>
     </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
     <xsl:copy-of select="./*"/>
    </xsl:otherwise>
   </xsl:choose>
  </xsl:element>
  <xsl:if test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
   <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
    <xsl:for-each select="../add/dependency">
     <xsl:element name="dependency">
      <xsl:copy-of select="./*"/>
      <xsl:copy-of select="$this/properties"/>
     </xsl:element>
    </xsl:for-each>
   </xsl:for-each>
  </xsl:if>
 </xsl:template>
</xsl:stylesheet>




More information about the JPackage-commits mailing list