File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant files are not being copied over Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant files are not being copied over" Watch "Ant files are not being copied over" New topic
Author

Ant files are not being copied over

Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

I have this script, but the files are not being copied over, even though tasks show successfully

<target name="copy.CF.dev"
description="copy CF files to test-server"
depends="delete.CF.dev">
<copy todir="${deploy.coldfusion}">
<fileset dir="${project.home}" includes="*.cfm,*.cfc"/>
</copy>

</target>
<target name="delete.CF.dev" description="copy CF files to test-server">
<delete >
<fileset dir="${deploy.coldfusion}" includes="*.cfm,*.cfc" >

</fileset>

</delete>

</target>

ive debugged and still can't figure out whats the issue


Jesus lives
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2477
    
    7


are the *.cfm,*.cfc files located in ${project.home}, or in a subdir?

In case they are in subdirs, check how file inclusion/exclusion patterns look like for ant. You might want to concider "**/*.cfm, ...."


OCUP UML fundamental and ITIL foundation
youtube channel
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

${project.home} for sure

its weird the same type of script works fine in another project
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

opps, your right I was supposed to be using APP_ROOT
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant files are not being copied over
 
Similar Threads
ANT Complilation Issue
urjent help with ant dir structure
Copy a single file to directories
exception wile running build.xml
Building Seam projects in Eclipse