On Tue, 11 Dec 2001, Shiladitya Ghosh <[EMAIL PROTECTED]> wrote: > Copy cpy = new Copy();
*never* instantiate an Ant task directly. In your case, Copy cpy = (Copy) project.createTask("copy"); will avoid the Exception, but is still unsafe (we may chose to change the class implementing the copy task in the future). To copy a file, take a look at org.apache.tools.ant.util.FileUtils. Stefan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>