ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: why no workie: adding attributes to Project
Date Wed, 17 Apr 2002 12:06:05 GMT
Why not use a BuildListener/Logger???

You sure do like to do things the hard way!  :)

    Erik


----- Original Message -----
From: "stephan beal" <stephan@wanderinghorse.net>
To: <ant-dev@jakarta.apache.org>
Sent: Wednesday, April 17, 2002 7:44 AM
Subject: why no workie: adding attributes to Project


> Hello!
> i'm hacking my Project.java to enable the following:
>
> <project errortarget="on_error">
> ....
> </project>
> If any target fails (throws a BuildException) the target named 'on_error'
will
> be called, and then the build will bail out.
>
> i've added the setter to Project, but i still get:
> /home/stephan/cvs/einsurance/build.stephan.xml:8: Unexpected attribute
> "errortarget"
>
> public void setErrortarget( String targetname ) {
>     this.onErrorJumpToTarget = targetname;
> }
>
> i am 100% certain that my copy of Project is used by ant because other
> debuggering output from my changes are printed.
>
> Does this way of adding attributes only work with tasks? If so, how can i
add
> an attribute to the Project object such that it can be set via XML?
>
> ----- stephan
> Generic Unix Computer Guy
> stephan@einsurance.de - http://www.einsurance.de
> Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
> "As death comes, without our looking for it, so should be life."
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message