Re: Feature Requests for Ant?

2004-10-15 Thread Dale Anson
The best way is to submit a feature request through Ant's bugzilla. There is a link on the front page of the Ant site. Then follow up on the Ant developer list, and if you bug people enough, it'll get done. You'll get a quicker response if you can attach a patch to the enhancement request that f

Re: CopyStreamException on FTP task

2004-10-15 Thread rob
On Thu, Oct 14, 2004 at 04:45:52PM +0530, Vinay Vijayan wrote: > Hi Robert, > > If possible, can you try same thing i,e transfer files to a another > server(machine with ftp service enable) . That way it would confirm > whether the problem is with ant FTP task or the machine u r trying to > connec

RE: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Bill Rich
Here is a real example of what Dominique is referring to. L10N project for a product. This is intended to be imported into a project for a product or part of a product. The targets in this file will be accessible via the product project. The product project will contain the properties that

Re: Converting first char in a string to lower case

2004-10-15 Thread Martin Gainty
Ben You must speaking of changing the value of a property which by design are 'immutable' Have you look at ant-contrib variable task? http://ant-contrib.sourceforge.net/tasks/variable_task.html HTH, Martin- - Original Message - From: "Ben Gill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Feature Requests for Ant?

2004-10-15 Thread Rhino
Can anyone tell me how to make feature requests for Ant tasks?   I've been using the optional task for the last couple of hours and I have two requests, one minor and one major. Unfortunately, I haven't been able to find anything in the Ant Manual describing how to ask for new features in op

Re: Calling another build without failing on error

2004-10-15 Thread Matt Benson
Depending on what you are doing I would suggest using which has a failonerror attribute, or wrapping your invocation in an ant-contrib ... HTH, Matt --- Kris Read <[EMAIL PROTECTED]> wrote: > Hi! > > I have not been able to come up with a solution to > this problem. > Perhaps someone can hel

Calling another build without failing on error

2004-10-15 Thread Kris Read
Hi! I have not been able to come up with a solution to this problem. Perhaps someone can help? I want to call an ant target in an external build file. I can do this now using However... If the external target fails, I do not want the calling target to fail also. I would like to store the pa

RE: pathconvert with regexpmapper

2004-10-15 Thread Matt Benson
Upgrade to Ant 1.6.2. ;) -Matt --- "Murray, Mike" <[EMAIL PROTECTED]> wrote: > Thanks for the alternative expression, but my > problem is that I can't figure how to get > pathconvert to accept a regexp mapper. > > BUILD FAILED > The type doesn't support the nested > "mapper" element. > > ---

RE: pathconvert with regexpmapper

2004-10-15 Thread Murray, Mike
Thanks for the alternative expression, but my problem is that I can't figure how to get pathconvert to accept a regexp mapper. BUILD FAILED The type doesn't support the nested "mapper" element. -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004

Re: pathconvert with regexpmapper

2004-10-15 Thread Matt Benson
Mike: try HTH, Matt --- "Murray, Mike" <[EMAIL PROTECTED]> wrote: > Does anyone have an example of acceptable syntax for > using a regexp mapper in a pathconvert? > > I've tried many ways, but none work. The > documentation says more complex nested mappers are > supported. > http://ant.a

pathconvert with regexpmapper

2004-10-15 Thread Murray, Mike
Does anyone have an example of acceptable syntax for using a regexp mapper in a pathconvert? I've tried many ways, but none work. The documentation says more complex nested mappers are supported. http://ant.apache.org/manual/CoreTasks/pathconvert.html Thanks, Mike

Re: winning the case for ANT

