* encoding the encoding used to read and write the files. Copy a single file Copy a single file to a directory Copy a directory to another directory
The Apache Ant team currently maintains two lines of development. Although the resource concept was introduced in Apache Ant 1.5.2, resources are available for explicit use since Ant 1.7. Apache Ant is a Java library and command-line tool that helps building software. In addition to providing access to file-like attributes, a resource implementation should, when possible, provide the means to read content from and/or write content to the underlying entity. * preserveLastModified Whether or not the last modified time of the resulting file * should be set to that of the source file. BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The Apache Ant Team is pleased to announce the releases of Apache Ant 1.9.11 and 1.10.3. * overwrite Whether or not the destination file should be overwritten if it already * exists. As you can see from this sample code, Im using the Ant copy task to copy files from source locations to other destination locations. * filters the collection of filters to apply to this copy. ** * Convenience method to copy a file from a source to a destination specifying if token * filtering must be used, if source files may overwrite newer destination files, the last * modified time of destFile file should be made equal to the last modified time * of sourceFile and which character encoding to assume. Learn how to copy a source file to a destination using three different.
0 Comments
Leave a Reply. |