AW: passing of properties from a child ant task to its parent

2003-01-14 Thread Jan . Materne
The sub-task (build.xml) can write a property file () wich the super-task (ci-build.xml) can read AFTER calling. ci-build.xml SubTask has set ${result} build.xml Jan Matèrne (sorry, I´ve forgotten my name :-) -Ursprüngliche Nachricht- Von: Dave Draper [mailto:[EMA

AW: passing of properties from a child ant task to its parent

2003-01-14 Thread Jan . Materne
The sub-task (build.xml) can write a property file () wich the super-task (ci-build.xml) can read AFTER calling. ci-build.xml SubTask has set ${result} build.xml -Ursprüngliche Nachricht- Von: Dave Draper [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 14. Januar 2

Re: Ant's exec command example

2003-01-14 Thread Michael Klem
I figured it out! This works: At 7:18 PM -0800 01/14/2003, Michael Klem wrote: Can someone give me an example of how to use Ant's exec command to copy a file? Everything I tried results in an IOException. Here is what Iam doing: -- Michael Kl

Ant's exec command example

2003-01-14 Thread Michael Klem
Can someone give me an example of how to use Ant's exec command to copy a file? Everything I tried results in an IOException. Here is what Iam doing: -- Michael Klem <[EMAIL PROTECTED]>626-296-3027 -- To unsubscribe, e-mail: For additional commands, e

File permissions

2003-01-14 Thread Michael Klem
I have an executable file that Ant copies from my source directory to my destination directory, however, the copied file is no longer an executable file. This is what I am using: -- Michael Klem <[EMAIL PROTECTED]>626-296-3027 -- To unsubscribe, e-mail:

Error in ejbjar target in WebSphere

2003-01-14 Thread Yalavarthi, Vasu
Hi, I am trying to run ejbjar target for websphere using "com.ibm.etools.ejbdeploy.EJBDeploy" java class and i am getting thefollowing error.   Does anyone know what might be wrong.   It works fine for WebLogic (using weblogic.ejbc). //BEGIN ANT BUILD ERROR [java]

Re: Style task failure

2003-01-14 Thread Nicola Ken Barozzi
Dale Anson wrote: I ran into this problem right after upgrading java from 1.4.0 to 1.4.1. I reverted to 1.4.0 and the problem went away. I didn't dig too deep, but it appears to be a glitch in the java 1.4.1 xml apis. I saw this DTM stuff error in a bugged version of Xalan. So it seems you're

File permissions

2003-01-14 Thread Michael Klem
I have an executable file that Ant copies from my source directory to my destination directory, however, the copied file is no longer an executable file. This is what I am using: -- Michael Klem <[EMAIL PROTECTED]>626-296-3027 -- To unsubscribe, e-mail:

Re: Style task failure

2003-01-14 Thread Dale Anson
I ran into this problem right after upgrading java from 1.4.0 to 1.4.1. I reverted to 1.4.0 and the problem went away. I didn't dig too deep, but it appears to be a glitch in the java 1.4.1 xml apis. Dale Anson [EMAIL PROTECTED] Drew Davidson wrote: I'm using the

Performance issues with using large properties files

2003-01-14 Thread Nau, Michael
I'm planning on a strategy that will result is a large properties file that will be loaded and used by my build.xml. The properties fill will contain an entry for each file and version of a component we produce. Overtime this file could grow to over 25,000 lines. Before I go down this route, has a

Help with Replace regexp with ant 1.5

2003-01-14 Thread Bin Chen
Hi, I am trying to use the replaceregexp task of ant 1.5 to match and replace certain patterns, here is the sample: Here "\n" is supposed to be a newline, and "\" in CMD_HOME is supposed to be a direcory However, when the substitution occured, all back slashes were tak

How to use regexp replace task with ant 1.5

2003-01-14 Thread Bin Chen
Hi, I am trying to use the replaceregexp task of ant 1.5 to match and replace certain patterns, here is the sample: Here "\n" is supposed to be a newline, and "\" in CMD_HOME is supposed to be a direcory However, when the substitution occured, all back slashes were tak

Style task failure

2003-01-14 Thread Drew Davidson
I'm using the

Re: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Laurence Mastrorillo
This is the way I do it : . Laurence "Markus M. May" a écrit : > Hello, > I don't think, that you can use the WAR Task to copy a file. But what about > the copy task? It is implemented without any restrictions to the underlying > OS, so that you can use it on Windows as well as on Linux an

Re: keeping file permission in warfile

2003-01-14 Thread Laurence Mastrorillo
Thanks to Roland and Stephan. I guess I can deal with going for an explicit chmod after deployement. Laurence -- To unsubscribe, e-mail: For additional commands, e-mail:

LoadProperties bug? (Was: Re: ExpandProperties task)

2003-01-14 Thread Kenneth Lee
Thanks. That's exactly what I wanted. But then I would suggest that it should be mentioned in the manual, that LoadProperties does not expand ${...} constructs in the file. The manual said its equivalent to but it's obviously not. Or is it a bug of LoadProperties? Kenneth - Original Message

RE: passing of properties from a child ant task to its parent

2003-01-14 Thread Dave Draper
I can't see a lot of difference between the and tags. It looks like they provide very similar functionality. Regardless, my take from reading the docs of the tags leads me to believe that it does not pass anything back. Here is a code snip that will create and write the property file and value(

RE: passing of properties from a child ant task to its parent

2003-01-14 Thread Ralph Jocham
> If you are using the answer is no. > > Targets executed via have their own > environment > and property space and anything modified or set is > NOT > passed backed or returned to the "calling" target. I use: > I have seen used to write out the > updated > values of properties and then when

Running Ant 1.4.1 Headless with WSAD 4.02

2003-01-14 Thread Bruce_Slater
Hello, I am experiencing something weird when running Ant headless with WSAD. I am using WSAD 4.02, Ant version 1.4.1 (under WSAD plugins), and the runAnt extras provided by IBM. I have 13 build files that can be run indepedently. Each file executes perfectly fine when run stand alone. Now, I

RE: passing of properties from a child ant task to its parent

2003-01-14 Thread Dave Draper
If you are using the answer is no. Targets executed via have their own environment and property space and anything modified or set is NOT passed backed or returned to the "calling" target. I have seen used to write out the updated values of properties and then when execution is returned to the

passing of properties from a child ant task to its parent

2003-01-14 Thread Ralph Jocham
Hi, I have 2 differnt build files -- one is a general one (build.xml) and the other is used by CruiseControl (ci-buld.xml). The ci-build.xml mainly uses the build.xml file with calls. This works fine but now I have the following situation. The targets to run junit tests are in build.xml. They are

pulling .jars from a path?

2003-01-14 Thread tek1
hello. is it possible to pull all the .jars listed in a path as a fileset (for inclusion in the "lib" nested element of the "war" task)? the reason why is because i'm using a build.properties to make references to .jars on the filesystem as follows: build.properties velocity.lib=

copy ignore non-existent

2003-01-14 Thread David McTavish
Is there an easy way to copy a fileset and ignore if the directory does not exist? ie: I really don't want to have to check if the directory exists before the copy every time if I don't have to (ie: available would work, but just makes the build script bulkier). Is it just me, or does the

RE: $${${}}

2003-01-14 Thread SimonRichardson2
Maybe you could define your dev and production properties 2 different property files : in dev.properties = application.build_label=dev application.dev.property1=hello in production.properties application.build_label=production application.production.propert

ejbjar not adding manifest properly

2003-01-14 Thread ashoka . upadhya
Hello, I am using ejbjar to build weblogic ejb's. I have specified manifest file through manifest attribute. When ejb jar is built, manifest got added but the content with in the manifest file is empty. My original manifest has only one line as given below Class-Path: cmmgr.jar cuccmgr.jar organ

RE: $${${}}

2003-01-14 Thread Bernd Matzke
hello, maybe one of these solutions may help. use an id for the properties and create an help-property for the filter-value: ${filter} If you won't use a different id instead of the name, you can use the same name and id for an property. but you will need a secondhel

Re: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Erik Hatcher
is simply a fileset. All filesets and all Ant datatypes support id/refid constructs. See Ant's documentation: http://jakarta.apache.org/ant/manual/using.html#references I could plug my book here too, but I'll refrain! :) Erik On Tuesday, January 14, 2003, at 10:30 AM, White, Joshua A (

Re: ant apply and file.separator

2003-01-14 Thread Stefan Bodewig
On Tue, 14 Jan 2003, Craig Goss <[EMAIL PROTECTED]> wrote: > In case that hint was aimed at me ;^) ... Nah 8-) > PS. Sitting here in blissful ignorance it occurs to me that it might > be easy to add support for an existing task to > and . I happen to think the opposite is true, it isn't reall

RE: Copying .properties files into to classes directory using the war task

2003-01-14 Thread White, Joshua A (AG, COMM)
Chris, I stand corrected. I was able to use this: Has anyone seen where the refid attribute of the classes element is documented? Josh -Original Message- From: Christopher Lenz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 10:27 AM To: Ant Users List Subject:

Re: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Erik Hatcher
On Tuesday, January 14, 2003, at 10:19 AM, White, Joshua A (AG, COMM) wrote: Erik, As far as I know, the element only copies .class files. Any other suggestions? Joshua Did you *try* it?! :) is just a fileset and simply places whatever you hand it into WEB-INF/classes. I use this myse

RE: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Keith Hatton
Presumably could be used as another alternative? I use this to put descriptors in the META-INF directory for an EJB-Jar, for example. -Original Message- From: White, Joshua A (AG, COMM) [mailto:[EMAIL PROTECTED]] Sent: 14 January 2003 15:20 To: 'Ant Users List' Subject: RE: Copying .pro

Re: Copying .properties files into to classes directory using thewar task

2003-01-14 Thread Christopher Lenz
White, Joshua A (AG, COMM) wrote: Erik, As far as I know, the element only copies .class files. Any other suggestions? Not true, it'll include any file. -chris Joshua -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:37 AM To: A

RE: Copying .properties files into to classes directory using the war task

2003-01-14 Thread White, Joshua A (AG, COMM)
Erik, As far as I know, the element only copies .class files. Any other suggestions? Joshua -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:37 AM To: Ant Users List Subject:Re: Copying .properties files into to clas

RE: Accessing information from a manifest

2003-01-14 Thread Dominique Devienne
I've posted a

RE: Out of office message

2003-01-14 Thread David McTavish
yeah! -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 10:15 PM To: Ant Users List Subject: Re: Out of office message Kris Henderson wrote: > Not sure who the admin of this list or how to send them an email but > if you get this how abou

RE: ExpandProperties task

