ssh task doesn't have such an attribute. You either have to work with a
combination of Ant and Expect or get your Sysadmin to grant you sudoless
access like I did.
Original Message Follows
From: "Venkatesh Vijayakumar04" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: "Ant Users Li
Hi all
How to pass sudo command with password in sshexec.
after executing the above command
sudo su...it will be prompted for password.
I have to give password after this how do I give?
How do sshexec command attribute accept password like
this...
Thanks in advanc
Thank you Rob. That solved it!
-Sunil
From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List"
To: "Ant Users List"
Subject: RE: Dynamic references to properties files
Date: Mon, 22 May 2006 11:06:19 -0700
No. Not the case. I believe you are confused. You can set a
Hello Mohan,
yes, this is possible.
Please read the manual, have a look at the condition task, this is one
way of setting properties based on a condition.
The condition can be that two strings are equal.
Regards,
Antoine
Guttula, Mohan wrote:
> Hello All,
>
> I have some properties that I'm ini
This was discussed earlier this week. I will paste my comments from
that conversation here. Although my comments are not specific to your
needs I think they will help you figure out what needs to be done. In
your case you would use the input to get the value of ${env} rather than
requiring it on t
Hello All,
I have some properties that I'm initilizing by using task in
some targets. I want to dynamically initialize the value of some other
property inside other target based on the values from other targets. Is
this possible?
Thanks,
Mohan
**
>Yes,
>it is painful!
I was hidden
There is no hint in the manual of taskdef [1], typedef [2] or antlib
[3].
I'll add a note there ...
>I would rather do something like:
>
>
>
>Where example.jar contains a manifest entry like:
>
>ant-prefix: example
>example-antlib: a/b/c/antlib.xml
That
Yes,
it is painful!
It is a pity that we have to use xmlns for namespace resolution of
task/type names.
I would rather do something like:
Where example.jar contains a manifest entry like:
ant-prefix: example
example-antlib: a/b/c/antlib.xml
Peter
On 5/23/06, [EMAIL PROTECTED] <[EMAIL P
Depends on your requirement .
1. Load (additionally) different sets if resources are available
...
"file-does-not-exist" is an empty properties file, so loading that doesnt throw
an exception.
Could be made easier
2
Hello
Jan I could do it.
Thanx for your timely help.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:50 PM
To: user@ant.apache.org
Subject: AW: Switch Case equivalent of ant
>>Can anybody tell me the switch case equival
Jan: your solution is cool :)
But there is one moment - that solution is useful when ONE file must be loaded,
if anybody need to load two or more
files with properties - I don't see other solutions, than use or play
with 's ( I hate copy/paste :) )
Anybody here knows solution for loading MANY
Antoine Levy-Lambert wrote:
Hello Res,
I think that you are doing the right thing. More exactly, I am not sure
that *the* best practice in this domain exist. As long as you have a
clear policy and you can explain it to all the stakeholders in
your development community, things are OK.
You menti
Jan:
Sorry, I see your point...he could define the properties in a property
file and do as you list... From his email I took it literally - meaning
he wanted to set the property values in his build.xml. Your solution is
a very clean and elegant solution - I like it :)
[EMAIL PROTECTED]
Another solution is try to save properties into *.properties or *.xml file(s) -
and load that file(s) with or tasks (this is ant core
tasks).
Main problem is to load right file(s).
That can be do in two ways :
0. the simplest solution is use task from ant-contrib package, like this :
>The only problem is he stated setting multiple
>properties...not a single one
Where is the problem? You can define multiple properties in the
property-file.
Jan
>>
>>
>>
>>
-
To unsubscribe, e-mail: [EMAIL P
The only problem is he stated setting multiple properties...not a single
one
Of course, I just chuckled to myself as I had forgotten the else
attribute on condition...
[EMAIL PROTECTED] wrote:
Jan
-Ursprüngliche Nachricht-
Von: Mikael Petterson (KI/EAB) [mailto:[
Mikael, if you use 1.6.* ant branch - you can also look ant-contrib library :
http://ant-contrib.sourceforge.net/ - (URL may be wrong - sorry if it's true :)
)
If that package you get variable or var task - that task can overwrite and
unset ant properties.
Also you get some useful stuff like i
Well you could certainly use targets with the if/unless attributes...
For instance:
Personally, ant contrib has an task that might feel more natural so
you don't have to use 's in this way. I am finding more and
more I rely on ant contrib. The script would might look
Jan
>-Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 23. Mai 2006 12:23
>An: Ant Users List
>Betreff: How to set properties when property is set
>
>Hi,
>
>I have a property that checks if a certain directory exists.
>If
Hi,
I have a property that checks if a certain directory exists. If that
property, gen.dir.present, is true then
I need to set a bunch of properties. If false I set them to other
values. Is there a
Smooth way to do this.
Cheers,
//mikael
>>Can anybody tell me the switch case equivalent of ANT
>>Where I can select according to case number I give as i/p from user.
What do you want to switch? You could load a different set of properties
with
You could use different targets with
or a set of if/unless/depends clauses on the
Dear,
I try to validate (only the lenient testing) all our struts configs and ant
responds : "Could not validate document"
Meanwhile, I can validate the document in various XML tools (Cooktop, IE,
Firefox).
Encoding is OK.
Same problem if I define the ...
I also try various locations for the pu
I nedd to rename files with the ' character to be able to be used in a
xml file.
I suppose that the good way is to use the move target with a regexp
mapper, but I cant find how to exactly use it (I'm not a regexp man...)
Eg
My'file'given in input.xmk --> My_file_given in input.xmk
Help will be
23 matches
Mail list logo