dion 2002/06/10 02:42:50
Modified: src/java/org/apache/maven/ant CallTarget.java
Log:
Allow the maven version of antcall to export references and properties
Revision Changes Path
1.4 +7 -1
jakarta-turbine-maven/src/java/org/apache/maven/ant/CallTarget.java
Index: CallTarget.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/ant/CallTarget.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CallTarget.java 27 May 2002 12:25:44 -0000 1.3
+++ CallTarget.java 10 Jun 2002 09:42:50 -0000 1.4
@@ -97,6 +97,10 @@
private boolean inheritAll = true;
/** must match the default value of {@link Ant#inheritRefs} */
private boolean inheritRefs = false;
+ /** must match the default value of {@link exportAll} */
+ private boolean exportAll = true;
+ /** must match the default value of {@link exportRefs} */
+ private boolean exportRefs = true;
/**
* If true, inherit all properties from parent Project
@@ -124,7 +128,7 @@
*/
public void init()
{
- callee = (Ant) getProject().createTask("ant");
+ callee = (Ant) getProject().createTask("maven-ant");
callee.setOwningTarget(getOwningTarget());
callee.setTaskName(getTaskName());
callee.setLocation(getLocation());
@@ -154,6 +158,8 @@
callee.setTarget(subTarget);
callee.setInheritAll(inheritAll);
callee.setInheritRefs(inheritRefs);
+ callee.setExportAll(exportAll);
+ callee.setExportRefs(exportRefs);
callee.execute();
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>