Browse Source

remove constructor

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@563679 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
56c846c9ac
1 changed files with 3 additions and 11 deletions
  1. +3
    -11
      src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java

+ 3
- 11
src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java View File

@@ -71,17 +71,6 @@ public class PropertyHelperTask extends Task {
private PropertyHelper propertyHelper;
private List delegates;

/**
* Construct the PropertyHelperTask, which is useless without a Project instance.
* @param Project the associated Ant project instance.
*/
public PropertyHelperTask(Project project) {
if (project == null) {
throw new IllegalArgumentException();
}
setProject(project);
}

/**
* Add a new PropertyHelper to be set on the Project.
* @param propertyHelper the PropertyHelper to set.
@@ -116,6 +105,9 @@ public class PropertyHelperTask extends Task {
* @throws BuildException on error.
*/
public void execute() throws BuildException {
if (getProject() == null) {
throw new BuildException("Project instance not set");
}
if (propertyHelper == null && delegates == null) {
throw new BuildException("Either a new PropertyHelper"
+ " or one or more PropertyHelper delegates are required");


Loading…
Cancel
Save