public class AntScriptUtils extends Object
Modifier and Type | Method and Description |
---|---|
static AntProjectCookie |
antProjectCookieFor(FileObject script)
Loads a file believed to be an Ant script.
|
static String |
getAntScriptName(FileObject script)
Finds the name of an Ant script.
|
static List<String> |
getCallableTargetNames(FileObject script)
Finds the names of callable targets in an Ant script.
|
public static AntProjectCookie antProjectCookieFor(FileObject script)
script
- a file assumed to be an Ant scriptpublic static String getAntScriptName(FileObject script)
script
- Ant script to inspectname
attribute of
the project
element, or null if the file is not a valid Ant script
or the script is anonymouspublic static List<String> getCallableTargetNames(FileObject script) throws IOException
script
- Ant script to inspectIOException
- if the script cannot be inspected