[jboss-svn-commits] JBoss Common SVN: r3463 - declarchive/trunk/api/src/main/java/org/jboss/declarchive/api.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 20 22:30:43 EDT 2009


Author: ALRubinger
Date: 2009-08-20 22:30:42 -0400 (Thu, 20 Aug 2009)
New Revision: 3463

Modified:
   declarchive/trunk/api/src/main/java/org/jboss/declarchive/api/Archive.java
Log:
[TMPARCH-14] Applied patch from John Bailey to add existing archives and contents

Modified: declarchive/trunk/api/src/main/java/org/jboss/declarchive/api/Archive.java
===================================================================
--- declarchive/trunk/api/src/main/java/org/jboss/declarchive/api/Archive.java	2009-08-20 21:49:01 UTC (rev 3462)
+++ declarchive/trunk/api/src/main/java/org/jboss/declarchive/api/Archive.java	2009-08-21 02:30:42 UTC (rev 3463)
@@ -130,6 +130,37 @@
    Map<Path, Asset> getContent();
 
    /**
+    * Add an archive under a specific and maintain the archive name a context path.
+    * 
+    * @param path to use 
+    * @param arhive to add
+    * @return
+    * @throws IllegalArgumentException If the path or archive are not specified 
+    */
+   T add(Path path, Archive<?> arhive);
+
+   /**
+    * Add the contents from an existing archive without 
+    * maintaining the archive name in the context path.  
+    * 
+    * @param source Archive to add contents from
+    * @return  
+    * @throws IllegalArgumentException If the existing archive is not specified
+    */
+   T addContents(Archive<?> source) throws IllegalArgumentException;
+
+   /**
+    * Add the contents from an existing archive in a specific path 
+    * without maintaining the archive name in the context path.
+    * 
+    * @param path Path to add contents to
+    * @param source Archive to add contents from
+    * @return  
+    * @throws IllegalArgumentException If the path or existing archive is not specified
+    */
+   T addContents(Path path, Archive<?> source) throws IllegalArgumentException;
+
+   /**
     * Returns a multiline "ls -l"-equse output of the contents of
     * this deployment and (recursively) its children if the verbosity 
     * flag is set to "true".  Otherwise the no-arg version is invoked



More information about the jboss-svn-commits mailing list