maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snic...@apache.org
Subject svn commit: r427686 - in /maven/plugins/trunk/maven-ear-plugin/src: main/java/org/apache/maven/plugin/ear/EarModuleFactory.java main/java/org/apache/maven/plugin/ear/HarModule.java site/apt/modules.apt
Date Tue, 01 Aug 2006 19:31:25 GMT
Author: snicoll
Date: Tue Aug  1 12:31:25 2006
New Revision: 427686

URL: http://svn.apache.org/viewvc?rev=427686&view=rev
Log:
MEAR-34: Added support for HAR archives.

Added:
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/HarModule.java
  (with props)
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/modules.apt

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=427686&r1=427685&r2=427686&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
Tue Aug  1 12:31:25 2006
@@ -42,6 +42,7 @@
         standardArtifactTypes.add( "war" );
         standardArtifactTypes.add( "sar" );
         standardArtifactTypes.add( "wsr" );
+        standardArtifactTypes.add( "har" );
     }
 
     /**
@@ -95,6 +96,10 @@
         else if ( "wsr".equals( artifactType ) )
         {
             return new WsrModule( artifact );
+        }
+        else if ( "har".equals( artifactType ) )
+        {
+            return new HarModule( artifact );
         }
         else
         {

Added: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/HarModule.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/HarModule.java?rev=427686&view=auto
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/HarModule.java
(added)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/HarModule.java
Tue Aug  1 12:31:25 2006
@@ -0,0 +1,52 @@
+package org.apache.maven.plugin.ear;
+
+import org.apache.maven.artifact.Artifact;
+import org.codehaus.plexus.util.xml.XMLWriter;
+
+/*
+ * 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.
+ */
+
+
+/**
+ * The {@link EarModule} implementation for a JBoss Hibernate archive.
+ *
+ * @author <a href="snicoll@apache.org">Stephane Nicoll</a>
+ * @version $Id$
+ */
+public class HarModule
+    extends AbstractEarModule
+{
+    public HarModule()
+    {
+    }
+
+    public HarModule( Artifact a )
+    {
+        super( a );
+    }
+
+    public void appendModule( XMLWriter writer, String version )
+    {
+        // No entry is generated by this artifact ; it should be
+        // defined in the jboss-app.xml.
+        // See http://docs.jboss.org/jbossas/getting_started/v4/html/hibernate.html
+    }
+
+    protected String getType()
+    {
+        return "har";
+    }
+}

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

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

Modified: maven/plugins/trunk/maven-ear-plugin/src/site/apt/modules.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/site/apt/modules.apt?rev=427686&r1=427685&r2=427686&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/site/apt/modules.apt (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/site/apt/modules.apt Tue Aug  1 12:31:25 2006
@@ -46,6 +46,8 @@
 
   * {{{#WsrModule}WsrModule}}
 
+  * {{{#HarModule}HarModule}}
+
   []
 
   These module names go into the <<<modules>>> parameter of the EAR Plugin.
For
@@ -270,6 +272,29 @@
 
   * <<artifactId>> - sets the artifactId of the ejb artifact you want to
   configure.
+
+  * <<bundleDir>> - sets the location of this artifact inside the ear archive.
+  If not set, this artifact will be packaged in the root of the archive.
+
+  * <<bundleFileName>> - sets the new name of this artifact inside the ear
+  archive. If not set, the artifact's filename in the repository is used.
+
+  * <<excluded>> - set to true to exclude this artifact from being packaged into
+  the ear archive. Default is false.
+
+  * <<uri>> - sets the uri path of this artifact within the ear archive.
+  Automatically determined when not set.
+
+
+* {HarModule} Properties
+
+  The following configuration options are available for HarModule:
+
+  * <<groupId>> - sets the groupId of the hibernate archive artifact you
+  want to configure.
+
+  * <<artifactId>> - sets the artifactId of the hibernate archive artifact
+  you want to configure.
 
   * <<bundleDir>> - sets the location of this artifact inside the ear archive.
   If not set, this artifact will be packaged in the root of the archive.



Mime
View raw message