Author: snicoll
Date: Sun Mar 27 06:10:18 2011
New Revision: 1085882

URL: http://svn.apache.org/viewvc?rev=1085882&view=rev
Log:
MEAR-137: Support for AppClient. Still need to add ITs once the 
maven-acr-plugin is resolved

Added:
    
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
   (with props)
Modified:
    
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java

Added: 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java?rev=1085882&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
 (added)
+++ 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
 Sun Mar 27 06:10:18 2011
@@ -0,0 +1,48 @@
+package org.apache.maven.plugin.ear;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 an application client module.
+ *
+ * @author Stephane Nicoll
+ */
+public class AppClientModule
+    extends JarModule
+{
+
+    public AppClientModule()
+    {
+        super();
+    }
+
+
+    public AppClientModule( Artifact a, String defaultLibBundleDir )
+    {
+        super( a, defaultLibBundleDir, Boolean.TRUE );
+    }
+
+    public String getType()
+    {
+        return "app-client";
+    }
+}

Propchange: 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AppClientModule.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: 
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java?rev=1085882&r1=1085881&r2=1085882&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
 Sun Mar 27 06:10:18 2011
@@ -45,6 +45,7 @@ public final class EarModuleFactory
         temp.add( "ejb3" );
         temp.add( "par" );
         temp.add( "ejb-client" );
+        temp.add( "app-client" );
         temp.add( "rar" );
         temp.add( "war" );
         temp.add( "sar" );
@@ -102,6 +103,10 @@ public final class EarModuleFactory
                 return new EjbClientModule( artifact, defaultLibBundleDir );
             }
         }
+        else if ( "app-client".equals( artifactType ) )
+        {
+            return new AppClientModule( artifact, defaultLibBundleDir );
+        }
         else if ( "rar".equals( artifactType ) )
         {
             return new RarModule( artifact );


Reply via email to