[jboss-svn-commits] JBL Code SVN: r10899 - in labs/jbossbuild/maven-plugins/tags: jboss-deploy-maven-plugin-1.2 and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Apr 11 15:16:00 EDT 2007
Author: pgier
Date: 2007-04-11 15:16:00 -0400 (Wed, 11 Apr 2007)
New Revision: 10899
Added:
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java
Removed:
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd
labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java
Log:
[maven-scm] copy for tag jboss-deploy-maven-plugin-1.2
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2 (from rev 10891, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin)
Deleted: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/pom.xml 2007-04-11 16:55:43 UTC (rev 10891)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml 2007-04-11 19:16:00 UTC (rev 10899)
@@ -1,64 +0,0 @@
-<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">
- <parent>
- <groupId>jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>jboss.maven-plugins</groupId>
- <artifactId>jboss-deploy-maven-plugin</artifactId>
- <packaging>maven-plugin</packaging>
- <name>JBoss Deploy Maven Plugin</name>
- <version>1.2-SNAPSHOT</version>
- <description>Plugin for deploying artifacts to JBoss non-maven repository.</description>
- <scm>
- <connection>scm:svn:https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin</connection>
- </scm>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <configuration>
- <tagBase>https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/tags</tagBase>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <snapshots />
- <id>jboss</id>
- <name>JBoss Repository</name>
- <url>http://repository.jboss.com/maven2/</url>
- </repository>
- </repositories>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-model</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.3.1</version>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml (from rev 10898, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/pom.xml)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/pom.xml 2007-04-11 19:16:00 UTC (rev 10899)
@@ -0,0 +1,62 @@
+<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">
+ <parent>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>1</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>jboss.maven-plugins</groupId>
+ <artifactId>jboss-deploy-maven-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+ <name>JBoss Deploy Maven Plugin</name>
+ <version>1.2</version>
+ <description>Plugin for deploying artifacts to JBoss non-maven repository.</description>
+ <scm>
+ <connection>scm:svn:https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2</connection>
+ </scm>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <tagBase>https://svn.labs.jboss.org/labs/jbossbuild/maven-plugins/tags</tagBase>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <snapshots />
+ <id>jboss</id>
+ <name>JBoss Repository</name>
+ <url>http://repository.jboss.com/maven2/</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.3.1</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src (from rev 10836, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src)
Deleted: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt 2007-04-09 13:12:54 UTC (rev 10836)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt 2007-04-11 19:16:00 UTC (rev 10899)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://www.jboss.org/component-info/1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/component-info/1.0 component-info.xsd"
- name="${project.name}">
- <component id="${component.id}"
- licenseType="${project.license}"
- version="${project.version}"
- description="${project.description}"
- ${project.scm}
- >
-
-${artifacts}
-${imports}
- <export>
-${includes}
- </export>
- </component>
-</project>
\ No newline at end of file
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt (from rev 10891, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info-template.txt 2007-04-11 19:16:00 UTC (rev 10899)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.jboss.org/component-info/1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/component-info/1.0 http://repository.jboss.org/component-info-v1_0.xsd"
+ name="${project.name}">
+ <component id="${component.id}"
+ licenseType="${project.license}"
+ version="${project.version}"
+ description="${project.description}"
+ ${project.scm}
+ >
+
+${artifacts}
+${imports}
+ <export>
+${includes}
+ </export>
+ </component>
+</project>
\ No newline at end of file
Deleted: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd 2007-04-09 13:12:54 UTC (rev 10836)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd 2007-04-11 19:16:00 UTC (rev 10899)
@@ -1,59 +0,0 @@
-<?xml version="1.0"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://www.jboss.org/component-info/1.0"
- xmlns="http://www.jboss.org/component-info/1.0"
- elementFormDefault="qualified">
-
- <xs:element name="project">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="component" type="componentType"/>
- </xs:sequence>
- <xs:attribute name="name" type="xs:string"/>
- </xs:complexType>
- </xs:element>
-
- <xs:complexType name="componentType">
- <xs:sequence>
- <xs:element name="artifact" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute type="xs:string" name="id" use="required"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="import" type="importType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="export" type="exportType"/>
- </xs:sequence>
- <xs:attributeGroup ref="componentTypeAttrs"/>
- </xs:complexType>
-
- <xs:attributeGroup name="componentTypeAttrs">
- <xs:attribute name="id" type="xs:string" use="required"/>
- <xs:attribute name="licenseType" type="xs:string"/>
- <xs:attribute name="version" type="xs:string"/>
- <xs:attribute name="description" type="xs:string"/>
- <xs:attribute name="scm" type="xs:string"/>
- <xs:attribute name="projectHome" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:complexType name="exportType">
- <xs:sequence>
- <xs:element name="include" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="input" type="xs:string" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
-
- <xs:complexType name="importType">
- <xs:sequence>
- <xs:element name="compatible" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="version" type="xs:string" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="componentref" type="xs:string"/>
- </xs:complexType>
-
-</xs:schema>
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd (from rev 10891, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/main/resources/org/jboss/maven/plugins/deploy/component-info.xsd 2007-04-11 19:16:00 UTC (rev 10899)
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.jboss.org/component-info/1.0"
+ xmlns="http://www.jboss.org/component-info/1.0"
+ elementFormDefault="qualified">
+
+ <xs:element name="project">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="component" type="componentType"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="componentType">
+ <xs:sequence>
+ <xs:element name="artifact" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute type="xs:string" name="id" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="import" type="importType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="export" type="exportType"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="componentTypeAttrs"/>
+ </xs:complexType>
+
+ <xs:attributeGroup name="componentTypeAttrs">
+ <xs:attribute name="id" type="xs:string" use="required"/>
+ <xs:attribute name="licenseType" type="xs:string"/>
+ <xs:attribute name="version" type="xs:string"/>
+ <xs:attribute name="description" type="xs:string"/>
+ <xs:attribute name="scm" type="xs:string"/>
+ <xs:attribute name="projectHome" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:complexType name="exportType">
+ <xs:sequence>
+ <xs:element name="include" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="input" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="importType">
+ <xs:sequence>
+ <xs:element name="compatible" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="version" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="componentref" type="xs:string" use="required"/>
+ </xs:complexType>
+
+</xs:schema>
Deleted: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java 2007-04-09 13:12:54 UTC (rev 10836)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java 2007-04-11 19:16:00 UTC (rev 10899)
@@ -1,58 +0,0 @@
-/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
-package org.jboss.test.maven.plugins.deploy;
-
-import java.io.InputStream;
-
-import junit.framework.TestCase;
-
-import org.jboss.maven.plugins.deploy.CompInfoVerifier;
-import org.xml.sax.SAXException;
-
-public class CompInfoVerifierTestCase extends TestCase
-{
-
- protected void setUp() throws Exception
- {
- super.setUp();
- }
-
- protected void tearDown() throws Exception
- {
- super.tearDown();
- }
-
- /** Verify a valid component info file */
- public void testGoodCompInfo() throws Exception
- {
- boolean result=false;
- CompInfoVerifier verifier = new CompInfoVerifier();
- InputStream is = this.getClass().getResourceAsStream("component-info-test-good.xml_test");
- try {
- verifier.verifyCompInfo(is);
- result= true;
- } catch (SAXException e) {
- e.printStackTrace();
- }
- assertTrue(result);
- }
-
- /** Fail on an invalid component info file */
- public void testBadCompInfo() throws Exception
- {
- boolean result=false;
- CompInfoVerifier verifier = new CompInfoVerifier();
- InputStream is = this.getClass().getResourceAsStream("component-info-test-bad.xml_test");
- try {
- verifier.verifyCompInfo(is);
- } catch (SAXException e) {
- result= true;
- }
- assertTrue(result);
- }
-
-}
Copied: labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java (from rev 10891, labs/jbossbuild/maven-plugins/trunk/jboss-deploy-maven-plugin/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java)
===================================================================
--- labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java (rev 0)
+++ labs/jbossbuild/maven-plugins/tags/jboss-deploy-maven-plugin-1.2/src/test/java/org/jboss/test/maven/plugins/deploy/CompInfoVerifierTestCase.java 2007-04-11 19:16:00 UTC (rev 10899)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.test.maven.plugins.deploy;
+
+import java.io.InputStream;
+import java.util.logging.Logger;
+
+import junit.framework.TestCase;
+
+import org.jboss.maven.plugins.deploy.CompInfoVerifier;
+import org.xml.sax.SAXException;
+
+public class CompInfoVerifierTestCase extends TestCase
+{
+
+ private static Logger logger = Logger.getLogger("org.jboss.test.maven.plugins.deploy");
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ /** Verify a valid component info file */
+ public void testGoodCompInfo() throws Exception
+ {
+ boolean result=false;
+ CompInfoVerifier verifier = new CompInfoVerifier();
+ InputStream is = this.getClass().getResourceAsStream("component-info-test-good.xml_test");
+ try {
+ verifier.verifyCompInfo(is);
+ result= true;
+ } catch (SAXException e) {
+ e.printStackTrace();
+ }
+ assertTrue(result);
+ }
+
+ /** Fail on an invalid component info file */
+ public void testBadCompInfo() throws Exception
+ {
+ boolean result=false;
+ CompInfoVerifier verifier = new CompInfoVerifier();
+ InputStream is = this.getClass().getResourceAsStream("component-info-test-bad.xml_test");
+ try {
+ logger.info("XML verification error should happen here:");
+ verifier.verifyCompInfo(is);
+ } catch (SAXException e) {
+ result= true;
+ }
+ assertTrue(result);
+ }
+
+}
More information about the jboss-svn-commits
mailing list