diff --git a/proposal/mutant/build/ant1compat.xml b/proposal/mutant/build/ant1compat.xml
index 8ea227575..0838a5c3e 100644
--- a/proposal/mutant/build/ant1compat.xml
+++ b/proposal/mutant/build/ant1compat.xml
@@ -62,6 +62,7 @@
+
diff --git a/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java b/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java
index 93a30822a..da8a49b7a 100644
--- a/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java
+++ b/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java
@@ -196,6 +196,42 @@ public class Project implements org.apache.ant.common.event.BuildListener {
fileUtils = FileUtils.newFileUtils();
}
+ /**
+ * The old constructor fopr Project instances - not used now.
+ *
+ * @deprecated
+ */
+ public Project() {
+ throw new BuildException("Projects can not be constructed to "
+ + "invoke Ant");
+ }
+
+ /**
+ * The old initialisation method for Projects. Not used now
+ *
+ * @deprecated
+ * @exception BuildException if the default task list cannot be loaded
+ */
+ public void init() throws BuildException {
+ throw new BuildException("Projects can not be initialized in this "
+ + "manner any longer.");
+ }
+
+
+ /**
+ * Old method used to execute targets
+ *
+ * @param targetNames A vector of target name strings to execute.
+ * Must not be null
.
+ *
+ * @exception BuildException always
+ * @deprecated
+ */
+ public void executeTargets(Vector targetNames) throws BuildException {
+ throw new BuildException("Targets within the project cannot be "
+ + "executed with this method.");
+ }
+
/**
* static query of the java version
*
diff --git a/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java b/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java
index be40198dc..6a203ece9 100644
--- a/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java
+++ b/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java
@@ -54,6 +54,7 @@
package org.apache.tools.ant;
import java.util.Hashtable;
import java.util.Vector;
+import java.io.File;
import org.apache.ant.common.antlib.AntContext;
import org.apache.ant.common.service.DataService;
import org.apache.ant.common.util.AntException;
@@ -131,5 +132,21 @@ public class ProjectHelper {
throw new BuildException(e);
}
}
+
+ /**
+ * Old method to build a project.
+ *
+ * @param project The project to configure. Must not be null
.
+ * @param buildFile An XML file giving the project's configuration.
+ * Must not be null
.
+ *
+ * @exception BuildException always
+ * @deprecated
+ */
+ public static void configureProject(Project project, File buildFile)
+ throws BuildException {
+ throw new BuildException("Project are not built by ProjectHelper "
+ + "any longer.");
+ }
}