AW: Iteration over files

2005-03-08 Thread Jan . Materne
@{filename} you just need the AntContrib. Jan -Ursprüngliche Nachricht- Von: Pfau Oliver FRD II [mailto:[EMAIL PROTECTED] Gesendet am: Mittwoch, 9. März 2005 08:09 An: 'Ant Users List' Betreff: AW: Iteration over files How you address the files name ? E. g. I h

AW: alternate xml logger stylesheets

2005-03-08 Thread Jan . Materne
The key part is [EMAIL PROTECTED] != 'debug'] in line 178 and 195. All messages without "debug" - so all above them - should appear. But by default Ant logs only "info" and higher - if you dont use the -verbose flag. The simplest for you would be replacing [EMAIL PROTECTED] != 'debug'] wi

AW: Iteration over files

2005-03-08 Thread Pfau Oliver FRD II
How you address the files name ? E. g. I have to extract several jar-files and I want to create a directory like _temp for each file...then do somethingjar the contents of the dir and delete the temp dir... I am not sure how to do this... -Ursprüngliche Nachricht- Von: Anderson, Rob (G

alternate xml logger stylesheets

2005-03-08 Thread David Resnick
The stylesheet log.xsl included with Ant is great, but it would be nice to be able to see other logging levels without going to source of the xml log. Unfortunately, my XSL abilities are not currently up to writing my own. Are there any other stylesheets available for use, or tools made for viewing

Why "Trying to override old definition of task xxx" message?

2005-03-08 Thread David Resnick
I have a project with a dozen macrodef definitions. Today I added 2 more and now get the message "Trying to override old definition of task xxx" for one of the new macros at the start of most targets. The message doesn't seem to have any effect on the build, but I would like to know why it suddenly

RE: How to escape the quotes characters in a string?

2005-03-08 Thread David Resnick
You can also use this: -David -Original Message- From: Tawfik, Sameh E [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 22:36 To: Ant Users List Subject: How to escape the quotes characters in a string? Hi, In my build.xml, I'm using the Ant exec task as follow:

RE: Building Java code with a different version

2005-03-08 Thread Perkins, Kristian
I think the point to make is that the same JDK will be used regardless of the values of build.compiler or compiler attribute, but the difference will be in the compiled classes that are outputted, that is setting compiler to javac1.4 will generate class files compatible with java version 1.4 and la

RE: junit.fork

2005-03-08 Thread Perkins, Kristian
>Note, I would try this as a last resoft, I am sure the designers of the original build.xml had >a reason for the fork="true" attribute and be careful for un-intented side-effects... also you >may want to search the file for additonal fork="true" assingments If this turns out to be the case you

RE: Deleting 0 kb files

2005-03-08 Thread Perkins, Kristian
I am sure you mean depending not appending as it would be fairly hard to delete a file at the same time as appending to it. You need to use the delete task with a fileset containing a size selector, i.e. -Original Message- From: Pfau Oliver FRD II [mailto:[EMAIL PROTECTED] Sent:

RE: How to escape the quotes characters in a string?

2005-03-08 Thread Tawfik, Sameh E
Hi, Thanks to everyone, everything works fine now. I used the following syntax: Sameh -Original Message- From: Nemana, Satya V [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 12:51 PM To: Ant Users List Subject: RE: How to escape the quotes characters in a string?

RE: Did javac compile anything?

2005-03-08 Thread Baker, Derek
Vote submitted. Thanks. Derek -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 3:43 PM To: Ant Users List Subject: Re: Did javac compile anything? There is an open RFE for this at http://issues.apache.org/bugzilla/show_bug.cgi?id=28941 You

RE: junit.fork

2005-03-08 Thread Payette, Don J
Oh how silly I feel. Thanks, that did it. Now on to the next problem. Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-ma

RE: How to escape the quotes characters in a string?

2005-03-08 Thread Ninju Bohra
Ooops, You are viewing the ANT user group with an HTML-enabled mail viewer... the view is converting the HTML escape sequence for the double qoute character into a double quoute character and displaying it to you (instead of showing you the escape sequence) The escape sequence consists of 5

RE: How to escape the quotes characters in a string?

2005-03-08 Thread Nemana, Satya V
Here are some examples using quot and colon, as I used in the past, while playing with cpptasks.jar and ant-contrib.jar to automate the MSDEV Visua Studion .NET c++ builds using the Ant, to make it platform-independent. Following below constructs arguments as /YX"stdafx.h" /MACHINE:X86 etc Note: (

RE: How to escape the quotes characters in a string?

2005-03-08 Thread Tawfik, Sameh E
Matt, When I tried the following: I got the following error: BUILD FAILED C:\CVS_DB\WeightsEngine\WE_Win.xml:84: The entity name must immediately follow the '&' in the entity reference. Did I miss something? Sameh -Original Message- From: Matt Benson [mailto:[EMAIL PROT

Re: Did javac compile anything?

2005-03-08 Thread Matt Benson
There is an open RFE for this at http://issues.apache.org/bugzilla/show_bug.cgi?id=28941 You can vote for it there if you like. In that thread Dominique says "Someone please put this patch in." He has since become a committer so maybe if he sees this he will! :) -Matt --- "Baker, Derek" <[E

RE: junit.fork

2005-03-08 Thread Ninju Bohra
If you really feel confident that all you need to do is remove the "fork"ing behavior In the build.xml file you posted, in the bottom third of the file look for the section that started with about three lines down there is section that starts with On that line, remove the fork

Re: How to escape the quotes characters in a string?

2005-03-08 Thread Matt Benson
" -Matt --- "Tawfik, Sameh E" <[EMAIL PROTECTED]> wrote: > Hi, > > In my build.xml, I'm using the Ant exec task as > follow: > > executable="NMAKE.EXE"> > Win32Release""/> > > > When I try to build, Ant reports an error regarding > the double quotes > that I've around WeightsEngine -

Did javac compile anything?

2005-03-08 Thread Baker, Derek
Is there a way to tell (besides me looking at the log) if the javac task actually compiled anything or if everything was already up to date? Similarly, is there a way to tell if mkdir had to actually make the requested directory or if it already existed? Thanks, Derek

How to escape the quotes characters in a string?

2005-03-08 Thread Tawfik, Sameh E
Hi, In my build.xml, I'm using the Ant exec task as follow: When I try to build, Ant reports an error regarding the double quotes that I've around WeightsEngine - Win32Release string. BUILD FAILED C:\CVS_DB\ build.xml:78: Element type "arg" must be followed by either attribute specif

RE: junit.fork

2005-03-08 Thread Payette, Don J
This is a byproduct of our mainframe implementation. The solution is to have it not do the fork, but use the JVM that ant is already running on. (On our machine, the java executable is not called java). Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATE

CVS task freezes during checkout

2005-03-08 Thread DataCom - Diego
Hi all, I am trying to use Ant 1.6.2 together with Cvsnt 2.0.58d in a station running Windows XP and accessing a cvs Linux Server (probably not Cvsnt). The protocol I am using is extssh. The problem is that the cvs task is frequently freezing during checkout. It simply stops processing with abs

RE: junit.fork

2005-03-08 Thread Ninju Bohra
Based on the error stack that you posted _loaddb: [property] Override ignored for Domain [java] Forking java -Dspecjappserver.home=/SPECjAppServer2002 -classpath /- /JAVATEST2/DIR/DONP/SPEC/jars/load.jar org.spec.japp server.load.LoadCorp 1 BUILD FAILED /-/JAVATEST2/DIR

RE: logic using ant

2005-03-08 Thread klute
Rob and all, That's exactly what i was looking for. I think properties file is the way to go in my case. Best, James --- "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: > This is certainly possible. Depending on what > exactly you are trying to do, your method to acheive > it may diff

RE: junit.fork

2005-03-08 Thread Payette, Don J
I'm using the build.xml that came with the app I'm using (the SPECjAppServer2002 benchmark). The particular target I'm invoking is "loaddb", if that matters. Here it is:

Re: Build Process in the Configuration management Tool (Rational Clearcase)

2005-03-08 Thread ed . wittmann
It sounds like you have a lot of reading ahead of you. Source distribution is bundling your source code (non-compiled, human-readable). Binary distribution is bundling your code in compiled, machine-readable form. Either is intended for distribution of your code to third parties. good luck,

RE: junit.fork

2005-03-08 Thread Kajsa.Anderson
> -Original Message- > All I want to do is get ant to not fork java. Will this junit > stuff help me? If so, how do I do it? Remember, I'm very new > to ant and Java. > > Don Payette > How are you running ant? The usual way is to define your build process in an xml file, usually calle

RE: junit.fork

2005-03-08 Thread Payette, Don J
Thanks for your help. All I want to do is get ant to not fork java. Will this junit stuff help me? If so, how do I do it? Remember, I'm very new to ant and Java. Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the int

Build Process in the Configuration management Tool (Rational Clearcase)

2005-03-08 Thread venkatesan_gandhi
Hi All, I'm a configuration management administrator(Rational Clearcase). We are planning setup automated build process in the Rational Clearcase. If any of you have ever implemented or have thought on that,kindly share with me. And also i'm quite new to Build process,can anyone tell me what i

RE: junit.fork

2005-03-08 Thread dbrosius
Quoting "Payette, Don J" <[EMAIL PROTECTED]>: > What you typed looks like some xml file with a > in it. Is that correct? What file is this? Where do > I put it? All those questions, since I don't know what > you're talking about. :-) > > Thanks. >From the context you gave, I assumed you ar

RE: Iteration over files

2005-03-08 Thread Anderson, Rob (Global Trade)
What's wrong with using a fileset? -Rob A > -Original Message- > From: Pfau Oliver FRD II [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 08, 2005 1:19 AM > To: 'user@ant.apache.org' > Subject: Iteration over files > > > Hi, > > I want to apply some ant tasks over jar-files. How can I

RE: logic using ant

2005-03-08 Thread Anderson, Rob (Global Trade)
This is certainly possible. Depending on what exactly you are trying to do, your method to acheive it may differ. Here is one method I use to get the same thing done in different environments. I create a properties file for each environment: dev.properties test.properties In the properties file

RE: junit.fork

2005-03-08 Thread Payette, Don J
What you typed looks like some xml file with a in it. Is that correct? What file is this? Where do I put it? All those questions, since I don't know what you're talking about. :-) Thanks. Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is

Re: junit.fork

2005-03-08 Thread dbrosius
Quoting "Payette, Don J" <[EMAIL PROTECTED]>: > I have a situation where ant is forking java to run my class, and I need > it to use > the JVM that ant is running under, not do a fork. Through searching > I've discovered > junit.fork=false, but I'm having a hard time getting ant to "hear" me. P

junit.fork

2005-03-08 Thread Payette, Don J
Hi, I'm new to the list and relatively new to java and ant. So, be kind. :-) I have a situation where ant is forking java to run my class, and I need it to use the JVM that ant is running under, not do a fork. Through searching I've discovered junit.fork=false, but I'm having a hard time gettin

RE: Concat with limited fileset (replacement for regexp mapper)

2005-03-08 Thread Dominique Devienne
> From: Kees van Dieren [mailto:[EMAIL PROTECTED] > > > > > > > This works perfectly and copies the required files in the way I would > like. This is a very clever way to select a subset of the files of a fileset. I would never have thought of that! You could try to the fileset to a st

Building Java code with a different version

2005-03-08 Thread Rob Hills
Hi All, I'm struggling with a build script that needs to be able to compile and jar java code against different JDKs, depending on a property setting. >From my reading of the Ant docs, I should be able to use either the >build.compiler property or the compiler attribute to specify which JDK I

Re: Clearing a property

2005-03-08 Thread Martin Gladdish
Thanks, that sorted it. On 8 Mar 2005, at 12:22, Peter Reilly wrote: Martin Gladdish wrote: All, I'm struggling with clearing a property value that was set using the task. Here's the relevant section of my build file: web-xml-fragment: ${web-xml-fragme

Concat with limited fileset (replacement for regexp mapper)

2005-03-08 Thread Kees van Dieren
Hi, I have a global file set, that is automatically generated some else where. This fileset is has the id "module-fileset". I use a a regexp mapper, to select certain files from the fileset for copying a selection of certain files, for example: This works perfectly a

Re: Clearing a property

2005-03-08 Thread Peter Reilly
Martin Gladdish wrote: All, I'm struggling with clearing a property value that was set using the task. Here's the relevant section of my build file: web-xml-fragment: ${web-xml-fragment} The web-xml-fragment property gets set correctly, and I get the

Re: Clearing a property

2005-03-08 Thread Yuji Yamano
Martin Gladdish <[EMAIL PROTECTED]> writes: > I need to clear the property, so that it doesn't overwhelm my junit > reports. You can not clear the property. http://ant.apache.org/manual/CoreTasks/property.html >> Properties are immutable: whoever sets a property first freezes it >> for the

Clearing a property

2005-03-08 Thread Martin Gladdish
All, I'm struggling with clearing a property value that was set using the task. Here's the relevant section of my build file: web-xml-fragment: ${web-xml-fragment} The web-xml-fragment property gets set correctly, and I get the correctly filtered web

Re: Re: RE: javac, classpath with spaces

2005-03-08 Thread Colin S
Apologies for spamming the list, folks. I've just realised that it does in fact work. It turns out that because we haven't installed source control yet, when I tried this it had actually been using an older version of the properties file, that contains an invalid path (a non-escaped backslash is p

Re: AW: cannot resolve symbol when overriding method.

2005-03-08 Thread Sébastien Annedouche
[EMAIL PROTECTED] wrote: works for me. You've tried my Dummy class without the 2 imports ? and it works ? Could you send me your build.xml or the command line you've used ? but you should throw the IOException instead of Exception ... but that´s another topic. I didn't want to import java.io.

Re: RE: javac, classpath with spaces

2005-03-08 Thread Colin S
Update: Oops. My mistake, no it doesn't :/ Ack, it's going to be one of those days. I think I'm going to have to go with the progra~1 form then. Thanks anyway for the help. Thanks for the reply. I can't use multiple tags as there's no guarantee that the classpa

Re: RE: javac, classpath with spaces

2005-03-08 Thread Colin S
Thanks for the reply. I can't use multiple tags as there's no guarantee that the classpath will have a certain number of elements. However, using one pathelement like works, so I'm happy. Col. >You wouldn't have any issues if you used a nested classpath which >separates each classpath element

Iteration over files

2005-03-08 Thread Pfau Oliver FRD II
Hi, I want to apply some ant tasks over jar-files. How can I iterate over the jar files and invoke the ant tasks without putting it in the fileset ? Thanks Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

AW: Deleting 0 kb files

2005-03-08 Thread Jan . Materne
http://ant.apache.org/manual/CoreTypes/selectors.html#sizeselect Jan -Ursprüngliche Nachricht- Von: Pfau Oliver FRD II [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 8. März 2005 09:59 An: 'user@ant.apache.org' Betreff: WG: Deleting 0 kb files Hi, is there a ant core task to delete fi

WG: Deleting 0 kb files

2005-03-08 Thread Pfau Oliver FRD II
Hi, is there a ant core task to delete files appending to the size of it ? Thanks Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: logic using ant

2005-03-08 Thread Jan . Materne
You could also try a different thing: - use a "stage" property (values: dev|test) - define some in two files dev.macros.xml ..do..this.. test.macros.xml ..do..that.. - import the macros definition using the property - just invoke the action Jan > -Ursprüngliche Nachricht-

AW: cannot resolve symbol when overriding method.

2005-03-08 Thread Jan . Materne
works for me. but you should throw the IOException instead of Exception ... but that´s another topic. Jan > -Ursprüngliche Nachricht- > Von: Sébastien Annedouche [mailto:[EMAIL PROTECTED] > Gesendet am: Montag, 7. März 2005 19:42 > An: user@ant.apache.org > Betreff: cannot resolve symbol