Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 89540 invoked by uid 500); 25 Jul 2001 10:11:33 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 89496 invoked from network); 25 Jul 2001 10:11:32 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Peter Donald To: ant-user@jakarta.apache.org Subject: Re: Depend issue with "jar" task? Date: Wed, 25 Jul 2001 19:39:14 +1000 X-Mailer: KMail [version 1.2] References: <01C11429.4C25E0D0.wcline@cosd.fedex.com> In-Reply-To: MIME-Version: 1.0 Message-Id: <01072519391401.00757@helm.realityforge.org> Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Wed, 25 Jul 2001 15:53, Stefan Bodewig wrote: > On Tue, 24 Jul 2001, wrote: > > My question is: Why is the target "signjar" always executing, even > > if the jar is not recreated? > > In Ant, the tasks decide whether they need to run or not - all tasks > that are part of the dependency chain will be executed by Ant. In > your case the compares the timestamp of the archive with those > of the files that make up the archive and decides to do nothing. > > The task doesn't know whether it needs to run or not - I'm > not familiar enough with it to know whether it could gather this > information or not. The latest CVS version should be able to check dependencies if you set lazy="true". Older versions did it if you had two jars (signedjar and jar) and would only update if jar is older than signedjar. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*