ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Knauf <Aar...@geniesystems.com>
Subject RE: How to tell what Javac did?
Date Thu, 25 May 2000 22:33:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Aaron Knauf wrote:
> > Perhaps we could extend Task to set an exit status property? 
> > Probably, this would mean changing
> > 
> > public void execute()
> > 
> > to
> > 
> > public int execute()
> > 
> > and changing all the subclasses.  Better to get that done 
> now, rather
> > than wait until the number of tasks is too large.
> 
> If you would choose this option, then I suggest you change the
> return type to be some class or interface, not just an int, for 
> extensibility.
> You may find it useful to return a descriptive error message, 
> or perhaps
> warning messages.
> 
> For now the return type could be as simple as:
> 
>    public interface ExecutionResult {
>       int getStatus();
>    }
>

So, do we want to do exit status checking at the Task level or at the
Target level?  If at the Task level, how does the next Task check/use
the value?  (Target has a nice easy if="some.property.present".)

Anyone have any usefull insights here?

ADK

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>

iQA/AwUBOS0CV9DEY7hlrDuMEQJifgCfY09g80Fvo+9U2oGmI28iVYk5lyYAoLeB
ewDwHiT+f6oncJixuh3AsPlQ
=lD0K
-----END PGP SIGNATURE-----

Mime
View raw message