ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <er...@c187104187.telekabel.chello.nl>
Subject Re: How to tell what Javac did?
Date Thu, 25 May 2000 22:12:30 GMT
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();
   }


Ernst

Mime
View raw message