ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helliwell, Matthew" <Matthew.Helliw...@DRKW.com>
Subject RE: Problem of dependencies ...
Date Mon, 25 Jun 2001 10:01:43 GMT
Have you tried just doing the compile from the command line? Perhaps the
sources in the doNotTouch packages have a newer timestamp than the classes.

Matt


-----Original Message-----
From: Cyriaque Dupoirieux [mailto:cyriaque.dupoirieux@pcotech.fr]
Sent: 25 June 2001 10:41
To: ant-user@jakarta.apache.org
Subject: Re: Problem of dependencies ...



Hello again,

   I still have my problem, now my target looks like this :

<path id="path.classpath">
      <pathelement location="codes" />
</path>

<target name="Compilation">
       <javac srcdir="sources"
           destdir="codes"
           includes="projet/**"
           excludes="doNotTouch/**/*.java"
           classpathref="path.classpath"
</target>

I am disapointed,


Rob van Oostrum wrote:

> make sure you only include the sources you want to compile in the <javac>.
> Better yet, make sure you exclude **/doNotTouch/**/*.java
> 
> Include the doNotTouch class files in the <javac> classpath.
> 
> that should solve your problem
> 
> Cyriaque Dupoirieux wrote:
> 
>> Hello,
>> 
>>    I'm new on this list and I have to say that english is not my first
>> language...
>> 
>>    Well, we've got a problem of re-compilation of files that have not
>> been excluded.
>> 
>>    We use the following task :
>> 
>>    <target name="Compilation">
>>        <javac srcdir="sources"
>>            destdir="codes"
>>            includes="paquetage/**"
>>        />
>>    </target>
>> 
>>    Our directory organisation is like this :
>>        sources/projet/... (*.java)
>>        sources/doNotTouch/... (*.java)
>> 
>>        codes/projet/...  (*.class)
>>        codes/doNotTouch/... (*.class)
>> 
>>    Some classes from the project package inherits a class from the
>> doNotTouch package,
>>    and even if we haven't included the doNotTouch package, ant compile
>> some classes of this package.
>> 
>> What can I do, I can't modify the doNotTouch package because it is not
>> of my own and I must not
>> compile it because it gives me some problems...
>> 
>> Thank you for your help,
>> 
>> --
>> Cyriaque Dupoirieux
>> PCO Technologies
>> Burolines - 2 ter rue Marcel Doret
>> 31700 Blagnac
>> Tél : 05 34 60 44 13 - Fax : 05 34 60 44 10
> 

-- 
Cyriaque Dupoirieux
PCO Technologies
Burolines - 2 ter rue Marcel Doret
31700 Blagnac
Tél : 05 34 60 44 13 - Fax : 05 34 60 44 10


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------

Mime
View raw message