This happens when java files within ${src} is not placed as per package hierarchy. Ant expects the file ${src}\foo\bar\filenameDTO.java to be in package foo.bar
So if the ${src}\foo\bar\filenameDTO.java is in pacakge foo1.bar1, Ant will always complain that [javac] ${src}\foo\bar\filenameDTO.java added as ${build}/foo/bar/filenameDTO.class doesn't exist. After compiling Ant will create class file as ${build}/foo1/bar1/filenameDTO.class For more info, http://ant.apache.org/faq.html#always-recompiles Regards, Bijo _________________________________ Bijo Alex Thomas DSRC, 6, Smith Road, Chennai - 2 Mail: [EMAIL PROTECTED] Website: http://dsrc.com ----- Original Message ----- From: "Thomas George" <[EMAIL PROTECTED]> To: <user@ant.apache.org> Sent: Saturday, June 18, 2005 01:18 AM Subject: Problems with build file > Hello, > > I'm getting strange javac error messages from an Ant build and since I'm a > new Ant user, I'm really not sure where to start troubleshooting. > > Here is the error: > > [javac] src\[PathToFile]\filenameDTO.java added as > src/[PathToFile]\filenameDTO.class doesn't exist. > > I can't tell if the file is not being found, or if its not being writtne > into the src directory > > Any suggestion would be greatly appreciated..! > > Much thanks, > > Thomas > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]