ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Goldstein <>
Subject Copying a file recursively
Date Mon, 30 Jul 2001 17:26:37 GMT
I'm attempting to copy a file recursively throughout a directory tree.  Here 
is the target that I'm trying:

<target name="make" depends="init">
    <apply executable="cp" dest="." dir="." type="dir" failonerror="yes">
	 <fileset dir=".">
	      <patternset refid="all.sources"/>
	 <mapper type="merge" to="file_to_copy"/>

where the all.source pattern is

    <patternset id="all.sources">
	    <include name="**/*.java"/>

When I run ant with verbose and debug options, I get the following output for 
this target:

    [apply] Myos = Windows NT
    [apply] cp

Can anyone give me some hints on how to fix this?  Thanks.


"Just a mirror for the sun...
 My smiling eyes are just a mirror for the sun."

View raw message