Re: How do I execute a sudo ssh command?

2004-11-03 Thread Alexey N. Solofnenko
There are also other ways: * set setuid bit on executable you want to execute under different credentials; * execute ssh [EMAIL PROTECTED] and copy authorized keys from your account into that user account - in that case ssh will not ask for a password. - Alexey. Colin Harris wrote:

Re: How do I execute a sudo ssh command?

2004-11-03 Thread Colin Harris
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. col. - Original Message - From: "Anderson, Rob (Global Trade)" <[EMAIL

RE: immutable property

2004-11-03 Thread Bill Rich
cal.dist} [echo] CopyBRBuildArtifacts FTSTAMP: ${FTSTAMP} prepare: [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612 [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612\brtestlabel-20041103-1612 [echo] Prepare local.dist: d:\br_builds\testlabel-20041103-1612\brt

Re: immutable property

2004-11-03 Thread Wascally Wabbit
> > As per ANT output: > > CopyBRBuildArtifacts: > > [echo] CopyBRBuildArtifacts local.dist: ${local.dist} > > [echo] CopyBRBuildArtifacts FTSTAMP: ${FTSTAMP} > > prepare: > > [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612 > >

Re: immutable property

2004-11-03 Thread Alexey N. Solofnenko
I think you execute the targets in the opposite order. Please add dependency on "prepare" in CopyBRBuildArtifacts target. - Alexey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: immutable property

2004-11-03 Thread Alexey N. Solofnenko
It is incorrect. Properties exist only within a scope of the current project (, , and others create new subprojects). - Alexey. Kris Read wrote: Properties only exist within the scope of the parent tag (in this case in the target you declared it in). You have to explicitly pass it to a new targe

Re: immutable property

2004-11-03 Thread Kris Read
t; > CopyBRBuildArtifacts: > > [echo] CopyBRBuildArtifacts local.dist: ${local.dist} > > [echo] CopyBRBuildArtifacts FTSTAMP: ${FTSTAMP} > > prepare: > > [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612 > > [mkdir] Created dir: >

RE: getting tag from CVS for use in Ant

2004-11-03 Thread Dominique Devienne
> From: Alison Monteith [mailto:[EMAIL PROTECTED] > As I said earlier, this works quite well for me, but some of the > developers are complaining about the error message when they try to > build on the HEAD branch. Is there any way around this? Ie. something > equivalent to if [ ! -d CVS/Tag ] ?

RE: getting tag from CVS for use in Ant

2004-11-03 Thread Alison Monteith
Hi Dominique, As I said earlier, this works quite well for me, but some of the developers are complaining about the error message when they try to build on the HEAD branch. Is there any way around this? Ie. something equivalent to if [ ! -d CVS/Tag ] ? I've been searching the ant manual and can

immutable property

2004-11-03 Thread Zafarano, Marcus
[echo] CopyBRBuildArtifacts local.dist: ${local.dist} [echo] CopyBRBuildArtifacts FTSTAMP: ${FTSTAMP} prepare: [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612 [mkdir] Created dir: D:\br_builds\testlabel-20041103-1612\brtestlabel-20041103-1612 [echo] Prepare local

RE: junit testing question

2004-11-03 Thread Wendy Smoak
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Prior to using ant, our code base was written to use a > TestSuite(xxx.class) > And we ran them via a script like so: > java junit.textui.TestRunner classname > Can I still use these with ant? or do I need to rewrite the tests? I'm not entirely s

Recall:

2004-11-03 Thread Faist, Jeff
Faist, Jeff would like to recall the message, "".

RE: zip instead of war

2004-11-03 Thread Wendy Smoak
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Should I create the above structure before I compile? and > then put the compile there. I am trying to come up with a > workflow and could use a hand from someone who has possibly > been through this: That's what works for me, though I do one a

junit testing question

2004-11-03 Thread Scott Purcell
I have got some textbook example of working with simple classes that implement TestCase. But my question is as follows: Prior to using ant, our code base was written to use a TestSuite(xxx.class) And we ran them via a script like so: java junit.textui.TestRunner classname Can I still use thes

Re: using mappers

2004-11-03 Thread Matt Benson
--- D Sledge <[EMAIL PROTECTED]> wrote: > Found the culprit! Don't use the "dir" and "file" > attributes simultaneously in the > element. > > > > Change it to: > > > Actually, would have been the correct way historically, but the file attribute was added fairly recently to sim

Re: method not found when running ant

2004-11-03 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > It turns out there was a OS bundled version of ant. > I removed it and my > diagnostics test is correct now. My error is > sourcejammer related now I > believe. > > this is the output from the diagnostics now and the > attempted ant task. If you are now at least

Re: method not found when running ant

2004-11-03 Thread Brian . Allen
It turns out there was a OS bundled version of ant. I removed it and my diagnostics test is correct now. My error is sourcejammer related now I believe. this is the output from the diagnostics now and the attempted ant task. [EMAIL PROTECTED] sourcejammer]$ ant -diagnostics --- Ant diagnost

Re: method not found when running ant

2004-11-03 Thread Brian . Allen
I installed ant myself. the version was 1.6.2 but when I run diagnostics, I get the following version output: [EMAIL PROTECTED] sourcejammer]$ ant -diagnostics --- Ant diagnostics report --- Apache Ant version 1.5.2-20 compiled on September 25 2003 [EMAIL PROTECTED] sourcejammer]$ which

Re: method not found when running ant

2004-11-03 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > The only way I was able to get ant to stop > complaining about those missing > classes was to place the fully qualified name > (including the jar file > name) in the $CLASSPATH. Then there is something abnormal going on, especially given that the CLASSPATH you show

RE: getting tag from CVS for use in Ant

2004-11-03 Thread Alison Monteith
This is exactly what I need. Thanks! -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 6:48 PM To: Ant Users List Subject: RE: getting tag from CVS for use in Ant This is how I extract a CVS branch sticky tag. If you use the HEAD bra

Re: method not found when running ant

2004-11-03 Thread Brian . Allen
The only way I was able to get ant to stop complaining about those missing classes was to place the fully qualified name (including the jar file name) in the $CLASSPATH. Once I did that, I get the following error which states that com.sun.net.ssl.internal.ssl.Provider is not found. This class i

Re: method not found when running ant

2004-11-03 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] sourcejammer]$ echo $JAVA_HOME > /java/bin Here is one problem. If you want Ant to pick up /java/bin/java as its Java executable, JAVA_HOME is /java. > [EMAIL PROTECTED] sourcejammer]$ echo $ANT_HOME > /usr/local/ant Not sure why this didn't show

RE: Infrastructure Configuration Management

2004-11-03 Thread Anderson, Rob (Global Trade)
See my comments below... -Rob A > -Original Message- > From: Bhadra, Jatin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 03, 2004 5:21 AM > To: '[EMAIL PROTECTED]' > Subject: Infrastructure Configuration Management > > > All, > > This email might be off topic as it is not

Re: method not found when running ant

2004-11-03 Thread Brian . Allen
I blew away the $CLASSPATH settings and got an error because some of the jar files I needed were in there. What I am puzzled about is even though I have the JAVA_HOME and ANT_HOME set in my system, when I do an ant -diagnostics, they dont appear to be set within ANT's environment. See below: [

Re: method not found when running ant

2004-11-03 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > I am attempting to run ant. When it fails,I get a > message that says: > "method > java.util.prefs.Preferences.userNodeForPackage was > not found". I > see that this method is part of a class which is > part of the standard > j2sdk. I have my CLASSPATH set accord

zip instead of war

2004-11-03 Thread Scott Purcell
Hello, I am trying to create a war file to deploy on my servlet container. I have used the command prior, but now would like to use command. My targets involve the following: 1) info - gather property values, etc. 2) checkout - pull classes and libs from cvs using 3) compile - javac the abov

method not found when running ant

2004-11-03 Thread Brian . Allen
I am attempting to run ant. When it fails,I get a message that says: "method java.util.prefs.Preferences.userNodeForPackage was not found". I see that this method is part of a class which is part of the standard j2sdk. I have my CLASSPATH set accordingly with :/java (java directory). Is the

Re: [signjar] prevent double signing

2004-11-03 Thread Ivan Ivanov
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 --- Ivan Ivanov <[EMAIL PROTECTED]> wrote: > Hi, > to get the file modified date you can use something > like this: > > > > >

Re: [signjar] prevent double signing

2004-11-03 Thread Ivan Ivanov
Hi, to get the file modified date you can use something like this: buildfile is last modified at ${buildfile.last} The above build script defines getlm script def which retrives the modification date via javascript ans sets a new prope

[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

Infrastructure Configuration Management

2004-11-03 Thread Bhadra, Jatin
All, This email might be off topic as it is not specific to ANT so apologies for that and also for length of the email. I have been assigned a task to propose tools, solutions and processes for Infrastructure Configuration Management. We have got a decent Software Config

RE: Ant Get FileSize using exec?

2004-11-03 Thread Gareth Kelly
But how to call this via ant? -Original Message- From: Mark Lybarger [mailto:[EMAIL PROTECTED] Sent: 02 November 2004 12:53 To: Ant Users List Subject: RE: Ant Get FileSize using exec? RELEASE_FILE_SIZE=$(ls -l /path/to/file/filename|(read perms num_hd_links user group size rest; echo $s

Re: AntFlow-1.0rc1 released

2004-11-03 Thread Antoine Levy-Lambert
Sounds interesting. Cheers, Antoine > AntFlow is an open source tool for the automation and scheduling of > file based system tasks, including those with complex dependencies and > workflow logic. AntFlow uses ant tasks for it's verbs and adds periodic > and hot folder triggered invocation. Ch