You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:34:15 UTC

[maven-ear-plugin] 12/16: MNG-1723: fixed configuration of ejb3 and par modules.

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-ear-plugin-2.1
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 2f57dab89bed281d537b32436a55d53861449f43
Author: Stephane Nicoll <sn...@apache.org>
AuthorDate: Thu Dec 1 19:30:01 2005 +0000

    MNG-1723: fixed configuration of ejb3 and par modules.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin@350306 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/maven/plugin/ear/EarModuleFactory.java  |  4 +--
 .../org/apache/maven/plugin/ear/Ejb3Module.java    | 32 +++++++++++++++++++++
 .../org/apache/maven/plugin/ear/ParModule.java     | 33 ++++++++++++++++++++++
 3 files changed, 67 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java b/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
index a8825ea..afafa93 100644
--- a/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
+++ b/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
@@ -48,11 +48,11 @@ public final class EarModuleFactory
         }
         else if ( "ejb3".equals( artifact.getType() ) )
         {
-            return new EjbModule( artifact );
+            return new Ejb3Module( artifact );
         }
         else if ( "par".equals( artifact.getType() ) )
         {
-            return new EjbModule( artifact );
+            return new ParModule( artifact );
         }
         else if ( "ejb-client".equals( artifact.getType() ) )
         {
diff --git a/src/main/java/org/apache/maven/plugin/ear/Ejb3Module.java b/src/main/java/org/apache/maven/plugin/ear/Ejb3Module.java
new file mode 100644
index 0000000..31cfac5
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugin/ear/Ejb3Module.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2005 Your Corporation. All Rights Reserved.
+ */
+package org.apache.maven.plugin.ear;
+
+import org.apache.maven.artifact.Artifact;
+
+/**
+ * The {@link EarModule} implementation for an Ejb3 module.
+ *
+ * @author Stephane Nicoll <sn...@apache.org>
+ * @author $Author: $ (last edit)
+ * @version $Revision:  $
+ */
+public class Ejb3Module
+    extends EjbModule
+{
+    public Ejb3Module()
+    {
+        super();
+    }
+
+    public Ejb3Module( Artifact a )
+    {
+        super( a );
+    }
+
+    protected String getType()
+    {
+        return "ejb3";
+    }
+}
diff --git a/src/main/java/org/apache/maven/plugin/ear/ParModule.java b/src/main/java/org/apache/maven/plugin/ear/ParModule.java
new file mode 100644
index 0000000..c50d7e1
--- /dev/null
+++ b/src/main/java/org/apache/maven/plugin/ear/ParModule.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2005 Your Corporation. All Rights Reserved.
+ */
+package org.apache.maven.plugin.ear;
+
+import org.apache.maven.artifact.Artifact;
+
+/**
+ * The {@link EarModule} implementation for a Par module.
+ *
+ * @author Stephane Nicoll <sn...@apache.org>
+ * @author $Author: $ (last edit)
+ * @version $Revision:  $
+ */
+public class ParModule
+    extends EjbModule
+{
+
+    public ParModule()
+    {
+        super();
+    }
+
+    public ParModule( Artifact a )
+    {
+        super( a );
+    }
+
+    protected String getType()
+    {
+        return "par";
+    }
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.