From 806257ab91162e28b34e969aa7c3d8dd62a3459a Mon Sep 17 00:00:00 2001 From: mattinger Date: Tue, 6 Mar 2007 18:45:08 +0000 Subject: git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@94 32d7a393-a5a9-423c-abd3-5d954feb1f2f --- src/java/net/sf/antcontrib/logic/AntCallBack.java | 11 +++-------- src/java/net/sf/antcontrib/logic/AntFetch.java | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/java/net/sf/antcontrib') diff --git a/src/java/net/sf/antcontrib/logic/AntCallBack.java b/src/java/net/sf/antcontrib/logic/AntCallBack.java index cb0cf38..744d387 100644 --- a/src/java/net/sf/antcontrib/logic/AntCallBack.java +++ b/src/java/net/sf/antcontrib/logic/AntCallBack.java @@ -19,7 +19,7 @@ import java.util.StringTokenizer; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; -import org.apache.tools.ant.taskdefs.Ant; +import org.apache.tools.ant.taskdefs.CallTarget; import org.apache.tools.ant.taskdefs.Property; /** @@ -32,7 +32,7 @@ import org.apache.tools.ant.taskdefs.Property; * @author inger * @author Dale Anson, danson@germane-software.com */ -public class AntCallBack extends Ant { +public class AntCallBack extends CallTarget { /** the name of the property to fetch from the new project */ private String returnName = null; @@ -42,7 +42,6 @@ public class AntCallBack extends Ant { public void setProject(Project realProject) { fakeProject = new ProjectDelegate(realProject); super.setProject(fakeProject); - setAntfile(realProject.getProperty("ant.file")); } /** @@ -83,10 +82,6 @@ public class AntCallBack extends Ant { */ public void setReturn( String r ) { returnName = r; - } - - public Property createParam() { - return super.createProperty(); - } + } } diff --git a/src/java/net/sf/antcontrib/logic/AntFetch.java b/src/java/net/sf/antcontrib/logic/AntFetch.java index 3154b22..a208800 100644 --- a/src/java/net/sf/antcontrib/logic/AntFetch.java +++ b/src/java/net/sf/antcontrib/logic/AntFetch.java @@ -32,7 +32,7 @@ import org.apache.tools.ant.taskdefs.CallTarget; * @author inger * @author Dale Anson, danson@germane-software.com */ -public class AntFetch extends CallTarget { +public class AntFetch extends Ant { /** the name of the property to fetch from the new project */ private String returnName = null; -- cgit v1.2.3