Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
T E Schmitz wrote: [EMAIL PROTECTED] wrote: I tried : l = new java.lang.Long (millis); d = new java.util.Date(l); This also results in a IllegalArgumentException when creating the Date. What an idiot! It's got to be d = new java.util.Date(l.longValue()); -- Regards/Gruß, Ta

Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
[EMAIL PROTECTED] wrote: I tried to write a second script but am getting an IllegalArgumentException on "new Date(millis)": Project: public String getProperty(String propertyName) You have to convert the String into a long. I tried : l = new java.lang.Long (millis);

extract file date in a given format

2007-01-04 Thread T E Schmitz
Hello, I have a task which returns a file's date in epoch format (for use with 'touch'): I also need the date in a human readable format. I tried to write a second script but am getting an IllegalArgumentException on "new Date(millis)": Also: cou

Re: [signjar] prevent double signing

2004-11-05 Thread T E Schmitz
Hallo Stefan, Stefan Bodewig wrote: On Thu, 04 Nov 2004, T. E. Schmitz <[EMAIL PROTECTED]> wrote: information can and should be gathered from <http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html> and in particular <http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Signed%20JAR

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
Sorry to bombard you with yet another posting ;-) T E Schmitz wrote: And why the hell toUpperCase()? The jars signed by Sun contain a mixed case SF file (Sun_micr.sf). The ones I signed with the signjar task produce a mixed case SF file, too. In fact, in both cases the SF extension is *lowercase

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
Hello again, Stefan Bodewig wrote: On Thu, 4 Nov 2004, Ivan Ivanov <[EMAIL PROTECTED]> wrote: A signed jar contains the signature in a file named ALIAS.SF (ALIAS is a placeholder here) inside of the META-INF directory. All the code in signjar does is checking for this file. It doesn not check whet

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
Hello Stefan/Ivan, Stefan Bodewig wrote: On Thu, 4 Nov 2004, Ivan Ivanov <[EMAIL PROTECTED]> wrote: Actually, there *is* a method called isSigned(File) that checks whether a jar is signed, so what you want *is* possible. A signed jar contains the signature in a file named ALIAS.SF (ALIAS is a pla

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
T E Schmitz wrote: That's strange. This is not the output I'm getting (I'm using Sun's SDK 1.4.2_01 on Win2K). For an unsigned jar, jarsigner returns: "jarsigner: java.lang.IllegalStateException: zip file closed" Known bug in Java 2 SDK 1.4.2, see http://java.su

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
Hello Ivan, Ivan Ivanov wrote: --- T E Schmitz <[EMAIL PROTECTED]> wrote: I'm still looking to find out if you can determine whether a jar file is already signed or not. In fact there is a way, but I do not know how it will work with Ant: jarsigner command line tool has -verify optio

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
us thread in ant's mailing list called Ant Get FileSize using exec?. You can see it for the original source. I had seen the original script but somehow I didn't put 1+1 together. Never used the option al tasks before ;-) --- T E Schmitz <[EMAIL PROTECTED]> wrote: a) Is there a means

[signjar] prevent double signing

2004-11-03 Thread T E Schmitz
Hello, I am using the signjar task to sign a set of jar files for a WebStart application. Some of the jars have already been signed by Sun (e.g. mail.jar) and as a jar mustn't have more than one signature I need to exclude those files from being signed. I misunderstood and tried the "lazy" attr

Re: how to convert path to fileset

2004-03-30 Thread T E Schmitz
The discussion threads "how to convert path to fileset" and "Set a property is source file exist", trivial as these topics might seem, have been an enlightenment today. Thanks for taking the time to delve into some "dummy" questions. Best Regards, Tarlika Elisabeth Schmitz Brian Lalor wrote: