avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbenn...@apache.org
Subject cvs commit: avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer XMLContainmentProfileWriter.java
Date Fri, 16 Apr 2004 20:12:34 GMT
tbennett    2004/04/16 13:12:34

  Modified:    merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer
                        XMLContainmentProfileWriter.java
  Log:
  Modified the profile writer to generate the classpath directive for fileset to include any
exclude directives.
  
  Revision  Changes    Path
  1.5       +11 -1     avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer/XMLContainmentProfileWriter.java
  
  Index: XMLContainmentProfileWriter.java
  ===================================================================
  RCS file: /home/cvs/avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer/XMLContainmentProfileWriter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLContainmentProfileWriter.java	24 Jan 2004 23:25:27 -0000	1.4
  +++ XMLContainmentProfileWriter.java	16 Apr 2004 20:12:34 -0000	1.5
  @@ -35,6 +35,7 @@
   import org.apache.avalon.composition.data.ServiceDirective;
   import org.apache.avalon.composition.data.FilesetDirective;
   import org.apache.avalon.composition.data.IncludeDirective;
  +import org.apache.avalon.composition.data.ExcludeDirective;
   
   /**
    * Write {@link ContainmentProfile} objects to a stream as xml documents.
  @@ -300,6 +301,15 @@
                     + "<include>" 
                     + includes[i].getPath() 
                     + "</include>" );
  +        }
  +
  +        ExcludeDirective[] excludes = fileset.getExcludes();
  +        for( int i=0; i<excludes.length; i++ )
  +        {
  +            writer.write( "\n" + pad + INDENT 
  +                  + "<exclude>" 
  +                  + excludes[i].getPath() 
  +                  + "</exclude>" );
           }
   
           writer.write( "\n" + pad + "</fileset>" );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message