2003-01-14 Thread Dominique Devienne
If what you're doing is as simple as: simply replace it with: mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 4:16 AM To: Ant Users List Subject: ExpandProperties task I used this task to try to expand the ${...} in my build.properties, but it doesn't seem to work: build.proper

Re: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Markus M . May
Hello, I don't think, that you can use the WAR Task to copy a file. But what about the copy task? It is implemented without any restrictions to the underlying OS, so that you can use it on Windows as well as on Linux and other OSes. Greets Markus > Hello, > > I am using the war task to create th

Re: Copying .properties files into to classes directory using the war task

2003-01-14 Thread Erik Hatcher
To put a file in the WEB-INF/classes directory using simply use a nested element. Erik On Tuesday, January 14, 2003, at 09:30 AM, White, Joshua A (AG, COMM) wrote: Hello, I am using the war task to create the war file for my struts application. I would like to copy a .property file int

Copying .properties files into to classes directory using the war task

2003-01-14 Thread White, Joshua A (AG, COMM)
Hello, I am using the war task to create the war file for my struts application. I would like to copy a .property file into the WEB-INF/classes directory. Is there a way to do this using the war task? If not, any other suggestions? Regards, Joshua White This communication, including attachm

RE: Problem with element

2003-01-14 Thread Paul Gardella
OK, thanks. I appear to have gotten 1.5 documentation with 1.4.1 software. Paul -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:29 AM To: [EMAIL PROTECTED] Subject: Re: Problem with element On Mon, 13 Jan 2003, Paul Gardella <[EMAIL

RE: ant apply and file.separator

2003-01-14 Thread Craig Goss
In case that hint was aimed at me ;^) ... I'm going to beg off as I'm on a tighter than tight schedule that won't allow for distractions. I have a temporary work-around that functions as long as it is invoked from a Cygwin shell. It screws up my seamless build since Cygwin's not my day-to-day wor

Re: keeping file permission in warfile

2003-01-14 Thread Stefan Bodewig
On Tue, 14 Jan 2003, Laurence Mastrorillo <[EMAIL PROTECTED]> wrote: > But after I extract the war-file, they loose the '+x' permission, as > if 'waring' files resets permissions. There are a couple of problems coming together here: (1) Java doesn't know about file permissions -> Ant cannot read

RE: keeping file permission in warfile

