I am executing ant from /u/kumari/main/shailja/src/java, means my build.xml file is /u/kumari/main/shailja/src/java/build.xml. The error occurs only if I invoke ant from src/java in my project. The error is not comming if I invoke ant from /u/kumari/main/shailja/src/java/a/jsh/mm. what could be the reason behind it? Even the output in verbose mode is not clear to say what ant1.8 is doing. Why the behavior is changed with parent level as it works fine from lower level.
SHAILJA wrote: > > Hi All, > > I used ant1.8.0 to build my project. In build.xml I have following lines > of code. I am putting snippet of code as only copy section gives me > error. > > <mkdir dir="${TOPDIR}/${SCRIPT_DEST}" /> > <copy todir="${TOPDIR}/${SCRIPT_DEST}" > failonerror="true" flatten="true" > > <fileset > dir="${basedir}" > id="script.srcs" > includes="${SCRIPT_SRCS}" /> > </copy> > > > When I use ant1.8.0, it gives error like this > > Failed to copy /u/kumari/main/shailja/src/java/a/jsh/mm/script/run_m.pl to > /u/kumari/main/base/bin/share/run_m.pl due to > java.io.FileNotFoundException /u/kumari/main/shailja/bin/share/run_m.pl > (Permission denied) > > But I have file /u/kumari/main/shailja/src/java/a/jsh/mm/script/run_m.pl > with correct permission. > > Note: The above error is not comming with ant1.7.1 > > > Is it a bug in ant1.8.0 or somewhere I am doing wrong here ? > > > > > -- View this message in context: http://old.nabble.com/Ant1.8-copy-task-gives-error-%22Failed-to-copy%22-with-%22Permission-denied%22-tp28179282p28214094.html Sent from the Ant - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org