maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-plugins/maven-assemble-plugin/src/main/java/org/apache/maven/plugin/assemble AssembleMojo.java
Date Fri, 18 Mar 2005 12:36:49 GMT
brett       2005/03/18 04:36:49

  Modified:    maven-plugins/maven-assemble-plugin/src/main/java/org/apache/maven/plugin/assemble
                        AssembleMojo.java
  Log:
  add zip, jar, and some notes
  
  Revision  Changes    Path
  1.3       +14 -1     maven-components/maven-plugins/maven-assemble-plugin/src/main/java/org/apache/maven/plugin/assemble/AssembleMojo.java
  
  Index: AssembleMojo.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-assemble-plugin/src/main/java/org/apache/maven/plugin/assemble/AssembleMojo.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AssembleMojo.java	17 Mar 2005 23:59:06 -0000	1.2
  +++ AssembleMojo.java	18 Mar 2005 12:36:49 -0000	1.3
  @@ -23,6 +23,8 @@
   import org.apache.maven.plugins.assemble.model.FileSet;
   import org.apache.maven.plugins.assemble.model.io.xpp3.AssemblyXpp3Reader;
   import org.codehaus.plexus.archiver.Archiver;
  +import org.codehaus.plexus.archiver.jar.JarArchiver;
  +import org.codehaus.plexus.archiver.zip.ZipArchiver;
   import org.codehaus.plexus.archiver.tar.TarArchiver;
   
   import java.io.File;
  @@ -56,6 +58,8 @@
   
           // TODO: include dependencies marked for distribution under certain formats
           // TODO: have a default set of descriptors that can be used instead of the file
  +        // TODO: how, might we plugin this into an installer, such as NSIS?
  +        // TODO: allow file mode specifications?
   
           String fullName = finalName + "-" + assembly.getId();
   
  @@ -80,6 +84,15 @@
                       tarArchiver.setCompression( tarCompressionMethod );
                   }
               }
  +            else if ( format.startsWith( "zip" ) )
  +            {
  +                archiver = new ZipArchiver();
  +            }
  +            else if ( format.startsWith( "jar" ) )
  +            {
  +                // TODO: use MavenArchiver for manifest?
  +                archiver = new JarArchiver();
  +            }
               else
               {
                   // TODO: better handling
  
  
  

Mime
View raw message