Author: mbenson
Date: Tue Aug  7 15:17:43 2007
New Revision: 563679

URL: http://svn.apache.org/viewvc?view=rev&rev=563679
Log:
remove constructor

Modified:
    
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java?view=diff&rev=563679&r1=563678&r2=563679
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java 
(original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PropertyHelperTask.java 
Tue Aug  7 15:17:43 2007
@@ -72,17 +72,6 @@
     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 @@
      * @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");



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to