Re: [signjar] prevent double signing

2004-11-04 Thread Stefan Bodewig
On Thu, 04 Nov 2004, T. E. Schmitz <[EMAIL PROTECTED]> wrote: > Now we're talking ... ;-) 8-) All I said so far was only based on reading the source itself. "Real" information can and should be gathered from and in particular

Re: Use the replace task to insert line numbers and file names?

2004-11-04 Thread Stefan Bodewig
On Thu, 4 Nov 2004, Keith Robertson <[EMAIL PROTECTED]> wrote: > Is it possible to use the replace task to scan > sourcecode for tokens and then replace them with the > line number of that token in its respective file? No. > Does anyone have any thoughts on how I might do this? You could write

RE: How do I execute a sudo ssh command?

2004-11-04 Thread Anderson, Rob (Global Trade)
If there is a security policy in place that prevents you from running sudo commands without a password, then I would suggest changing the policy, rather than going with the option below. Setting the setuid bit is probably more of a securty risk than running a sudo command without a password. Of

RE: How do I execute a sudo ssh command?

2004-11-04 Thread Anderson, Rob (Global Trade)
> > Is that really the only way. I find it hard to believe that > there is no > other way to achieve this. > Unfortunetely it is not possible for me to configure sudo to > allow me to run > commands without entering the password. Why not? -

RE: RegEx patterns

2004-11-04 Thread Dominique Devienne
> From: Jeffrey Bacon [mailto:[EMAIL PROTECTED] > > any ideas on getting regular expression parsing in the patterns Ant uses > for things like FileSets? Is this a planned enhancement and is anyone > interested in that feature? Not planned, no. Most people are good with / + selectors. If you wan

RegEx patterns

2004-11-04 Thread Jeffrey Bacon
any ideas on getting regular expression parsing in the patterns Ant uses for things like FileSets? Is this a planned enhancement and is anyone interested in that feature? -- Jeffrey Bacon [EMAIL PROTECTED] Creative Developer http://www.magmic.com

Use the replace task to insert line numbers and file names?

2004-11-04 Thread Keith Robertson
Is it possible to use the replace task to scan sourcecode for tokens and then replace them with the line number of that token in its respective file? I've looked at ant's docs and was hoping to see something like an environment variable for the line number and perhaps the file name of the current

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* w

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 Ivan Ivanov
--- Stefan Bodewig <[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. Well, Stefan, having in mind your remark, the original requestor has the following "dirty" solution simply unjar

custom task extending MatchingTask

2004-11-04 Thread Mark Lybarger
i've got a custom task that is currently extending the MatchingTask. this task generates some source code based on an xml file. my trouble is that it generates the source code every time, even when the base xml file hasn't been changed since the generated source files. does anyone know of a

Re: [signjar] prevent double signing

2004-11-04 Thread Stefan Bodewig
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 placeholder here) inside of the META-INF

Re: [signjar] prevent double signing

2004-11-04 Thread Ivan Ivanov
Helo Tarlika, --- T E Schmitz <[EMAIL PROTECTED]> 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" > > For a signed jar, jar

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.sun.com/j2se/1.4.2/relnotes.html#jars

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 option. When run o

Re: nested variable expansion in property file

2004-11-04 Thread Sven Efftinge
Is there a way to let ant resolve nested properties in command line properties? when we use the -propertyfile Option with a file like this var1=test var2=${var1}/test2 the nested property in var2 will not be resolved. Is there a way to enable this? regards, Sven uli wrote: hello, i'm using a glob

Re: [signjar] prevent double signing

2004-11-04 Thread Ivan Ivanov
--- 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 option. When run on signed jar: jarsigner

Re: [signjar] prevent double signing

2004-11-04 Thread Ivan Ivanov
--- T E Schmitz <[EMAIL PROTECTED]> wrote: > Hello Ivan, > Thank you for your help. > > > Touch and the script below worked a treat! > Maybe we should also mention for people searching > the archive that the > following libraries need to be in Ant's classpath: > > Jakarta BSF 2.3.0 > Rhino 1.5

Re: [signjar] prevent double signing

2004-11-04 Thread T E Schmitz
Hello Ivan, Thank you for your help. Ivan Ivanov wrote: I should correct myself a little. There is no neede to parse last after you retrieve it as long, because task has millis attribute. You can use it like this Touch and the script below worked a treat! Maybe we should also mention for people s

Re: immutable property

2004-11-04 Thread Erik Hatcher
Or, and I think even cleaner - put preparation stuff outside (and above for clarity) any targets. In Ant 1.6, anything can be outside of , not just as before. Erik On Nov 3, 2004, at 8:29 PM, Bill Rich wrote: From the output shown it looks to me like CopyBRBuildArtifacts ran before pr