ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Re-compile project if a jar file is modified
Date Fri, 02 Nov 2007 11:53:47 GMT
Just thinking ...
- check if the jars changed
  <uptodate>, <pathconvert>+<modified>
- clean if changed jars
  <target if="changed">+<delete>
- compilation will automatically be done ...

Jan

 

>-----Urspr√ľngliche Nachricht-----
>Von: bora.erbas [mailto:bora.erbas@gmail.com] 
>Gesendet: Freitag, 2. November 2007 12:29
>An: user@ant.apache.org
>Betreff: Re-compile project if a jar file is modified
>
>
>Hi,
>
>This must be a basic question but I couldn't figure out how to do it.
>Basically I have multiple projects with build files for each. 
>For example:
>ComponentA:
>>compA
>>>src/...
>>>build/dist/comA.jar
>>>build.xml
>
>ComponentB:
>>compB
>>>src/...
>>>build/dist/comB.jar
>>>build.xml
>
>Now B depends on A and hence in B's build file I add
>"../compA/build/dist/*.jar" as a dependency. But whenever I 
>modify/compile A
>and create comA.jar, the compile target of B doesn't compile 
>anything; it
>doesn't see any changes. So apparently ant doesn't check if 
>the dependency
>jar files are modified or not...Right? How can I achieve this with ant?
>Something like maven's snapshot feature...
>
>Best regards,
>Bora.
>
>-- 
>View this message in context: 
>http://www.nabble.com/Re-compile-project-if-a-jar-file-is-modif
>ied-tf4736607.html#a13545263
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>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