avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@apache.org>
Subject RE: Magic updates
Date Thu, 23 Sep 2004 17:30:18 GMT

Good idea!  The change to the replicator task is rather simple - just
the addition of a flatten setter and the propagation of this to the
underlying copy operation.  

Patch attached.

Cheers, Steve.


> -----Original Message-----
> From: Cameron Taggart [mailto:cameron.taggart@gmail.com]
> Sent: 23 September 2004 19:23
> To: Avalon framework users
> Subject: Re: Magic updates
> 
> I have a small feature request for Magic.  I often need to copy the
> jars needed for runtime like so:
> 
>     <x:path id="build.path"/>
>     <x:replicate refid="build.path" todir="target/war"/>
>     <copy todir="target/war" flatten="true">
>       <fileset dir="target/war" includes="**/*.jar"/>
>     </copy>
> 
> It would be nice if replicate task had a flatten="true" option so I
> didn't have to replicate and then do a copy.
> 
> Cameron
> 
> 
> 
> 
> On Thu, 16 Sep 2004 00:23:00 +0800, Niclas Hedhman
<niclas@hedhman.org>
> wrote:
> >
> > Boys and gals,
> >
> > We have been re-thinking the Magic strategy. The standard.xml
doesn't
> declare
> > <x:home/> and that is done in the build.xml instead. By doing this,
we
> don't
> > need any hardcoded properties passed from the build.properties to
Magic.
> >
> > Furthermore, it makes things more explicit and understandable, and
would
> allow
> > us to do even more in the <x:home/> task in the future.
> > The recommended set up of the build.xml is now;
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <project name="facilities" default="default" basedir="."
> >     xmlns:x="antlib:org.apache.avalon.tools">
> >   <property file="build.properties"/>
> >   <x:home />
> >   <import file="${magic.templates}/standard.xml"/>
> > </project>
> >
> > for 'reactor' projects, replace standard.xml with reactor.xml
> >
> > The entire Avalon codebase has been converted to this format, and
the
> > central/system/standard.xml has been killed.
> > The new ${magic.home}/templates/standard.xml (and reactor.xml)
doesn't
> contain
> > a <x:home/> declaration.
> >
> > People who has set up Magic, will need to make some adjustments to
stay
> > in-line with the development of Magic.
> >
> > Cheers
> > Niclas
> > --
> >    +------//-------------------+
> >   / http://www.bali.ac        /
> >  / http://niclas.hedhman.org /
> > +------//-------------------+
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@avalon.apache.org
> > For additional commands, e-mail: users-help@avalon.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@avalon.apache.org
> For additional commands, e-mail: users-help@avalon.apache.org

Mime
View raw message