You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sn...@apache.org on 2006/02/11 17:28:10 UTC

svn commit: r376999 - in /maven/plugins/trunk/maven-ear-plugin/src: main/java/org/apache/maven/plugin/ear/EarModuleFactory.java main/java/org/apache/maven/plugin/ear/WsrModule.java site/apt/introduction.apt

Author: snicoll
Date: Sat Feb 11 08:28:09 2006
New Revision: 376999

URL: http://svn.apache.org/viewcvs?rev=376999&view=rev
Log:
MEAR-18: Added support of wsr file (Jboss Web Service Archive)
Thanks to: Brad O'Hearne
Reviewed by: Stephane Nicoll

Added:
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/WsrModule.java
Modified:
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
    maven/plugins/trunk/maven-ear-plugin/src/site/apt/introduction.apt

Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java?rev=376999&r1=376998&r2=376999&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java Sat Feb 11 08:28:09 2006
@@ -70,6 +70,10 @@
         {
             return new SarModule( artifact );
         }
+        else if ( "wsr".equals( artifact.getType() ) )
+        {
+            return new WsrModule( artifact );
+        }
         else
         {
             throw new IllegalStateException( "Could not handle artifact type[" + artifact.getType() + "]" );

Added: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/WsrModule.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/WsrModule.java?rev=376999&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/WsrModule.java (added)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/WsrModule.java Sat Feb 11 08:28:09 2006
@@ -0,0 +1,44 @@
+package org.apache.maven.plugin.ear;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.maven.artifact.Artifact;
+
+/**
+ * The {@link EarModule} implementation for a JBoss wsr module.
+ *
+ * @author Brad O'Hearne <br...@neurofire.com>
+ * @author $Author: brado $ (last edit)
+ * @version $Revision:  $
+ */
+public class WsrModule
+    extends RarModule
+{
+    public WsrModule()
+    {
+    }
+
+    public WsrModule( Artifact a )
+    {
+        super( a );
+    }
+
+    protected String getType()
+    {
+        return "wsr";
+    }
+}
\ No newline at end of file

Modified: maven/plugins/trunk/maven-ear-plugin/src/site/apt/introduction.apt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-ear-plugin/src/site/apt/introduction.apt?rev=376999&r1=376998&r2=376999&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/site/apt/introduction.apt (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/site/apt/introduction.apt Sat Feb 11 08:28:09 2006
@@ -33,3 +33,5 @@
 
   * sar
 
+  * wsr
+