|
Gant 1.9.6 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.gant.AbstractInclude
org.codehaus.gant.IncludeTool
class IncludeTool extends AbstractInclude
An instance of this class is provided to each Gant script for including tools. A tool is a class that
provides Gant related facilities. The class must have a single parameter constructor which is a
Map
. The map contains a binding of various useful things, in particular there is always an
entry 'Ant' to give access to the global static instance of AntBuilder
.
Field Summary |
---|
Fields inherited from class AbstractInclude | |
---|---|
binding, loadedClasses, pendingClass |
Constructor Summary | |
IncludeTool(GantBinding binding)
Constructor. |
Method Summary | |
---|---|
java.lang.Object
|
leftShift(java.lang.Class theClass)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.io.File file)
Implementation of the << operator taking a |
java.lang.Object
|
leftShift(java.lang.String script)
Implementation of the << operator taking a |
java.lang.Object
|
multiply(java.util.Map keywordParameters)
Implementation of the * operator taking a |
Methods inherited from class AbstractInclude | |
---|---|
createInstance, createInstance, leftShift, leftShift, leftShift, leftShift, leftShift, multiply, power, readFile |
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 |
---|
IncludeTool(GantBinding binding)
binding
- The GantBinding
to associate with.
Method Detail |
---|
java.lang.Object leftShift(java.lang.Class theClass)
Class
parameter.
theClass
- The Class
to load and instantiate.
java.lang.Object leftShift(java.io.File file)
File
parameter.
file
- The File
to load, compile, and instantiate.
java.lang.Object leftShift(java.lang.String script)
String
parameter.
s
- The String
to compile and instantiate.
java.lang.Object multiply(java.util.Map keywordParameters)
Map
parameter. This operator only makes
sense immediately after a ** operator, since only then is there a Class
to instantiate.
keywordParameter
- The Map
of parameters to the constructor.
Copyright © 2006–9 The Codehaus. All Rights Reserved.