2004-10-15 Thread Laconia Data Systems
Careful Charles The one thing I learned in this biz The more incompetent the person is the more "politically adept" they become (as a matter of survival) and as a side effect their political adeptness allows them to achieve much higher rank (managers/supervisors) than us (throw away day laborer peo

Re: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Robert Dockins
Erskine, Chris wrote: So, if I understand you right, you are saying that because the build.xml file was not read from the file system, I will have problems assuming where the other files like .properties files will be? I guess that I would have the same types of issues on things like where the sou

ANT Checksum

2004-10-15 Thread Gareth Kelly
Hello, I can use checksum to compare 2 same ".java" files in different directories, and they match. But if I create 2 jar files containing the same ".java" file in different directory, the checksums are different. Can someone tell me why? What I am trying to do is set up an environment where someo

RE: winning the case for ANT

2004-10-15 Thread Jeff Davidson
I would also point out that Ant is not just a non-proprietary *Java* build tool. It is a non-proprietary built tool, period. I'm using Cruise Control and Ant to build Delphi and C++ binaries and to package those binaries into an installer with NSIS. In fact, I currently have no Java in my projec

RE: winning the case for ANT

2004-10-15 Thread Robert Barrett
As a development engineer for some 24 years now, I have used many different build tools. "make" serves me very well as does "ant". As someone stated earlier in this thread, there are MANY ways to build software and automated "build and deploy" have been around for 20+ years. None of these concepts

Re: winning the case for ANT

2004-10-15 Thread Alexey N. Solofnenko
What do they propose? What type of projects are you going to build? Even though I am using ANT everywhere, other people successfully use VisualStudio to build their projects. Maybe your coworkers' ideas have merits. Long time ago we tried to use Make to build our projects and soon we hit a com

RE: winning the case for ANT

2004-10-15 Thread Charles Hudak
If your teammate is against the use of Ant, their competence is highly suspect. -Original Message- From: Andreas Bothner [ MTN - Innovation Centre ] [mailto:[EMAIL PROTECTED] Sent: Fri 10/15/2004 4:03 AM To: [EMAIL PROTECTED] Cc: Subject:winning the case for ANT -

RE: winning the case for ANT

2004-10-15 Thread Zafarano, Marcus
What resources do you have in mind? I am the Deployment and Configuration Manager, and might be able to send you some white papers, documents and other information about using ANT for build and deployment. Does he give any arguments on why he feels that xml should not be used for doing buil

RE: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Erskine, Chris
So, if I understand you right, you are saying that because the build.xml file was not read from the file system, I will have problems assuming where the other files like .properties files will be? I guess that I would have the same types of issues on things like where the source files are located

RE: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Dominique Devienne
> From: Robert Dockins [mailto:[EMAIL PROTECTED] > > Until you've got that working, don't boast too quickly ;-) --DD > > Fair enough. What I *do* have working, is loading a build script from a > database text field, and running the build in a base directory that is > determined by other informati

Re: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Robert Dockins
From: Robert Dockins [mailto:[EMAIL PROTECTED] It seems to me that the restriction is mostly in people's heads :) Hmmm... The fact is that no build uses anything else than File-based build files at this point. Just try to use a resource from an imported build 'stream', like for example a .propert

Re: Perform different target depending on *value* of property

2004-10-15 Thread Rhino
I came up with a slightly different solution before I saw your note, Jan, so I'm including mine here too for the sake of the archives. I *love* these solutions: they are so much more elegant than any other approaches I have seen to this problem. They also allow the property to have as many values

RE: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Dominique Devienne
> -Original Message- > From: Robert Dockins [mailto:[EMAIL PROTECTED] > It seems to me that the restriction is mostly in people's heads :) Hmmm... The fact is that no build uses anything else than File-based build files at this point. Just try to use a resource from an imported build 'stre

soscheckout works for one file, but not whole project

2004-10-15 Thread Gareth Kelly
Hello, Managed to get the soscmd working from Solaris, connecting to VSS on Windows XP. If I have a project in VSS with one file, I can check out the project fine. But if it has two files, I get an error trying to get the second file: [soscheckout] SourceOffSite Command Line Client: Standard Edit

AW: Perform different target depending on *value* of property

2004-10-15 Thread Jan . Materne
BTW, that is the same way as you can load platform dependend properties Jan > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 15. Oktober 2004 15:55 > An: [EMAIL PROTECTED] > Betreff: AW: Perform different target depending on *value

AW: Perform different target depending on *value* of property

2004-10-15 Thread Jan . Materne
Works. Had done that some times before :) FOO upload BAR upload TEST upload Jan > -Ursprüngliche Nachricht- > Von: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 15. Oktober 2004 15:32 > An: Ant Users List > Be

RE: winning the case for ANT

2004-10-15 Thread Andreas Bothner [ MTN - Innovation Centre ]
Thanks Doug... this will allow me to put the facts on the table. -Original Message- From: Daniels, Doug [mailto:[EMAIL PROTECTED] Sent: Friday, 15 October 2004 13:39 To: Ant Users List Subject: RE: winning the case for ANT You can do any software task a million different ways, but using

RE: Perform different target depending on *value* of property

2004-10-15 Thread RADEMAKERS Tanguy
I think he means you would have: ... ... ... and would call the appropriate one (and only that one). Worth a try - if it works, it's brilliant. /t >-Original Message- >From: Rhino [mailto:[EMAIL PROTECTED] >Sent: Friday, October 15, 2004 3:26 PM >To: Ant Users List >Subject: Re: P

Re: Perform different target depending on *value* of property

2004-10-15 Thread Rhino
I'm not sure how to work your suggestion into my script. Let's say I have three different values of 'servername', "foo", "bar", and "test", and three targets, "foo-upload", "bar-upload", and "test-upload". That would suggest that my script should say: How would I ensure that if the servername

RE: Perform different target depending on *value* of property

2004-10-15 Thread Mark Lybarger
You can look into ant's script task to facilitate this type of "complicated" logic. In the javascript (if you choose) you can check values of properties and then choose the route of execution. There's probably ant contrib tasks also for handling if conditions based on the value of a property.

AW: Perform different target depending on *value* of property

2004-10-15 Thread Jan . Materne
What´s about Jan -Ursprüngliche Nachricht- Von: Rhino [mailto:[EMAIL PROTECTED] Gesendet am: Freitag, 15. Oktober 2004 15:09 An: ant-user Betreff: Perform different target depending on *value* of property I want to revise an existing script so that it does a different target for e

Perform different target depending on *value* of property

2004-10-15 Thread Rhino
I want to revise an existing script so that it does a different target for each of several different *values* of a property.   For example, if the property, which is named 'server' has a value of "foo", I want the script to execute a target called "foo-upload". If the value of 'server' is "ba

Fw:

2004-10-15 Thread Martin Gainty
Andreas Pre 9/11 was a time when a product which demonstrated more functionality would gain you a contract (and money) I may be old-fashioned but it is my contention that a little competition (rivalry) can bring out the best in a worker 1)Develop functionality that your opponent cannot deve

RE: winning the case for ANT

2004-10-15 Thread Erskine, Chris
XML is just a standard way of formatting data. In this case, the lines of data are script commands. You could define this format as a scripting language. Each tool has its own formatting syntax. If you look at Make, it has its own format that has the problem of the first character on a line hav

Re: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Robert Dockins
I've taken a stab at doing this. Basicly I've sublcassed ProjectHelper2 to add support for InputStream's and InputSource's (code below, its mostly a cut-n-paste job from ProjectHelper2). Everything appears to just work. If you don't use Project.setBaseDir() then it appears to simply use PWD;

RE: winning the case for ANT

2004-10-15 Thread Daniels, Doug
You can do any software task a million different ways, but using the right tool can speed up development and maintenance time. Ant is developed specifically for automated builds, deployment and unit testing. Also to get everything you can out of Ant you really do need to use the external tools th

winning the case for ANT

2004-10-15 Thread Andreas Bothner [ MTN - Innovation Centre ]
Hi all,   I am working in a team of developers, where one developer is completely against the use of ANT as a build script as he feels that xml should not be used as a scripting tool.  I would like to create an environment which does automated nightly builds, deployments and execution of

Re: AW: Converting first char in a string to lower case

2004-10-15 Thread Ivan Ivanov
--- [EMAIL PROTECTED] wrote: > Thanks for pointing that out :) > Library dependency to "old" rhino is described in > the manual. > > Jan And that is why I could not run it :)) and I thought the fault was smth in my environment. > > > -Ursprüngliche Nachricht- > > Von: Ben Gill [mailto:

AW: Converting first char in a string to lower case

2004-10-15 Thread Jan . Materne
Thanks for pointing that out :) Library dependency to "old" rhino is described in the manual. Jan > -Ursprüngliche Nachricht- > Von: Ben Gill [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 15. Oktober 2004 11:59 > An: Ant Users List > Betreff: RE: Converting first char in a string to l

Re: Status of implementation

2004-10-15 Thread Peter Reilly
It is currently been discussed on the ant dev list. Peter Johan Vromans CPWR wrote: Hi all, Is there any progress on the proposal/patch? (E.g., http://www.mail-archive.com/[EMAIL PROTECTED]/msg14426.html) -- Johan - To unsubscribe

Re: AW: parsing ant build scripts from unusual sources

2004-10-15 Thread Peter Reilly
[EMAIL PROTECTED] wrote: The problem lies in the fact that so much revolves around the build file's basedir, which can only be a File in Ant as of today. Even importing a build file from a URL or resources didn't reach consensus, for the same reasons. It seems that Ant is pretty much strictly file

RE: Converting first char in a string to lower case

2004-10-15 Thread Ben Gill
Excellent, Thanks Ivan, this works a treat!! I had to use BSF 2.3.0 and the js.jar from Rhino15R3.zip (later versions don't work!) project.setNewProperty(attributes.get("property"), attributes.get("value").toLowerCase());

Re: Converting first char in a string to lower case

2004-10-15 Thread Ivan Ivanov
Hello, I think that this is possible

Converting first char in a string to lower case

2004-10-15 Thread Ben Gill
Hi, I have a string 'Foo' that I want to change to 'foo'. Is there any way of doing this in ant? I have looked at the regex stuff but I don't think that will do the job... Does anyone have any other ideas?