Re: vs

2004-10-21 Thread Stefan Bodewig
On Thu, 21 Oct 2004, Jeff Davidson <[EMAIL PROTECTED]> wrote: > Aside from the difference that requires the dir= > attribute to be set, whereas would simply fail > (assuming "${basedir}/NOT SET" doesn't exist!), are there other > vagaries, differences, or gotchas that are good to know? Your mac

Re: auto configuration

2004-10-21 Thread Frode E. Moe
On Thu, Oct 21, 2004 at 14:57:12 -0400, Peter Wilkes wrote: > right now we have a general properties file called "program.properties" > and we have an install proceedure to change certain lines. > > we would like to set up ant persay to read in another file called > "site1.properties" read in all

AW: auto configuration

2004-10-21 Thread Jan . Materne
The immutability of properties is not done by the tasks - its coded deep in the core (Project.java). It´s a common way to use a special prop-file and load a default after that. E.g. Ant´s own buildfile: mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 22. Oktober 2004 00:35 > An: Ant

AW: Way for buildfile to verify that Ant version is 1.5.2 or grea ter ?

2004-10-21 Thread Jan . Materne
A non usual way is checking for the existing of special classes. So you 'only' have to check which classes were added in a release and you could check for them. Alternativly I can send two scriptdef´s I wrote in that area. "checkAnt" parses the ${ant.version} string and stores additional informati

RE: sshexec errors

2004-10-21 Thread EJ Ciramella
P.S. - I get no warnings when running the raw command. -Original Message- From: Charles Hudak [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 8:57 PM To: Ant Users List Subject: RE: sshexec errors The raw ssh command will usually accept new/changed host keys with a warning (in

RE: sshexec errors

2004-10-21 Thread EJ Ciramella
So what's the solution? I'm a bit baffled by this whole thing. -Original Message- From: Charles Hudak [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 8:57 PM To: Ant Users List Subject: RE: sshexec errors The raw ssh command will usually accept new/changed host keys with a wa

RE: sshexec errors

2004-10-21 Thread Charles Hudak
The raw ssh command will usually accept new/changed host keys with a warning (in my experience). The Jsch implementation doesn't do this, it uses 'StrictHostKeyChecking' by default (as per the below email), at least in the Ant task. It looks like you can run Jsch with strict host checking disabled

RE: sshexec errors

2004-10-21 Thread EJ Ciramella
the same thing I'm trying to do works when executed from the command line: ssh -t "sudo /usr/local/apache/bin/apachectl stop" so my exec task looks like: And I get this weird error. What gives? -Original Message- From: Charles Hudak [mailto:[EMAIL PROTECTED] Sent: Thursday, Oc

RE: sshexec errors

2004-10-21 Thread Charles Hudak
"The man-in-the-middle attack has also become inpossible, because the client does of course check the identity of the remote host using his host key, too. To archieve maximum security here, the client should be configured to use ``StrictHostKeyChecking''. Setting this option to ``yes'' tells the cl

sshexec errors

2004-10-21 Thread EJ Ciramella
Hello all - I'm getting a strange error with my script when I'm trying to restart apache remotely: com.jcraft.jsch.JSchException: HostKey has been changed Could anyone shed some light on this? - To unsubscribe, e-mail: [EMAIL P

Re: AW: Icons for ant tasks?

2004-10-21 Thread Dale Anson
Antelope has a few icons, but they're generic. There's a target icon and a task icon (a little wrench) that is used for all tasks, but that doesn't sound like what you're looking for. If you find some, or make some, maybe they can be added to both Antelope and Antidote. Dale > Antidote has som

Re: Problem with

2004-10-21 Thread Rhino
Sebastian, For what it's worth, I added a '-url' argument to both the Firefox and Opera tasks and all three tasks now work. (I also noticed that if I added the '-url' argument to the IE task, it DIDN'T work.) I've never heard of the '-url' flag before and it doesn't seem to be necessary when ex

Re: How to replace a token with a multiline string with property substritution?

2004-10-21 Thread Rhino
Can you provide a repeatable example showing your code, a simple version of the file that you want to edit, and the result you want? It would be a lot easier to help you then. Also, please state what version of Ant you are using. Backlevel versions of Ant may not be able to do what you want as ea

Re: Problem with

2004-10-21 Thread Rhino
Sorry? I'm not sure that I understand your point about the file:// protocol. You are right that the paths for Opera and Firefox are different than IE; I installed IE in C:\Program Files but I deliberately put Opera and Firefox in D:\Program Files because the C: drive was getting full. Rhino

Re: Problem with

2004-10-21 Thread Rhino
- Original Message - From: "Sebastian Redl" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 21, 2004 5:09 PM Subject: Re: Problem with > Rhino wrote: > > > > > I'm having problems with and would appreciate some guidance. > > > > My project involves

RE: auto configuration

2004-10-21 Thread Wascally Wabbit
At 06:29 PM 10/21/2004, you wrote: Your right that would work. I don't know if the build would fail if you try to overwrite a property. It will not. I use this "trick" all the time: loading the properties that should take highest precedence first and those that are basically fallbacks or defaults a

RE: auto configuration

2004-10-21 Thread Pascal_Lafond
Your right that would work. I don't know if the build would fail if you try to overwrite a property. I am pretty sure that if foo.dist already exists the build will fail on this next statement. That might not be the case when reading a properties file. Pascal

RE: auto configuration

2004-10-21 Thread Jeff Davidson
Would it not be possible to load the customized properties for a site, and then load the default properties after? That would allow you to take advantage of the immutability of properties instead of it being a hindrance. Here's a sample: build.xml =

Re: auto configuration

2004-10-21 Thread Pascal_Lafond
Properties in ant are immutable. If you need to change a property (which is sometimes unavoidable) you will to include the 3rd party open source antcontrib library and use the variable task. I every site needs to replace a certain set of variables maybe they don't need to be present in global pr

RE: Problem with

2004-10-21 Thread W. Sean Hennessy
Perhaps your URL is not resolving across the drive volume if it is using the file:// protocol instead of http:// protocol. Recommned an examination of the resulting ${server.webpage.URL}. Noted that the ie6.path differs in drive volume from firefox.path and opera.path. -Original Message

auto configuration

2004-10-21 Thread Peter Wilkes
hello! i just convinced my project to user ant. they think it is a great tool and we are currently trying to move all our build scripts over. i have a question however. our application only gets delivered to currently 5 locations. (it's a specialized program) and we would like to make a configu

How to replace a token with a multiline string with property substritution?

2004-10-21 Thread Alexey N. Solofnenko
It looks like I can use , but it does not seem to expand properties. What am I doing wrong? - Alexey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with

2004-10-21 Thread Sebastian Redl
Rhino wrote: I'm having problems with and would appreciate some guidance. My project involves compiling, jarring, and uploading a revised Java applet to a webpage. All of that works fine. I decided I would like to try to improve the script by adding a target that displayed the web page con

Problem with

2004-10-21 Thread Rhino
  I'm having problems with and would appreciate some guidance.   My project involves compiling, jarring, and uploading a revised Java applet to a webpage. All of that works fine.   I decided I would like to try to improve the script by adding a target that displayed the web page containing t

vs

2004-10-21 Thread Jeff Davidson
Ant-users, I've started using and and before I get too far down one path or another, I wanted to see what sort of wisdom you might impart upon me. Take, for example, the following two *def's:

RE: [Ant-Contrib]PropertyRegex task

2004-10-21 Thread Dominique Devienne
> From: Marcel Stör [mailto:[EMAIL PROTECTED] > > [EMAIL PROTECTED] wrote: > > not tried: > > I did. Works fine. Thanks a lot. > > > match: (.*)\.(.*)\.(.*)\.(.*) > > select: \1 my > > \2 property > > \3 56238912 > > \4 1285 > > but without check for digits or length. Not tried either, but this

Re:

2004-10-21 Thread Antoine Levy-Lambert
Hello Vijay, this sounds like a bug. Have a look at http://issues.apache.org/bugzilla to see whether someone has reported it already. Cheers, Antoine Vijay Balakrishnan wrote: Hi, I was trying to run the How can I handle spaces in the package name while using the cvs ant taks ? I have defined a

Way for buildfile to verify that Ant version is 1.5.2 or greater ?

2004-10-21 Thread Rich Wagner
I'm at a loss for implementing something I'd like, so maybe someone else knows of a straightforward way of accomplishing it... Where I work, we have lots of developers using shared Ant buildfiles and (for details not worth getting into here) builds will only work if users run "ant" over those b

RE: Why did I wait so long?

2004-10-21 Thread Dick, Brian E.
A good of usage of presetdefs that I saw (where?) defined a task differently depending on platform (windows vs. unix). Then all references to the preset task were platform independent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 2:

Re: Why did I wait so long?

2004-10-21 Thread jfuller
"Jeff Davidson" <[EMAIL PROTECTED]> wrote .. > Ant-users, > > I have just gotten around to investigating . Oh, happy days > are here again! If only I had looked at this sooner. yes macrodefs are usually quicker as well! I love em...if such a thing can occur between man and a computer scripting

Why did I wait so long?

2004-10-21 Thread Jeff Davidson
Ant-users, I have just gotten around to investigating . Oh, happy days are here again! If only I had looked at this sooner. Now to get back to wrapping up all my blocks of repeated code... Cheers, ~Jeff D. This electronic message transmission, including attachments, is for the exclusive

user@ant.apache.org

2004-10-21 Thread Vijay Balakrishnan
Hi, I was trying to run the at the top of the build file and I use this in the ant task as package="${cvs.package}" I have tried the following to no avail:" \'TCWeb Test\'" I am able to run it from the command line by using "TCWeb Test" for the package when doing a cvs checkout command. Th

RE: troubles

2004-10-21 Thread Matt Benson
Oh, yeah... :) --- Jeff Davidson <[EMAIL PROTECTED]> wrote: > Argh! Thanks Matt. The resolveexecutable="true" > attribute was all I > needed. > > Humbly, > ~Jeff > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: October 21, 2004 09:30 > To: Ant Users List

RE: troubles

2004-10-21 Thread Jeff Davidson
Argh! Thanks Matt. The resolveexecutable="true" attribute was all I needed. Humbly, ~Jeff -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: October 21, 2004 09:30 To: Ant Users List Subject: Re: troubles --- Jeff Davidson <[EMAIL PROTECTED]> wrote: > I'm having a

Re: troubles

2004-10-21 Thread Matt Benson
--- Jeff Davidson <[EMAIL PROTECTED]> wrote: > I'm having a most puzzling problem with the > task. What I am > failing to understand is: What directory is used as > the base for > executing a command if the executable is specified > relatively instead of > absolutely? Without rehashing your enti

troubles

2004-10-21 Thread Jeff Davidson
Ant-users, I'm having a most puzzling problem with the task. What I am failing to understand is: What directory is used as the base for executing a command if the executable is specified relatively instead of absolutely? Take, for example, this very simple .. example:

AW: Icons for ant tasks?

2004-10-21 Thread Jan . Materne
Antidote has some icons on [1], but it doesnt seem to be what you want ... Dont know if Antelepe has some icons. But if you want to provide a set, we can point to that :) Jan [1] http://cvs.apache.org/viewcvs.cgi/ant-antidote/src/java/org/apache/tools/ant /gui/resources/ > -Ursprüngliche

Icons for ant tasks?

2004-10-21 Thread Patrick Surry
Does anyone know of a collection of icons corresponding to the standard ant tasks? I thought maybe antelope or antidote might have them but it appears not. Thanks, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition