avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 47113 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks
Date Thu, 23 Sep 2004 17:51:13 GMT
Author: niclas
Date: Thu Sep 23 10:51:12 2004
New Revision: 47113

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/ReplicateTask.java
Log:
Flatten feature added as requested by Cameron Taggart and patched by Stephen McConnell.

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/ReplicateTask.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/ReplicateTask.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/ReplicateTask.java	Thu
Sep 23 10:51:12 2004
@@ -43,6 +43,12 @@
     private Path m_path;
     private Context m_context;
     private Home m_home;
+    private boolean m_flatten = false;
+
+    public void setFlatten( boolean flag )
+    {
+        m_flatten = flag;
+    }
 
     public void init()
     {
@@ -166,6 +172,7 @@
         final Copy copy = (Copy) getProject().createTask( "copy" );
         copy.setTaskName( getTaskName() );
         copy.setPreserveLastModified( true );
+        copy.setFlatten( m_flatten );
         copy.setTodir( destination );
         copy.addFileset( fileset );
         copy.init();

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


Mime
View raw message