You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Anderson, Rob (Global Trade)" <Ro...@nike.com> on 2004/12/02 20:49:07 UTC

fileset and dirset do not work with date selector

I have a question about using a date selector with fileset and dirset. My problem is documented in bug # 32281...

http://issues.apache.org/bugzilla/show_bug.cgi?id=32281

I have been using and interactive debugger to try to find the problem in the code and I have come across what appears to be my problem. In the isSelected() method of DateSelector.java I see the following starting on line 246...

        if (file.isDirectory() && (!includeDirs)) {
            return true;
        }

By default includeDirs is set to false (on line 40). There is a method to override the default beginning on line 126...

    public void setCheckdirs(boolean includeDirs) {
        this.includeDirs = includeDirs;
    }

My question is: What must I change in my build.xml to override the default that is set on line 40. I am using the latest attachement to the bug mentioned above as my build file.

Thanks,


_________________________________________________________________
Robert Anderson  Sr. System Engineer  Nike - Global Trade IT  (503) 532-6803  d


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: path, dirs, filesets WAS fileset and dirset do not work with date selector

Posted by Matt Benson <gu...@yahoo.com>.
--- Matt Benson <gu...@yahoo.com> wrote:

> Okay, I take that back.  I was using <pathconvert>
> to
> try and see what was selected.  But <pathconvert>
> relies on <path> which does not see directories
> selected from <fileset>s (it will SOON).  Is

[SNIP]

Followup:  I had an aneurysm and forgot that DirSet
and FileSet are nearly the same thing.  I therefore do
not see any need at this time for <path> to include
directories from <fileset>s so I am going to drop
this.

-Matt


		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: fileset and dirset do not work with date selector

Posted by Matt Benson <gu...@yahoo.com>.
Okay, I take that back.  I was using <pathconvert> to
try and see what was selected.  But <pathconvert>
relies on <path> which does not see directories
selected from <fileset>s (it will SOON).  Is checkdirs
working for you?

-Matt

--- Matt Benson <gu...@yahoo.com> wrote:

> --- Matt Benson <gu...@yahoo.com> wrote:
> > Answer:  set the (undocumented) checkdirs
> attribute
> > to
> > "true|on|yes".  ;)
> 
> Well, hang on, that doesn't want to work right
> either...
> 
> > 
> > -Matt
> > 
> > 
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Take Yahoo! Mail with you! Get it on your mobile
> > phone. 
> > http://mobile.yahoo.com/maildemo 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > dev-help@ant.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: fileset and dirset do not work with date selector

Posted by Matt Benson <gu...@yahoo.com>.
--- Matt Benson <gu...@yahoo.com> wrote:
> Answer:  set the (undocumented) checkdirs attribute
> to
> "true|on|yes".  ;)

Well, hang on, that doesn't want to work right
either...

> 
> -Matt
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile
> phone. 
> http://mobile.yahoo.com/maildemo 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: fileset and dirset do not work with date selector

Posted by Matt Benson <gu...@yahoo.com>.
--- "Anderson, Rob (Global Trade)"
<Ro...@nike.com> wrote:

> I have a question about using a date selector with
> fileset and dirset. My problem is documented in bug
> # 32281...
[SNIP]
> By default includeDirs is set to false (on line 40).
[SNIP]
> My question is: What must I change in my build.xml
> to override the default that is set on line 40. I am
> using the latest attachement to the bug mentioned
> above as my build file.

Answer:  set the (undocumented) checkdirs attribute to
"true|on|yes".  ;)

-Matt


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org