This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Ant files are not being copied over

 
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
 
Bartender
Posts: 2658
19
Netbeans IDE C++ Linux
  • 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
 
There's a city wid manhunt for this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic