Sorry --

The <date> selector in the <tar> task won't work. For instance:

<tar longfile="gnu" destfile="${tar.file}">
        <tarfileset dir="." excludesfile="${excludes.file}">
                <date datetime="${last.build.date}" when="after"/>
        </tarfileset>
</tar>

Yields: "Tar$TarFileSet doesn't suppor the nested 'date' element"

Trying:
<tar longfile="gnu" destfile="${tar.file}">
        <fileset dir="." excludesfile="${excludes.file}">
                <date datetime="${last.build.date}" when="after"/>
        </fileset>
</tar>

Yields: "Tar does not support nested 'fileset' element"

I know what you're thinking..., I double checked to make sure I was using
1.5beta1

This needs to work. Can someone let me know how to get the source for 1.5?
I'll be glad to fix it up.

thanks,
--dk

> -----Original Message-----
> From: David Knox [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 7:53 PM
> To: Ant Users List
> Subject: RE: date filtering tar
>
>
> Thanks Diane --
> I'm not restricted to 1.4.1. I checked the 1.5 beta task and
> directory task
> documentation but didn't find the <date> selector. I did find selectors in
> the JavaDoc and I think that the DateSelector will fit the bill.
> However, I
> can't find any documentation about what to use the selector with.
> I grepped
> all the doc directories for "selector" and had no hits. Perhaps I'm
> overlooking the obvious!?
> Do I use it in a PatternSet? If you can just point me to the right
> documentation, I can figure the rest out.
>
> thanks,
> --dk
>
> > -----Original Message-----
> > From: Diane Holt [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 09, 2002 5:21 PM
> > To: Ant Users List
> > Subject: Re: date filtering tar
> >
> >
> > --- David Knox <[EMAIL PROTECTED]> wrote:
> > > I require functionality from the tar task that will work like
> > > "tar --newer=DATE". I've looked over Filesets, etc. and don't see an
> > > obvious existing way to do this. Before I begin writing any code,
> > > I want to make sure that my conclusion is correct. Does anyone know of
> > > an alternative way using Ant? (Ant 1.4.1).
> >
> > Are you restricted to running 1.4.1?  If you aren't, you can use the new
> > selector <date> tag -- otherwise, you'll need to write code (or
> a <script>
> > [I posted one not long ago that did that, so that might save you some
> > time]).
> >
> > Diane
> >
> > =====
> > ([EMAIL PROTECTED])
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Mother's Day is May 12th!
> > http://shopping.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


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

Reply via email to