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:27:30 GMT
I'm not familiar with the details of the ant task. My guess as to what is
happening is that ant is calling javac to compile the correct source code.
javac is then detecting that a dependant class is out of date and
automatically compiling it.

I think you've got two choices:
1. Separate out the classes and source files from the doNotTouch directory.
Can you jar them up and put that on your classpath?
2. Touch all the class files in the doNotTouch directory.

Matt


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



Helliwell, Matthew wrote:

> 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.

Alright, maybe, but why does ant compile the source whereas I told it to 
exclude this directory ?
Well, Is there a way to update all my .class files ? (like the touch 
target, for several files or directories)

Thanks,

> 
> 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