2003-01-14 Thread EXT / FOCAL MALAPRADE Roland
>From the Ant Manual for task, "Note that file permissions will not be stored in the resulting jarfile" and as and are extensions to If you need your file permissions set, I think you have no choice but to set them after extraction. Roland > -Message d'origine- > De : Laurence

Re: keeping file permission in warfile

2003-01-14 Thread Laurence Mastrorillo
Thanks Martin, but I don't think this is really what I need. I explain. Here is my target (at least part of it): .. .. The files in src/cgi/ have the good permissions, so no need for chmod there. But after I extract the war-file, they loose the '+x' permission, as if '

token replacement in directory names instead of file content

2003-01-14 Thread BENOIT . NOSS
Hello, I haven't managed to replace a token in a directory file name during a copy or a move task example : I'm using tokens that need to be replaced in configuration file AND in directory names I want during a copy or move action to change the source directory ./@M

Re: A built-in mechanism to include build-file fragments

2003-01-14 Thread Nicola Ken Barozzi
Claas Thiele wrote: Maybe this is a solution for the requested ant2.0 feature "A built-in mechanism to include build-file fragments"... It is a plugin based of the original ProjectHelperImpl. So it can be used without recompilation of ANT. [...] Suggestions, comments and criticisms are welcom

RE: emailing upon build finishing

2003-01-14 Thread SimonRichardson2
Take a look at "The loggers and listeners" org.apache.tools.ant.listener.MailLogger Extends DefaultLogger such that output is still generated the same, and when the build is finished an e-mail can be sent. You can define a user list for a success and separate list for fail. Regards Simon >

WG: AW: AntHill vs. CruiseControl vs. Gump

2003-01-14 Thread Jan . Materne
I have CC running on my machine and it seems that CC reads the Ant buildfile each time if it starts a build. I can change the file and CC will use that in the next build. BTW: I needed two hours to setup CC in my environment. (inclusive learning CC :-) Jan Matèrne -Ursprüngliche Nachricht

AW: emailing upon build finishing

2003-01-14 Thread Jan . Materne
You can send an EMail with the Task. I let CruiseControl send EMails via MS Exchange. Simply define the Mailhost (name or IP). Jan Matèrne -Ursprüngliche Nachricht- Von: Roman Rytov [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 14. Januar 2003 11:14 An: Ant Users List Betreff: RE: ema

RE: emailing upon build finishing

2003-01-14 Thread Roman Rytov
Use MailLogger as described in the manual in chapter Logger&Listeners. It works fine. RR > -Original Message- > From: Paul Collins [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 14, 2003 12:11 PM > To: Ant Users List > Subject: emailing upon build finishing > > > Hi > > I have to

ExpandProperties task

2003-01-14 Thread Kenneth Lee
I used this task to try to expand the ${...} in my build.properties, but it doesn't seem to work: build.properties: ... lib=./lib classpath_a=... classpath_b=${lib}/...;${lib}/... classpath=${classpath_a};${classpath_b};... ... build.xml: ... ... After that the variables still have the ${

emailing upon build finishing

2003-01-14 Thread Paul Collins
Hi I have to introduce the process of when of a build is finished a number of people are emailed according to whether the build has failed or been successful, we ware using Microsoft Outlook as our mail server. All hints and suggestions welcome Paul Collins. Release Engineer mailto:[EMAIL PROT

RE: Nightly Ant scripts

2003-01-14 Thread David Colton (ext. 799)
>From memory I think you need IE5.5 installed on NT4 to get this option (just in case some of you don't find this). -Original Message- From: Paul Collins [mailto:[EMAIL PROTECTED]] Sent: 14 January 2003 09:51 To: Ant Users List Subject: RE: Nightly Ant scripts Cheers -Original Mess

RE: Nightly Ant scripts

2003-01-14 Thread Paul Collins
Cheers -Original Message- From: David McTavish [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 19:52 To: 'Ant Users List' Subject: RE: Nightly Ant scripts Control Panel -> Scheduled Tasks -Original Message- From: Paul Collins [mailto:[EMAIL PROTECTED]] Sent: Monday, January

RE: Is there a way to catch FAILURE case?

2003-01-14 Thread Roman Rytov
Thanks, looks promising! RR > -Original Message- > From: Dale Anson [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 10:16 PM > To: Ant Users List > Subject: Re: Is there a way to catch FAILURE case? > > > Hi Roman, > > I've written a try/catch/finally task that I'm in the