Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05

weblogic.wsee.tools.anttasks
Class AntUtil

java.lang.Object
  extended by weblogic.wsee.tools.anttasks.AntUtil

public class AntUtil
extends Object

Utility ant functions


Method Summary
static void copyFile(Project p, File sourceFile, File destFile)
           
static void copyFiles(Project p, File sourceDir, File destDir, String pattern)
           
static void copyFiles(Project p, List<FileSet> fileSets, File destDir)
           
static void deleteDir(Project p, File dir)
           
static File[] getFiles(Collection<FileSet> fileSets, Project project)
           
static File[] getFiles(FileSet fileSet, Project project)
           
static Collection<FileSet> getFileSets(File[] files, Project project)
          This method will build a collection of FileSets that match the given files.
static void javadocFiles(Project p, String sourcefiles, File destDir)
           
static void moveFiles(Project p, File sourceDir, File destDir, String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteDir

public static void deleteDir(Project p,
                             File dir)
                      throws BuildException
Throws:
BuildException

copyFile

public static void copyFile(Project p,
                            File sourceFile,
                            File destFile)
                     throws BuildException
Throws:
BuildException

copyFiles

public static void copyFiles(Project p,
                             List<FileSet> fileSets,
                             File destDir)
                      throws BuildException
Throws:
BuildException

moveFiles

public static void moveFiles(Project p,
                             File sourceDir,
                             File destDir,
                             String pattern)
                      throws BuildException
Throws:
BuildException

copyFiles

public static void copyFiles(Project p,
                             File sourceDir,
                             File destDir,
                             String pattern)
                      throws BuildException
Throws:
BuildException

javadocFiles

public static void javadocFiles(Project p,
                                String sourcefiles,
                                File destDir)

getFiles

public static File[] getFiles(Collection<FileSet> fileSets,
                              Project project)

getFiles

public static File[] getFiles(FileSet fileSet,
                              Project project)

getFileSets

public static Collection<FileSet> getFileSets(File[] files,
                                              Project project)
This method will build a collection of FileSets that match the given files. This will group the files by their parent directory.

Parameters:
files - the files used to create the file sets
project - the parent project
Returns:
a collection of FileSets

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05