RE: [GUMP@brutus]: Project mx4j-tools-from-packaged-jetty (in module mx4j) failed

"Bordet, Simone" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <F4F4494F4618794E99E59D41C5292FFD01868431@mnoexc01.emea.cpqcorp.net>
Stefan, 

very soon (couple of days) the "releasing" property will be removed, along with the snippets of the build file you're referencing below that cause Gump to fail the build.

Is it possible to wait ?

Thanks for the guidance on Ant !

Simon

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Stefan Bodewig
> Sent: mercoledì 16 febbraio 2005 11:44
> To: [email protected]
> Subject: Re: [Mx4j-devel] [GUMP@brutus]: Project 
> mx4j-tools-from-packaged-jetty (in module mx4j) failed
> 
> On Wed, 16 Feb 2005, Simone Bordet <[email protected]> wrote:
> 
> >      [rmic] 295 errors
> 
> > BUILD FAILED
> > 
> /home/gump/workspaces2/public/workspace/mx4j/build/build.xml:3
> 18: Rmic failed; see the compiler error output for details.
> 
> Here is what happens in Gump:
> 
> Gump runs the release target, which means the property releasing gets
> set.
> 
>       <rmic base="${tools.classes.dir}" 
> classpathref="classpath" debug="yes" stubversion="1.2">
>          <include name="mx4j/tools/adaptor/rmi/RMIAdaptor.*" 
> unless="releasing"/>
>          <include 
> name="mx4j/tools/connector/rmi/RemoteNotificationListenerImpl.
> *" unless="releasing"/>
>          <include 
> name="mx4j/tools/connector/rmi/RemoteNotificationFilterImpl.*"
>  unless="releasing"/>
>       </rmic>
> 
> gets run and none of the <include>s applies.  This in turn leads to
> <rmic> using the default, which is includes="**".  The same would
> happen with the next <rmic> task.
> 
> I know this behaviour of Ant is non-intuitive, but it is far (about
> four and a half years) too late to fix it.
> 
> There are a couple of solutions to this:
> 
> One would be to farm the rmic tasks out into a separate target that
> has an unless="releasing" attribute on it.  This means you'd have to
> split the compile.tools target into three.
> 
> The other one involves setting the verify attribute on the <rmic>
> tasks to true.  This makes Ant look into each class and only pass
> those to the rmic compiler that are really Remote classes.  The
> drawback here is that loading and checking all classes may cost time.
> 
> Cheers
> 
>         Stefan
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Mx4j-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mx4j-devel
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.