ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <stephane.baill...@haht.com>
Subject RE: Serializable Location?
Date Mon, 15 Jul 2002 11:38:36 GMT
> -----Original Message-----
> From: Jonas Göransson [mailto:jongo728@student.liu.se]
> 
> I've written a task which uses RMI in order to execute a core 
> Ant task 
> on a remote host. The current design
> passes back a BuildException over rmi if the build fails.
> Problem:
> The BuildException implements the interface Serializable but 
> contains a 
> reference to the class Location which doesn't.
> This makes the BuildException not serializable if it contains a 
> location. Would there be any problems changing the class Location
> by adding the implements Serializable declaration and there by making 
> BuildException truly serializable?

Don't think there is any problem with that. I wanted to do this a long time
ago but I'm not sure about what it really brings...the exception is not
serializable so you won't have the stacktrace I believe.


--
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