ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: signing jar only if it has been updated
Date Fri, 03 May 2002 14:49:40 GMT
Well, I'm not sure I understand... I didn't assume two files, especially not
two jar files (the original and the signed), but was thinking the unsigned
jar was modified/signed in place. The second file is an empty file created
by <touch> (if needed) after you sign a jar to record the time the jar was
last signed. By using <uptodate>, you can find out if your jar is more
recent than this empty file, and only sign it if it is. So...

1) If the empty timestamp file doesn't exist, or is older that your jar, you
need to sign your jar.
2) If the timestamp file exists, and is newer that your jar, you don't need
to sign your jar.

That simple! By maybe I didn't understand your problem correctly. --DD

-----Original Message-----
From: Michael_Luu@NAI.com [mailto:Michael_Luu@NAI.com] 
Sent: Thursday, May 02, 2002 6:15 PM
To: ant-user@jakarta.apache.org
Subject: RE: signing jar only if it has been updated

thanks for the response.

this assumes there are two files.  the original jar and the signed jar.  i
guess it wouldn't be possible with two seperate files.  i was hoping that
there was a feature that i may have missed to accomplish this with signjar.
:)

michael

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Thursday, May 02, 2002 2:15 PM
To: 'Ant Users List'
Subject: RE: signing jar only if it has been updated


Right after you perform signjar, touch a file that acts as the timestamp for
the last time you performed signjar. Then have your signjar target depend on
a check-jar-up2date-4signjar target that uses <uptodate> between the jar and
the timestamp file, setting a property if it need (or not) updating, and
have the signjar target if/unless on that property. I'll leave the actual
implementation to you ;-) Try it, and if you're stuck I can help some more,
and someone not as lazy as me if going to provide you the full solution.
--DD

-----Original Message-----
From: Michael_Luu@NAI.com [mailto:Michael_Luu@NAI.com] 
Sent: Thursday, May 02, 2002 3:17 PM
To: ant-user@jakarta.apache.org
Subject: signing jar only if it has been updated

would anyone out there know how to accomplish this?  it seems that the
signjar task signs a jar file regardless if it has changed.  this takes
quite a long time if the jar file is large.

thanks,

mike

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message