ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blazingwolf7 <blazingwo...@gmail.com>
Subject Re: Copying Folder
Date Mon, 22 Dec 2008 08:53:20 GMT

Hmm...there are .txt and other files inside there..
There are folders as well. I want to ignore all folders and copy the rest of
the files
But just keep failing to do that. It copy everything


Brett Ryan wrote:
> 
> The problem is that your `include' clause is implicitly ignoring
> folders, if you wish to use the include clause add another with the
> value of '*/', otherwise remove <include name="*"/>
> 
> On Mon, Dec 22, 2008 at 7:26 PM, blazingwolf7 <blazingwolf7@gmail.com>
> wrote:
>>
>> Hi,
>>
>> I am trying to used ant to copy all files from one folder to another. But
>> from the directory the files to be copy from contains some folders as
>> well.
>>
>> <copy todir="${build.dir}">
>>                <fileset dir="${basedir}">
>>                <include name="*"/>
>>                </fileset>
>> </copy>
>>
>> I tried to copy all the files except for the folders but fail to do so.
>> Can
>> anyone advice?
>> --
>> View this message in context:
>> http://www.nabble.com/Copying-Folder-tp21124245p21124245.html
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Copying-Folder-tp21124245p21124520.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message