AW: property validation

2004-10-27 Thread Jan . Materne
If you´re working on >JDK1.4, you simply use the methods of String for checking. Jan > -Ursprüngliche Nachricht- > Von: Mark Lybarger [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 27. Oktober 2004 13:55 > An: Ant Users List > Betreff: RE: property validation > > i'm trying to find i

AW: Simple manipulation of a property value

2004-10-27 Thread Jan . Materne
1. Use AntContrib and you´ll depend on ant-contrib.jar 2. use

AW: Simple manipulation of a property value

2004-10-27 Thread Jan . Materne
AntContribs . Jan > -Ursprüngliche Nachricht- > Von: Kris Read [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 27. Oktober 2004 19:49 > An: Ant Users List > Betreff: Re: Simple manipulation of a property value > > This is a hack, but: > > PropertyFile to persist the property to a fi

AW: optional tasks

2004-10-27 Thread Jan . Materne
Since Ant 1.6 all JARs from ${user.home}/.ant/lib are included and you can specify with -lib option additional directories. So maybe you would path the start script with an additional -lib company/share/ant/add-libs Jan > -Ursprüngliche Nachricht- > Von: Barnes, Michael [mailto:[EMAIL

Statistics

2004-10-27 Thread Jan . Materne
Got that link from Forrest-List, but shows also some statistics about Ant´s mailinglists: http://www.apache.org/~coar/mlists#ant.apache.org Jan

Re: 1.6.2 WAR/JAR Empty Directories

2004-10-27 Thread Antoine Levy-Lambert
This is a known bug of Ant 1.6.2 which is already fixed in CVS. See bugzilla bug report 30365 : http://issues.apache.org/bugzilla/show_bug.cgi?id=30365 Cheers, Antoine Urciolo, Kevin (Mission Systems) wrote: I have found an issue with the new ANT 1.6.2 version. Using the WAR or JAR task, empty d

RE: StarTeam

2004-10-27 Thread Barnes, Michael
I may be wrong, but I believe that you have to get the starteam-sdk.jar from the Borland site since I think it is licensed. Mike -Original Message- From: Zafarano, Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:28 PM To: 'Ant Users List' Subject: RE: StarTeam I loo

RE: StarTeam

2004-10-27 Thread Zafarano, Marcus
I looked on their site and did not find starteam-sdk.jar. I also installed the jdk and still not there. Does anyone have it? Z -Original Message- From: Barnes, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 1:14 PM To: 'Ant Users List' Subject: RE: StarTeam their

RE: StarTeam

2004-10-27 Thread Barnes, Michael
their is a task called stlabel. have not used it but, you may be able to use this to get the latest label and then set up some kind of property. If that does not work then , still using stlabel, you could create a custom task to do what you want. Sorry I do not have any better answers, but maybe

RE: StarTeam

2004-10-27 Thread Zafarano, Marcus
Gee, thanks. I really don't like ST. I prefer Perforce. -Original Message- From: Jeff Davidson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 12:46 PM To: 'Ant Users List' Subject: RE: StarTeam Ahhh, you want a task to return the value of the latest label from StarTeam? Th

RE: StarTeam

2004-10-27 Thread Jeff Davidson
Ahhh, you want a task to return the value of the latest label from StarTeam? That I don't know, as I'm only familiar enough with StarTeam to know that I'm happy I don't work with it anymore. ;) Sorry that I can't be of more help. ~Jeff -Original Message- From: Zafarano, Marcus [mailto:[E

RE: StarTeam

2004-10-27 Thread Zafarano, Marcus
I am sorry I did not explain myself correctly. I wanted a task to get the latest label from ST, not the files with the a certain label. Z -Original Message- From: Jeff Davidson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 12:19 PM To: 'Ant Users List' Subject: RE: StarTeam

1.6.2 WAR/JAR Empty Directories

2004-10-27 Thread Urciolo, Kevin \(Mission Systems\)
I have found an issue with the new ANT 1.6.2 version. Using the WAR or JAR task, empty directories are not created. I verified on both Windows and UNIX that 1.6.1 doesn't have this problem but 1.6.2 does. I checked the ANT bug database and found that someone submitted a bug for the same reason b

RE: StarTeam

2004-10-27 Thread Jeff Davidson
There certainly is: http://ant.apache.org/manual/OptionalTasks/starteam.html -Original Message- From: Zafarano, Marcus [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 12:10 To: '[EMAIL PROTECTED]' Subject: StarTeam Does anyone know if there is a ST task for getting files with the la

StarTeam

2004-10-27 Thread Zafarano, Marcus
Does anyone know if there is a ST task for getting files with the latest label? Thanks Z

RE: optional tasks

2004-10-27 Thread Barnes, Michael
I guess it would help if I told you all that I am managing 48+ projects and am trying to minize the impact of upgrades to any given project. Thanks Mike -Original Message- From: Mark Lybarger [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:22 PM To: Ant Users List Subject: R

RE: optional tasks

2004-10-27 Thread Mark Lybarger
i keep core optional tasks (ftp, junit) in the ant lib folder, and keep 3rd party tasks (xdoclet, cactus, castor, etc) as part of my application. > -Original Message- > From: Barnes, Michael [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 27, 2004 2:17 PM > To: '[EMAIL PROTECTED]' >

RE: Propostion for improving PropertyFileInputHandler

2004-10-27 Thread Ivan Ivanov
Hello Matt, thank you for your answer. --- Matt Benson <[EMAIL PROTECTED]> wrote: > --- RADEMAKERS Tanguy <[EMAIL PROTECTED]> > wrote: > > > Hey Matt, > > > > Thanks - i didn't know that. So now I'm a bit and I have completely forgotten about -propertyfile option and it makes PropertyFileInputH

optional tasks

2004-10-27 Thread Barnes, Michael
I have several optional tasks that I need to use from other projects. What is the recommended way to include this in the ant start up: the 2 solutions that I can think of currently is 1) copy all needed jars into the ant/lib I feel that this approach over time is harder to maintain as new libr

RE: Propostion for improving PropertyFileInputHandler

2004-10-27 Thread Matt Benson
--- RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote: > Hey Matt, > > Thanks - i didn't know that. So now I'm a bit > confused: wouldn't this obviate the need for > PropertyFileInputHandler? IMHO probably so. Definitely makes changing PropertyFileInputHandler to use Ant property as key a non-issue (

RE: Propostion for improving PropertyFileInputHandler

2004-10-27 Thread RADEMAKERS Tanguy
Hey Matt, Thanks - i didn't know that. So now I'm a bit confused: wouldn't this obviate the need for PropertyFileInputHandler? /t >-Original Message- >From: Matt Benson [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 27, 2004 7:03 PM >To: Ant Users List >Subject: RE: Propostion fo

Re: Simple manipulation of a property value

2004-10-27 Thread Kris Read
This is a hack, but: PropertyFile to persist the property to a file. Replace or ReplaceRegExp to alter the value. Then reload from the file. On Wed, 27 Oct 2004 10:04:33 -0400, Erik Hatcher <[EMAIL PROTECTED]> wrote: > On Oct 27, 2004, at 8:56 AM, Benoît Lubek wrote: > > Hi, > > > > I hav

Re: "Return values" with Ant?

2004-10-27 Thread Kris Read
Use the tasks in the antcontrib project. They have an antcall task that returns a property or set of properties. Another way is to structure your file with the 'depends' attribute. X does not execute unless Y executed. On Wed, 27 Oct 2004 18:23:01 +0200, Marcel Stör <[EMAIL PROTECTED]> wrote:

RE: Propostion for improving PropertyFileInputHandler

2004-10-27 Thread Matt Benson
--- RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote: > I agree that the property name makes a better key > than the message > string. I routinely wrap my tasks in their > own targets, using > "unless" to allow those devs who want to to put > things in a properties > file instead: Well, now that you m

RE: Propostion for improving PropertyFileInputHandler

2004-10-27 Thread RADEMAKERS Tanguy
Hello Ivan, I agree that the property name makes a better key than the message string. I routinely wrap my tasks in their own targets, using "unless" to allow those devs who want to to put things in a properties file instead:

"Return values" with Ant?

2004-10-27 Thread Marcel Stör
Hi Scenario: Target X in file build.xml Target Y in file doit.xml In X Y is called through the subant task. How can I let X know about Y's results? Y executes - among other things - JUnit tests with: Unit tests failed I'd like to know in X that JUnit testing failed. How to achieve that? Re

RE: not just install, but upgrade/remove Ant

2004-10-27 Thread Anderson, Rob (Global Trade)
I'm happy to hear your problem is solved. The symlink I was refering to is a link to a directory. I created mine with the following command... ln -s /usr/local/apache-ant-1.6.2 /usr/local/ant Now with ANT_HOME=/usr/local/ant everything should work OK. You can also cd to /usr/local/ant as if it

Propostion for improving PropertyFileInputHandler

2004-10-27 Thread Ivan Ivanov
Dear Colleagues, Consider the following ant xml file: Test Script for PropertyFileInputHandler pfh.name is ${pfh.name} If used with DefaultInputHanlder, it works like a charm. Now let's try to start it with PropertyFileInputHandler and make it read the input fr

AW: copy, filterchain, replace, replacetoken -- too complicate

2004-10-27 Thread Schuett Thomas EXT
>[...] >but one can do this: > > > > > > >(since ant 1.6.0) >Where replacestring is a stringfilter nested element in an implicit >tokenfilter. Howw. Whithout words ... #:-> ... Well, at least it is possible, this is good. But it is really hard to find a red line in t

RES: Set sysproperty under Java task

2004-10-27 Thread André Dantas Rocha
Thanks Dominique! -Mensagem original- De: Dominique Devienne [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de outubro de 2004 11:05 Para: Ant Users List Assunto: RE: Set sysproperty under Java task > From: André Dantas Rocha [mailto:[EMAIL PROTECTED] I'm creating my > Ant proj

RE: Set sysproperty under Java task

2004-10-27 Thread Dominique Devienne
> From: André Dantas Rocha [mailto:[EMAIL PROTECTED] > I'm creating my Ant project dynamically and would like to specify a > sysproperty: > > > > I don't want to use "-D" arg... is it possible? > There is a piece of my code: > > Java java = (Java) project.createTask("java"); > java.init(); > ja

Re: Simple manipulation of a property value

2004-10-27 Thread Erik Hatcher
On Oct 27, 2004, at 8:56 AM, Benoît Lubek wrote: Hi, I have a property : And I'd like to manipulate it a bit, ie, change the "." to "_" (so it can be used for a cvs tag). So I'd like to have a property with the value "v1_0_2". Is there a way to do that with the core tasks? I realize it would be

Re: copy, filterchain, replace, replacetoken -- too complicate

2004-10-27 Thread Peter Reilly
Charles Daniels wrote: -Original Message- From: Schuett Thomas EXT Problem 3: The filterchain can NOT have a nested replace. Why not? This is, what I rate really unclean. The doc is a little hidden.. (it is in the tokenfilter part of the filterchain page) but one can do this:

Simple manipulation of a property value

2004-10-27 Thread Benoît Lubek
Hi, I have a property : And I'd like to manipulate it a bit, ie, change the "." to "_" (so it can be used for a cvs tag). So I'd like to have a property with the value "v1_0_2". Is there a way to do that with the core tasks? I realize it would be easy to do it with the

AW: copy, filterchain, replace, replacetoken -- too complicate

2004-10-27 Thread Schuett Thomas EXT
Hello, > Use the Ant manifest task. Yes. Too easy :-) Anyhow, do you know, why the filterchain does not support a nested replace task? (That one was most irritating to me.) Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: property validation

2004-10-27 Thread Mark Lybarger
i'm trying to find info on regexps on how to accomplish this. any pointers to the place in the docs? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 27, 2004 7:40 AM > To: [EMAIL PROTECTED] > Subject: AW: property validation > > > 1)

Re: property validation

2004-10-27 Thread Robert Koberg
Mark Lybarger wrote: this is interesting indeed. i'm only vaguely familar with schemas and their use. i have a build.xml which does my build. does my custom schema go into build.xs? how do i reference that from build.xml? here's a simple build.xml that needs to validate a property MAJOR is num

RE: copy, filterchain, replace, replacetoken -- too complicate

2004-10-27 Thread Charles Daniels
Use the Ant manifest task. > -Original Message- > From: Schuett Thomas EXT > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 27, 2004 4:42 AM > To: 'Ant Users List' > Subject: copy, filterchain, replace, replacetoken -- too complicate > > Hello, > > I had the simple task of creat

copy, filterchain, replace, replacetoken -- too complicate

2004-10-27 Thread Schuett Thomas EXT
Hello, I had the simple task of creating a MANIFEST file for a jar archive. I Started with the echo task, but the result looked ugly in the ant script. (Because a starting empty line as well as leading blanks had to be avoided.) Then I had the idea to create a properties file and transform it int

AW: property validation

2004-10-27 Thread Jan . Materne
1) try using regexps for validation 2) access is via ${MAJOR} - you´ve forgotten the curly braces Jan > -Ursprüngliche Nachricht- > Von: Mark Lybarger [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 27. Oktober 2004 13:39 > An: Ant Users List > Betreff: RE: property validation > > thi

RE: property validation

2004-10-27 Thread Mark Lybarger
this is interesting indeed. i'm only vaguely familar with schemas and their use. i have a build.xml which does my build. does my custom schema go into build.xs? how do i reference that from build.xml? here's a simple build.xml that needs to validate a property MAJOR is numeric:

Re: property validation

2004-10-27 Thread Robert Koberg
Mark Lybarger wrote: i'd like to validate some properties in my build file. we have version numbers specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric (preferably 2 digits or under). does anyone know how i can possibly use ant's script (javascript) or something else to

property validation

2004-10-27 Thread Mark Lybarger
i'd like to validate some properties in my build file. we have version numbers specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric (preferably 2 digits or under). does anyone know how i can possibly use ant's script (javascript) or something else to validate this? than

AW: hi

2004-10-27 Thread Jan . Materne
I dont think Antoine has sent that - he knows that most attachement wont come thru - usually he uses meaningful subjects Jan > -Ursprüngliche Nachricht- > Von: Ashish Gupta [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 27. Oktober 2004 10:54 > An: Ant Users List > Betreff: RE: hi >

RE: hi

2004-10-27 Thread Ashish Gupta
The mail u sent has no doc attached with it. With Regards, Ashish Gupta Software Engineer === Sobha Renaissance Information Technology Private Limited An SEI-CMM & P-CMM Level 5 Company A Six Sigma Practice company BS 77

Re: not just install, but upgrade/remove Ant

2004-10-27 Thread Peter Reilly
Check out http://ant.apache.org/faq.html#InstantiationException for info on Fedora Core 2 issues. Peter Eric Wulff wrote: Hi Rob, thx much for your detailed info as my problem is solved. Seems the main problem was the 2 ant.jar files in my /usr/share/java/ directory. Once I removed those, install

Re: Beanshell from within ant

2004-10-27 Thread Robert Mark Bram
Hi Conor, You need the Bean Scripting Framework BSF from the Apache Jakarta project. It is what Ant uses to embed scripting languages. http://jakarta.apache.org/bsf/ That fixed it! Thank you for this. I was confused in this file: http://www.beanshell.org/manual/bsf.html#BSF_Bean_Scripting_Frame