ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bijo Alex Thomas" <bijoa...@dsrc.co.in>
Subject Re: Problems with build file
Date Sun, 19 Jun 2005 12:53:21 GMT
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: bijoalex@dsrc.co.in
Website: http://dsrc.com



----- Original Message -----
From: "Thomas George" <tgeorge@iidc.org>
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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>







---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message