ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Hanna" <pha...@ipass.net>
Subject ant target attribute not working
Date Mon, 10 Jul 2000 03:19:13 GMT
Somewhere between the June 1 and current build, the "target" attribute of the "ant" task seems
to have stopped working:

<ant dir="sub" target="main2"/>

Class class org.apache.tools.ant.taskdefs.Ant doesn't support the "target" property
        at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:451)

The Ant class does indeed have a java.lang.String property named "target", and it has a proper
setTarget(String s) method.  However, its superclass Task also has a setTarget() method, but
the property data type is Target, not java.lang.String.  This is enough to confuse the BeanInfo
into ignoring the setTarget() method in Ant.

It definitely works in the June 1 version, but I can't tell why - the configure() method in
ProjectHelper was not changed.

Any ideas?

Mime
View raw message