Re: Escape " in ANT script and Use CVS task

2005-02-18 Thread David A. Bartmess
Oops, you're right... was reverting to my Perl scripting days... THanks for the correction! On Friday 18 February 2005 03:34 pm, Dominique Devienne wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > Behalf > > > The "command" attribute is a text str

Re: Rename a property value

2005-02-18 Thread Thomas Schapitz
Sorry, but this won't work this way. In Ant properties are just like variables declared as 'final', meaning: they can get set only once. What is it, that you like to achieve? Thomas Kasparek, Bernadette schrieb: Hi everybody, I've a problem. I want to define a property which I want to rename in t

Re: how are variables set?

2005-02-18 Thread Frank
Yes there is but it did not have an entry for j2ee.home, so I put one in before . I still got the error, maybe it's something else? But that's the only one that had /lib in the path for the javac line. Real strange. David A Bartmess wrote: I'm not familiar with this software, but as far as ant

RE: Escape " in ANT script and Use CVS task

2005-02-18 Thread Dominique Devienne
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > > The "command" attribute is a text string passed directly to cvs, so use > whatever command you normally would use. And for the comment, you can use > any variable set prior to the call. For example, to a

Re: Escape " in ANT script and Use CVS task

2005-02-18 Thread David A Bartmess
The "command" attribute is a text string passed directly to cvs, so use whatever command you normally would use. And for the comment, you can use any variable set prior to the call. For example, to add a file with a given comment (either in a build.properties, a prior target, or the command line),

Re: how are variables set?

2005-02-18 Thread David A Bartmess
I'm not familiar with this software, but as far as ant goes, is there a build.properties file, or some other file being imported in the main build.xml? If so, look in there, or add the j2ee.home= to it so it's set. Good luck! On Fri, February 18, 2005 2:31 pm, Frank said: > Just starting to use a

RE: fileset pattern matching

2005-02-18 Thread Michael Wang \(IT\)
sorry, I guess this will do the trick. -Original Message- From: Michael Wang (IT) Sent: Friday, February 18, 2005 4:27 PM To: 'Ant Users List' Subject: fileset pattern matching Importance: High Hi, I tri

how are variables set?

2005-02-18 Thread Frank
Just starting to use ant/asant to build examples for web services from sun tutorial. Running into a problem when I run the "asant build" get the following error: compile-client: [echo] Compiling the client source code [echo] src=src destdir=build [javac] Compiling 1 source file to

fileset pattern matching

2005-02-18 Thread Michael Wang \(IT\)
Hi, I tried to grab the files without extention from a directory. I have the following ANT script. Apparently,

Escape " in ANT script and Use CVS task

2005-02-18 Thread Michael Wang \(IT\)
Hi, I wanna use task to add and commit some files. What's the correct format to do it? So far, for commit, here is a sample ant is there a way to put message or lable there when commit? I still don't figure out how to add a new file

Re: Class org.apache.tools.ant.types.PatternSet$NameEntry doesn't support the "value" attribute.

2005-02-18 Thread Travis Cripps
Stefan, On Feb 14, 2005, at 6:46 AM, Stefan Bodewig wrote: On Fri, 11 Feb 2005, Travis Cripps <[EMAIL PROTECTED]> wrote: Hi. I've got a strange error in my build script, and I've been unable to find references to the error code in extensive searches on the internet. From your subject line, I'd say

cvs checkout

2005-02-18 Thread blackwater dev
I am using the cvs task: The problem is, when I check it out..I get web/package/pollywog...etc but I want to grab all of the files under pollywog but not the actual root folder of pollywog...can I specify this in the task? Thanks! ---

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Michael Wang \(IT\)
just switch to 1.5r3 and looks like it works. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 11:46 AM To: Ant Users List Subject: RE: handy way to check if a dir is empty or not It looks like the error I was getting when I had

RE: handy way to check if a dir is empty or not

2005-02-18 Thread alexander . buccino
It looks like the error I was getting when I had the most recent version of Rhino installed. Which version are you using? I could only get it to work using bsf-2.3_rc1 and rhino-1.5r3 --Alex Buccino "Michael Wang (IT)" <[EMAIL PROTECTED]> 02/18/2005 11:19 AM Please respond to "Ant Users List

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Michael Wang \(IT\)
Thanks, I got the following error java.lang.NoSuchMethodError: org.mozilla.javascript.Context: method getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine; not found I put bsf.jar and js.jar in $ANT_HOME/lib. Do I need to specifically put them into $CLASSPATH? Thanks. MW -O

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Ivan Ivanov
Yes, you need. Check http://ant.apache.org/manual/install.html#librarydependencies for more information. HTH Ivan --- "Michael Wang (IT)" <[EMAIL PROTECTED]> wrote: > thank much. do I need to include some external jar > to run js script? thanks. > > -Original Message- > From: Ivan Ivanov

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Michael Wang \(IT\)
thank much. do I need to include some external jar to run js script? thanks. -Original Message- From: Ivan Ivanov [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:41 AM To: Ant Users List Subject: RE: handy way to check if a dir is empty or not --- "Michael Wang (IT)" <[EMAIL

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Ivan Ivanov
--- "Michael Wang (IT)" <[EMAIL PROTECTED]> wrote: > thanks for the reply, howover, is this ANT script? No, this is not an Ant script but this snippet can be used in a : $${empty.empty} = ${empty.empty} $${notempty.empty} = $

RE: AW: handy way to check if a dir is empty or not

2005-02-18 Thread Mark Benussi
Sorry wrong list! Original Message Follows From: [EMAIL PROTECTED] Reply-To: "Ant Users List" To: user@ant.apache.org Subject: AW: handy way to check if a dir is empty or not Date: Fri, 18 Feb 2005 15:34:58 +0100 no, that´s java code. but you can put that into a

AW: handy way to check if a dir is empty or not

2005-02-18 Thread Jan . Materne
no, that´s java code. but you can put that into a

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Michael Wang \(IT\)
thanks for the reply, howover, is this ANT script? -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 9:28 AM To: user@ant.apache.org Subject: RE: handy way to check if a dir is empty or not if(file.isDirectory() && (file.list()).length == 0)

RE: handy way to check if a dir is empty or not

2005-02-18 Thread Mark Benussi
if(file.isDirectory() && (file.list()).length == 0) { // Directory is empty } Original Message Follows From: "Michael Wang (IT)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: handy way to check if a dir is empty or not Date: Fri, 18 Feb 2005 09:17:28 -0500

handy way to check if a dir is empty or not

2005-02-18 Thread Michael Wang \(IT\)
is there a handy way to do this? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: Rename a property value

2005-02-18 Thread Eric Wood
there is a variable task available from http://ant-contrib.sourceforge.net/ Eric Wood [EMAIL PROTECTED] 207.552.2306 >>> [EMAIL PROTECTED] 02/18/05 07:55AM >>> Properties in Ant are immutable - once set their value cant be change. So the order is: - specify on startup via -Dname=value - order o

Re: The Ant way of doing things

2005-02-18 Thread jfuller
[EMAIL PROTECTED] wrote .. > Thanks Stefan. > That all looks helpful. It's great to have some examples of solving > specific problems. > H... anyone working on an O'Reilly Ant Cookbook :-) hehe, I am but its called Ant Gems...it focuses on Ant uses outside of pure java build...its publishin

AW: Rename a property value

2005-02-18 Thread Jan . Materne
Properties in Ant are immutable - once set their value cant be change. So the order is: - specify on startup via -Dname=value - order of load/definition in the buildfile You can override that property value via nested tag of /. But I´m not sure what you want to do ... usually you do something lik

Re: The Ant way of doing things

2005-02-18 Thread alexander . buccino
Thanks Stefan. That all looks helpful. It's great to have some examples of solving specific problems. H... anyone working on an O'Reilly Ant Cookbook :-) I've resisted the idea of writing a custom task, but maybe that's what's needed here. Thanks again. --Alex Buccino Stefan Bodewig <[E

Re: WELCOME to user@ant.apache.org

2005-02-18 Thread Andrew Solonchuk
Hi! Can you adwise me& I need find duplicated files in the set of jar files. becouse in our ant project we have more then one target, that creates jar files with classes from one common directory, and I need keep eye on havin only one copy of each class when all jars puting together in result pr

Rename a property value

2005-02-18 Thread Kasparek, Bernadette
Hi everybody, I've a problem. I want to define a property which I want to rename in the Main-Target, so that I can use it with different values. In detail I have the following code: <-- here I will use the property My problem is, that it always take the first value. Is there a way

Re: Fix/Workaround Needed For Ant 1.6.x and

2005-02-18 Thread Michael Duffy
Hi Jake, Yes, the JUnit JAR is in ANT_HOME/lib. I should have pointed out that this is a build.xml that I've used successfully with past versions of Ant. I've only started having the problem when I upgraded to 1.6.1. The CNF exception occurs when the class loader tries to find one of my TestCa

tar task keeps reporting nothing to do

2005-02-18 Thread Paul Taylor
I am trying trying to build to do two slightly different builds from the same source code into two different directories, build and buildwithlicense. Then for each directory I tar up the results, the first one works ok but the second one always reports that there is nothing to do even though it

Re: Ant Pretty Build 2.1.0 Released

2005-02-18 Thread Stefan Bodewig
On Wed, 16 Feb 2005, Charbel BITAR <[EMAIL PROTECTED]> wrote: > Please update the External Tools page external.xml Done. Congratulations on your new license ;-) Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: The Ant way of doing things

2005-02-18 Thread Stefan Bodewig
On Thu, 17 Feb 2005, alexander buccino <[EMAIL PROTECTED]> wrote: > I'm trying to take a subset of files in a directory, compare them to > a set of files with a different extension in another directory, and > compile these files and move them to the new directory if they are > newer than the targe

Re: FAQ: installing on RH ES 3

2005-02-18 Thread Stefan Bodewig
committed, thanks Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]