ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Error not detected in ANT 1.6.1 compile task
Date Wed, 16 Feb 2005 12:19:37 GMT
Ahmed Ounaissa wrote:

>Thx to all for your answers.
> 
> If summarize:
>  1. I do not have to respect the package structure for my sources (is this compliant
to Java Spec ?).
>  
>
You do have to for the ant task as it uses the relative directory 
structure to figure out which files have
been compiled, however ant does not have the code to inspect the java 
source files to see if the
package names are what is expected,

>  2. If -d is supplied to the compiler (javac) it disregards possible mismatches between
package class statement and compilation unit location.
>     (source location is supplied in the ant xml build file).
>
> Side question: Loading same sources in Eclipse raises the error.
>
>Thx 
>/Ahmed
>
>-----Original Message-----
>From: Stefan Bodewig [mailto:bodewig@apache.org]
>Sent: mercredi 16 février 2005 12:51
>To: user@ant.apache.org
>Subject: Re: Error not detected in ANT 1.6.1 compile task
>
>
>On Wed, 16 Feb 2005, Peter Reilly <peterreilly@apache.org> wrote:
>
>  
>
>>To clarify,
>>this is normal commandline and ant task javac behaviour.
>>    
>>
>
>Even more than that.
>
>I once worked on a(n open source) project[1] that kept all source
>files in the same directory, even though they belonged to different
>Java packages.  They wanted it to be that way ("I won't let the
>programming language tell me how I structure my workspace").
>
>Stefan
>
>
>---------------------------------------------------------------------
>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
>
>
>
>  
>


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


Mime
View raw message