Gant 1.9.6

gant.tools
[Groovy] Class AntFile

java.lang.Object
  gant.tools.AntFile

final class AntFile
extends java.lang.Object

Support for including Ant XML files into a Gant run which sets up the targets from the Ant file as Gant targets.

Authors:
Russel Winder


Constructor Summary
AntFile(GantBinding binding)

Constructor for the "includeTool <<" usage.

AntFile(GantBinding binding, java.util.Map map)

Constructor for the "includeTool **" usage.

 
Method Summary
void includeTargets(java.util.List fileNameList)

Read the named file assuming it is an Ant XML file.

void includeTargets(java.lang.String fileName)

Read the named file assuming it is an Ant XML file.

void includeTargets(java.io.File file)

Read the named file assuming it is an Ant XML file.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

AntFile

AntFile(GantBinding binding)
Constructor for the "includeTool <<" usage.
Parameters:
binding - The GantBinding to bind to.


AntFile

AntFile(GantBinding binding, java.util.Map map)
Constructor for the "includeTool **" usage. It is assumed that the Map entry provides a filename or a list of filenames of Ant XML files to load.
Parameters:
binding - The GantBinding to bind to.
map - The Map of initialization parameters.


 
Method Detail

includeTargets

void includeTargets(java.util.List fileNameList)
Read the named file assuming it is an Ant XML file. Load the targets into the current project and then associate each of the Ant targets with a Gant target.
Parameters:
fileNameList - the list of path to the Ant XML file.


includeTargets

void includeTargets(java.lang.String fileName)
Read the named file assuming it is an Ant XML file. Load the targets into the current project and then associate each of the Ant targets with a Gant target.
Parameters:
fileName - the String specifying the path to the Ant XML file.


includeTargets

void includeTargets(java.io.File file)
Read the named file assuming it is an Ant XML file. Load the targets into the current project and then associate each of the Ant targets with a Gant target.
Parameters:
fileName - the File specifying path to the Ant XML file.


 

Copyright © 2006–9 The Codehaus. All Rights Reserved.