brett       2005/03/30 00:22:24

  Modified:    
maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war
                        WarMojo.java
  Log:
  make sure compile time dependencies (the default) are bundled too
  
  Revision  Changes    Path
  1.13      +4 -2      
maven-components/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
  
  Index: WarMojo.java
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- WarMojo.java      30 Mar 2005 08:14:52 -0000      1.12
  +++ WarMojo.java      30 Mar 2005 08:22:24 -0000      1.13
  @@ -205,7 +205,9 @@
           {
               Artifact artifact = (Artifact) iter.next();
   
  -            if ( "jar".equals( artifact.getType() ) && 
Artifact.SCOPE_RUNTIME.equals( artifact.getScope() ) )
  +            // TODO: scope handler
  +            // Include runtime and compile time libraries
  +            if ( "jar".equals( artifact.getType() ) && 
!Artifact.SCOPE_TEST.equals( artifact.getScope() ) )
               {
                   FileUtils.copyFileToDirectory( artifact.getFile(), 
libDirectory );
               }
  
  
  

Reply via email to