Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant files are not being copied over

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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, ...."
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
${project.home} for sure

its weird the same type of script works fine in another project
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
opps, your right I was supposed to be using APP_ROOT
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic