Matt,

You bastard! Why won't you shut up??!!! ;) Thanx all the same for the boiled 
down example.
--------------------------------------------------- 
Clifton C. Craig, Software Engineer
Intelligent Computer Systems -  A Division of GBG
[EMAIL PROTECTED]
[EMAIL PROTECTED]

On Monday 23 January 2006 3:37 pm, Matt Benson wrote:
> Just because I'm a bastard who can't shut up, I'll
> even boil my example (which may have been obscured by
> setup and testing) down to a macro:
>
> <macrodef name="copydirs">
>   <attribute name="dir" />
>   <attribute name="includes" />
>   <attribute name="todir" />
>   <sequential>
>     <pathconvert property="[EMAIL PROTECTED]"
> pathsep=",">
>       <path>
>         <dirset dir="@{dir}" includes="@{includes}" />
>       </path>
>       <chainedmapper>
>         <globmapper from="@{dir}/*" to="*"
>                     handledirsep="true" />
>         <regexpmapper from="^.*$" to="\0/**" />
>       </chainedmapper>
>     </pathconvert>
>     <copy todir="@{todir}">
>       <fileset dir="@{dir}"
> includes="[EMAIL PROTECTED]" />
>     </copy>
>   </sequential>
> </macrodef>
>
> best I can do for now, until we have local properties
> for macrodefs.
>
> -Matt
>
> --- Matt Benson <[EMAIL PROTECTED]> wrote:
> > --- Clifton Craig <[EMAIL PROTECTED]> wrote:
> >
> > [SNIP]
> >
> > > ;) I must clarify that
> > > my tone was not intended as a heated tone. It is
> > > hard to express or
> > > interperet tone in text so let me assure you all
> > > that I'm not angry at
> > > anybody.
> >
> > Okay, sorry for the misinterpretation... :)
> >
> > [SNIP]
> >
> > > I don't like the idea of
> > > hacking patternset syntax into a property if there
> > > is no such tool to take
> > > care of this for me. My feeling is that once you
> > > have to start reading a
> > > property into a file and back into a property
> >
> > you've
> >
> > > taken a wrong step
> > > somewhere and things should be able to be done
> > > better.
> >
> > Agreed; I hate temp files, and many of the changes I
> > have made in Ant can be traced back to that simple
> > fact.
> >
> > >  My take away from all
> > > of this is that there is no such way to easily
> >
> > copy
> >
> > > a list of folders
> > > separated by commas and include their contents.
> > > Simple is being defined as
> > > not requiring the list be swapped to disk, not
> > > requiring third party
> > > extensions installed to the base, and not
> >
> > requiiring
> >
> > > custom ant tasks or
> > > procedural logic as each of these approaches
> >
> > involve
> >
> > > additional functionality
> > > that is not part of the base set.
> >
> > Hmm... my solution involved nothing but built-in
> > Ant.
> > Pathconvert was used to turn your list of
> > directories
> > into a patternset.  The most "foreign" material used
> > was a regexp mapper... which should be included w/o
> > add-ons if you're using JDK>= 1.4 ... what more do
> > you
> > want?  ;)
> >
> > -Matt
> >
> > [SNIP]
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
>
> ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to