|
@@ -425,10 +425,10 @@ public class Project implements ResourceFactory { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Return a copy of the list of build listeners for the project. |
|
|
|
|
|
* |
|
|
|
|
|
* @return a list of build listeners for the project |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
* Return a copy of the list of build listeners for the project. |
|
|
|
|
|
* |
|
|
|
|
|
* @return a list of build listeners for the project |
|
|
|
|
|
*/ |
|
|
public Vector getBuildListeners() { |
|
|
public Vector getBuildListeners() { |
|
|
synchronized (listenersLock) { |
|
|
synchronized (listenersLock) { |
|
|
Vector r = new Vector(listeners.length); |
|
|
Vector r = new Vector(listeners.length); |
|
@@ -1024,6 +1024,19 @@ public class Project implements ResourceFactory { |
|
|
return ComponentHelper.getComponentHelper(this).getTaskDefinitions(); |
|
|
return ComponentHelper.getComponentHelper(this).getTaskDefinitions(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return the current task definition map. The returned map is a |
|
|
|
|
|
* copy of the "live" definitions. |
|
|
|
|
|
* |
|
|
|
|
|
* @return a map of from task name to implementing class |
|
|
|
|
|
* (String to Class). |
|
|
|
|
|
* |
|
|
|
|
|
* @since Ant 1.8.1 |
|
|
|
|
|
*/ |
|
|
|
|
|
public Map getCopyOfTaskDefinitions() { |
|
|
|
|
|
return new HashMap(getTaskDefinitions()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Add a new datatype definition. |
|
|
* Add a new datatype definition. |
|
|
* Attempting to override an existing definition with an |
|
|
* Attempting to override an existing definition with an |
|
@@ -1053,6 +1066,19 @@ public class Project implements ResourceFactory { |
|
|
return ComponentHelper.getComponentHelper(this).getDataTypeDefinitions(); |
|
|
return ComponentHelper.getComponentHelper(this).getDataTypeDefinitions(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return the current datatype definition map. The returned |
|
|
|
|
|
* map is a copy pf the "live" definitions. |
|
|
|
|
|
* |
|
|
|
|
|
* @return a map of from datatype name to implementing class |
|
|
|
|
|
* (String to Class). |
|
|
|
|
|
* |
|
|
|
|
|
* @since Ant 1.8.1 |
|
|
|
|
|
*/ |
|
|
|
|
|
public Map getCopyOfDataTypeDefinitions() { |
|
|
|
|
|
return new HashMap(getDataTypeDefinitions()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Add a <em>new</em> target to the project. |
|
|
* Add a <em>new</em> target to the project. |
|
|
* |
|
|
* |
|
@@ -1123,6 +1149,16 @@ public class Project implements ResourceFactory { |
|
|
return targets; |
|
|
return targets; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return the map of targets. The returned map |
|
|
|
|
|
* is a copy of the "live" targets. |
|
|
|
|
|
* @return a map from name to target (String to Target). |
|
|
|
|
|
* @since Ant 1.8.1 |
|
|
|
|
|
*/ |
|
|
|
|
|
public Map getCopyOfTargets() { |
|
|
|
|
|
return new HashMap(targets); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Create a new instance of a task, adding it to a list of |
|
|
* Create a new instance of a task, adding it to a list of |
|
|
* created tasks for later invalidation. This causes all tasks |
|
|
* created tasks for later invalidation. This causes all tasks |
|
@@ -1970,6 +2006,19 @@ public class Project implements ResourceFactory { |
|
|
return references.containsKey(key); |
|
|
return references.containsKey(key); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Return a map of the references in the project (String to |
|
|
|
|
|
* Object). The returned hashtable is a copy of the |
|
|
|
|
|
* "live" references. |
|
|
|
|
|
* |
|
|
|
|
|
* @return a map of the references in the project (String to Object). |
|
|
|
|
|
* |
|
|
|
|
|
* @since Ant 1.8.1 |
|
|
|
|
|
*/ |
|
|
|
|
|
public Map getCopyOfReferences() { |
|
|
|
|
|
return new HashMap(references); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Look up a reference by its key (ID). |
|
|
* Look up a reference by its key (ID). |
|
|
* |
|
|
* |
|
|