ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pracht <>
Subject exec cp won't work -- cannot stat existing file
Date Thu, 28 Aug 2003 17:03:51 GMT
Because the copy task won't copy symlinks on Linux, I'm using an exec 
task.  Unfortunately, it keeps giving me this message:

     [exec] Current OS is Linux
     [exec] Executing 'cp' with arguments:
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] /bin/cp: cannot stat 
No such file or directory

Both the source and target exist.

Here's my exec statement:
       <switch value="${OSFamily}">
           <case value="windows">
              <property name="CopyCommand" value="copy"/>
           <case value="unix">
              <property name="CopyCommand" value="cp"/>
       <exec executable="${CopyCommand}"
          <arg path="${internal}/xml4c/lib/*"/>
          <arg path="${install}/."/>
       <exec executable="${CopyCommand}"
          <arg path="${internal}/xml4c/msg/*"/>
          <arg path="${install}/."/>

I've tried vmlauncher=true and false, and both give me the same 
results.  However, when I
change the value of ${CopyCommand} to a shell script called bcp, the 
script runs, and
successfully copies the file. 

How can I fix this problem?

Thanks in advance,
Ben P

This email scanned for Viruses and Spam by 
For more information on our $99 per year dial-up internet with filtered email please visit
us at:

View raw message