X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmir%2Fproducer%2FDirCopyingProducerNode.java;h=d4e823c40be2945fa86da7f82a3ad2d8922866b0;hb=aa507bfd18e723d21e63454a26af3320bb8c27f2;hp=835f99dbc14b12d7631823a016328c1ca8626ba7;hpb=9f7074c4ca8171b9f0f23ec5c8e62823160a2429;p=mir.git diff --git a/source/mir/producer/DirCopyingProducerNode.java b/source/mir/producer/DirCopyingProducerNode.java index 835f99db..d4e823c4 100755 --- a/source/mir/producer/DirCopyingProducerNode.java +++ b/source/mir/producer/DirCopyingProducerNode.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2001, 2002 The Mir-coders group + * Copyright (C) 2001, 2002 The Mir-coders group * * This file is part of Mir. * @@ -18,24 +18,23 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * In addition, as a special exception, The Mir-coders gives permission to link - * the code of this program with the com.oreilly.servlet library, any library - * licensed under the Apache Software License, The Sun (tm) Java Advanced - * Imaging library (JAI), The Sun JIMI library (or with modified versions of - * the above that use the same license as the above), and distribute linked - * combinations including the two. You must obey the GNU General Public - * License in all respects for all of the code used other than the above - * mentioned libraries. If you modify this file, you may extend this exception - * to your version of the file, but you are not obligated to do so. If you do - * not wish to do so, delete this exception statement from your version. + * the code of this program with any library licensed under the Apache Software License, + * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library + * (or with modified versions of the above that use the same license as the above), + * and distribute linked combinations including the two. You must obey the + * GNU General Public License in all respects for all of the code used other than + * the above mentioned libraries. If you modify this file, you may extend this + * exception to your version of the file, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your version. */ - package mir.producer; -import java.io.*; -import java.util.*; +import java.io.File; +import java.util.Map; -import mir.util.*; -import mir.log.*; +import mir.log.LoggerWrapper; +import mir.util.FileFunctions; +import mir.util.ParameterExpander; public class DirCopyingProducerNode implements ProducerNode { private String sourceExpression; @@ -59,7 +58,7 @@ public class DirCopyingProducerNode implements ProducerNode { try { source = ParameterExpander.expandExpression( aValueMap, sourceExpression ); destination = ParameterExpander.expandExpression( aValueMap, destinationExpression ); - FileCopier.copy( + FileFunctions.copy( new File(sourceBasePath, source), new File(destinationBasePath, destination)); aLogger.info(source + " copied into " + destination);