ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Hassan" <greg.has...@net-linx.com>
Subject RE: PaternSet problems
Date Thu, 09 May 2002 20:53:37 GMT
Sorry,

> I have generated a list of files and stored them in xxx. I would

xxx should be "file_list.txt" and the <copy> task should actually be <move>.

Does anyone know why ANT is ignoring every file? If I put a pattern of
**/*.java into file_list.txt, it copies every .java file.

Greg




> -----Original Message-----
> From: Greg Hassan [mailto:greg.hassan@net-linx.com]
> Sent: Thursday, May 09, 2002 9:47 AM
> To: 'Ant Users List'
> Subject: PaternSet problems
>
>
> Hi,
>
> I have generated a list of files and stored them in xxx. I would
> like to use
> ANT to move each of these files to a separate location, but the
> <move> task
> is not picking up my patterns properly in this file. See target definition
> and sample of pattern file below.
>
> taget definition:
>
>   <target name="move_unused">
>     <!-- Move files into temp-->
>     <copy todir="${basedir}/implementation/temp">
>       <fileset dir="${basedir}/implementation"
> includesfile="file_list.txt"/>
>     </copy>
>   </target>
>
>
> pattern file (file_list.txt):
>
> 	**/previewREApp.java
> 	**/TestAppTest.java
> 	**/TestApp.java
> 	**/TestAppMainFrame.java
>
>
>
> ant output:
>
> 	Buildfile: build.xml
>
> 	move_files:
>
> 	BUILD SUCCESSFUL
> 	Total time: 1 second
>
>
> Idealy I would like to specify the full path for each file such as:
>
> 	com/xxx/yyy/previewREApp.java
>
> I tried this, but it also failed.
>
> Can anyone see what I'm doing wrong?
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message