Peter,

That solved it!  Thanks for the help.
==============================================
  <target name="signjar" depends="jarfiles">
    <signjar jar="${JarDest}/${JarFileName}.jar" 
         alias="cciikey" 
         storepass="keystore"
         keystore="${KeystoreLoc}"
         lazy="true"            <==== new line here
       />
  </target>
==============================================
Stefan, thanks for the info as well.

-Joey

-----Original Message-----
From:   Peter Donald [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, July 25, 2001 3:39 AM
To:     [EMAIL PROTECTED]
Subject:        Re: Depend issue with "jar" task?

On Wed, 25 Jul 2001 15:53, Stefan Bodewig wrote:
> On Tue, 24 Jul 2001, <[EMAIL PROTECTED]> 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 <jar> compares the timestamp of the archive with those
> of the files that make up the archive and decides to do nothing.
>
> The <signjar> 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               |
*-----------------------------------------------------*

Reply via email to