
Question: Why Copy in ant is not working if I am putting includes separately?
Ant version: Apache Ant version 1.5.4 compiled on January 8 2005.
Program 1 is not working and Program 2 is working. I guess both programs are correct..
Program1:
<copy todir=”${Temp}/uaw/Uaw_compilescripts”>
<fileset dir=”${SVNCheckout}/scripts/compilescripts” >
<include name=”BuildSh,Compsh,vsamc,buildc.sh,script,compl2,main.sh,makefile,makepl1,script”/>
</fileset>
</copy>
Program2:
<copy todir=“${Temp}/uaw/Uaw_compilescripts”>
<fileset dir=“${SVNCheckout}/scripts/compilescripts” includes=“BuildSh,Compsh,vsamc,buildc.sh,script,compl2,main.sh,makefile,makepl1,script” />
</copy>
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals
One challenge that often appears in long-running Ant projects is that copy rules can become difficult to maintain as the application structure evolves. When new modules, resources, or deployment requirements are added, existing patterns may no longer represent the actual artifact requirements. Instead of only fixing copy configuration issues when they occur, teams can introduce automated artifact checks to verify that expected files, configurations, and dependencies are included before release. This approach helps prevent silent packaging errors and improves confidence in deployment processes, especially when multiple teams contribute changes to the same build system.