And if you try:
File f = new File( "**" );
File arq[ ] = f.listFiles( );
The value of arq is null, i think that it should work once that the OS.
suport this command. That�s my opnion, for me it should be something like :
File f = new File( "/" );
File arq[ ] = f.listFiles( );
[EMAIL PROTECTED] (Edson Alves Pereira) wrote:
> This command in UNIX show all files the one directory has inside, for
> example if you do:
>
>$ ls /**
>
> It shows all directoies and all files that exist in that machine.
>
> I didn�t known this before, only yesterday i saw this!
>
>Stefan Bodewig <[EMAIL PROTECTED]> wrote:
>
>>On Thu, 22 Nov 2001, Matthew Kuperus Heun
>><[EMAIL PROTECTED]> wrote:
>>
>>> I'm trying to use the javadoc task with "Ant version 1.4.1 compiled
>>> on October 11 2001". I don't think it handles "**" characters or
>>> implied "**" characters
>>
>><javadoc> is not a "directory based task", it doesn't support filesets
>>or patternsets.
>>
>>> in pathelements of a nested sourcepath element.
>>
>><path> and <pathelement> don't think that ** would be something
>>special, they'll go out and look for a file with two consecutive * in
>>their name.
>>
>>> See the snippet of my build.xml file below for the comments which
>>> discuss the errors I receive.
>>
>>I see the snippet, but cannot understand what you want to achieve
>>there - trying to avoid listing the source directories explicitly?
>>
>>> <!-- The next line should be equivalent to the above code
>>> that works. But, it fails, saying "No packages or classes
>>> specified." -->
>>> <!-- <pathelement path="${basedir}/src/"/> -->
>>
>>why should it be equivalent? From your description, there is no com
>>directory inside of ${basedir}/src/, therefore the package
>>specification com.foo* won't match here.
>>
>>> <!-- The next line should be equivalent to the
>>> above non-working code because of the implied "**",
>>> but I receive a different error message, namely
>>> "build.xml:38: /Users/matt/Dev/JavaDocTest/src/** not
>>> found." -->
>>> <!-- <pathelement path="${basedir}/src/**"/> -->
>>
>>See above - you don't have a directory named
>>/Users/matt/Dev/JavaDocTest/src/** on your machine, do you?
>>
>>Stefan
>>
>>--
>>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>
>--
>///////////////////////////////////////
>Better well done than well said.
> --//--
>To follow the path:
>look to the master,
>follow the master,
>walk with the master,
>see through the master,
>become the master.
>
>Modern Zen poem
>///////////////////////////////////////
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas. Experience
>the convenience of buying online with [EMAIL PROTECTED]
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
///////////////////////////////////////
Better well done than well said.
--//--
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
Modern Zen poem
///////////////////////////////////////
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience
the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>