de.armax.ax.devtools.ant.common
Class AXcopy

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.Copy
              extended byde.armax.ax.devtools.ant.common.AXcopy

public class AXcopy
extends org.apache.tools.ant.taskdefs.Copy

This is an extension of the standard ant copy task.

In addition to to standard ant task, it introduces the property "overwriteNever". Set this property to "true" if you want to keep existing files even if they are older than the source files. The default value is false, wich means that by default, this task behaves exactly like the ant copy task.

Author:
Peter Wieland, ARMAX mindware GmbH

Field Summary
protected  boolean overwriteNever
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.Copy
completeDirMap, destDir, destFile, dirCopyMap, file, fileCopyMap, filesets, filtering, flatten, forceOverwrite, includeEmpty, mapperElement, preserveLastModified, verbosity
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AXcopy()
           
 
Method Summary
protected  void doFileOperations()
          Removes existing files from Hashtable containing files to copy, if overwriteNever is true
 boolean getOverwriteNever()
          getter for property overwriteNever
 void setOverwriteNever(boolean overwriteNever)
          Setter for property overwrite never.
 
Methods inherited from class org.apache.tools.ant.taskdefs.Copy
addFileset, buildMap, createFilterChain, createFilterSet, createMapper, execute, getEncoding, getFileUtils, getFilterChains, getFilterSets, getPreserveLastModified, scan, setEncoding, setFailOnError, setFile, setFiltering, setFlatten, setIncludeEmptyDirs, setOverwrite, setPreserveLastModified, setPreserveLastModified, setTodir, setTofile, setVerbose, validateAttributes
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

overwriteNever

protected boolean overwriteNever
Constructor Detail

AXcopy

public AXcopy()
Method Detail

setOverwriteNever

public void setOverwriteNever(boolean overwriteNever)

Setter for property overwrite never.

This uses ant to convert the String attribute in the build file to a boolean attribute


getOverwriteNever

public boolean getOverwriteNever()
getter for property overwriteNever


doFileOperations

protected void doFileOperations()
Removes existing files from Hashtable containing files to copy, if overwriteNever is true



Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.