|
@@ -72,6 +72,11 @@ public class ProjectHelper { |
|
|
*/ |
|
|
*/ |
|
|
public static final String SERVICE_ID = |
|
|
public static final String SERVICE_ID = |
|
|
"META-INF/services/org.apache.tools.ant.ProjectHelper"; |
|
|
"META-INF/services/org.apache.tools.ant.ProjectHelper"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* name of project helper reference that we add to a project |
|
|
|
|
|
*/ |
|
|
|
|
|
public static final String PROJECTHELPER_REFERENCE = "ant.projectHelper"; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Configures the project with the contents of the specified XML file. |
|
|
* Configures the project with the contents of the specified XML file. |
|
@@ -86,7 +91,7 @@ public class ProjectHelper { |
|
|
public static void configureProject(Project project, File buildFile) |
|
|
public static void configureProject(Project project, File buildFile) |
|
|
throws BuildException { |
|
|
throws BuildException { |
|
|
ProjectHelper helper = ProjectHelper.getProjectHelper(); |
|
|
ProjectHelper helper = ProjectHelper.getProjectHelper(); |
|
|
project.addReference("ant.projectHelper", helper); |
|
|
|
|
|
|
|
|
project.addReference(PROJECTHELPER_REFERENCE, helper); |
|
|
helper.parse(project, buildFile); |
|
|
helper.parse(project, buildFile); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|