Need help understanding dependencies and destdir

2004-12-13 Thread Joel
The following piece of my build.xml works well buried in a sequential: (B (B (B (BExcept for two things. One, if I add the (B (Bdestdir=${dest} (B (Battribute, it does not put any output in the directory tree referenced (Bby ${dest} and it ignores that directory when checking dependenc

Failed to send email when ',' after last line

2004-12-13 Thread Rebhan, Gilbert
Hi, i read a txtfile into a property = and use this with tolist : format txtfile = IT269 Avg-projectA-Developer Avg-ITxy-SCM-CS Avg-projectA-Tester IT025 IT296 Avg-MODULA-Tester Avg-MODULA-Developer But i got a Failed to send email, so i put a ',' after each line

Internal AntCall and references

2004-12-13 Thread Yves Martin
Hello, I have created a task that must be 'context' aware. Currently, I stores information (Java objects) in a ugly static map in my task and it works well. To clean it, I decided to use project references but it does not work with 'antcall': target A antcall B MyTask{getReferen

RE: ant-contrib

2004-12-13 Thread Rebhan, Gilbert
Hi Peter, thx, your suggestion is more elegant and works perfect :) Gilbert -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 6:30 PM To: Ant Users List Subject: Re: ant-contrib use an if in an if?

Re: AW: AW: Write Ant files for many modules

2004-12-13 Thread Jean Morissette
[EMAIL PROTECTED] wrote: Provide a for each module and uses "depend"-attributes, so Ant can handle the dependency managing of the "targets" (here your modules) for you. Let me describe my repository structure: seda/ +---adisk/ | +---build.xml | +---asocket/ | +---build.xml | +---

Ant fileset from list of checked out files (cleartool lsco)

2004-12-13 Thread Anderson, Rob (Global Trade)
Ant and ClearCase users, I have a need to create a fileset in Ant from the output of cleartool lsco. Does anyone have a custom selector that would create such a fileset in Ant, that you would be willing to share? I am willing to write one to fill my need, but I thought it might be worth asking a

problem generating file link with blanks

2004-12-13 Thread Rebhan, Gilbert
Hi, i'm generating a file:// link out of a filenameproperty. Works fine, but if filename contains a blank it fails : file://\\lan.xxx.xx/bla/prc\test\04_12\ Base Application_r_1_5_0_rc43.doc The file is moved to that location before. So, i have to trim the blanks out of the file name, rename

Problems with

2004-12-13 Thread Daniel Lipofsky
I would expect that would load properties the same way as . But I would be wrong. Is this a bug? I was hoping to use the same files to set properties and filters. The most annoying difference is that the in-file property expansion that works so nicely for property files does not happen with fi

RE: Ant library paths

2004-12-13 Thread RADEMAKERS Tanguy
Chris, OK, if i am reading this correctly then you can pass the "-lib" switch to the ant file, but it's no use because the directory with the extra jars (the target of the "-lib" switch) doesn't exist when ant is run (since ant checks that directory out of source control). (This sounds weird to me

Re: help classpath issue

2004-12-13 Thread James Abley
Can't see anything obvious, apart from the echo task nested in the java task - I don't think that will work. What differences do you see when you use the -verbose or -debug option to dump the arguments to the java task, versus the arguments that you are passing when using the java runtime on the c

help classpath issue

2004-12-13 Thread Rajiv Jaitly
Please read the disclaimer at the bottom of this e-mail. Hi, I have a task (run-jostraca) in my ant script that calls a Java class (org.jostraca.Jostraca) that in turn generates a

RE: Ant library paths

2004-12-13 Thread Erskine, Chris
Although CC does have a fixed set of arguments, you can add additional arguments for a given project so they can change. For using the -lib argument, what I am trying to do is to build an environment where all extra libraries for building and testing can be kept in the CVS repository with the proj

RE: Ant library paths

2004-12-13 Thread RADEMAKERS Tanguy
Hi Chris, Sorry for the late reply, i was out sick. I don't know if/how ant can find the command line arguments that were used to invoke it (i tried looking for env.ANT_CMD_LINE_ARGS but no joy) but i wonder why you would need it: - If you don't know the command line args used to call ant for a

Re: AW: Validating buildfile

2004-12-13 Thread Peter Reilly
plus the XML editors you used do not understand XML entities. Peter [EMAIL PROTECTED] wrote: Ant itself doesnt validate a buildfile. Especially it´s hard if not impossible to do that. Think about: and the use of new declared tasks ..., AntLibs and Namespaces, the <*def> family, ... If you work pri

Re: Validating buildfile

2004-12-13 Thread Pedro Salgado
The editor either does not understand that &name is to include a new xml document (problem with the editor) or the contents inside your common-build.xml (do you have a inside the common-build.xml?) invalidates the structure of your xml document. I don¹t know what is inside the your common-b

AW: Validating buildfile

2004-12-13 Thread Jan . Materne
Ant itself doesnt validate a buildfile. Especially it´s hard if not impossible to do that. Think about: and the use of new declared tasks ..., AntLibs and Namespaces, the <*def> family, ... If you work prior to Ant 1.6 I suggest updating :) If you work with Ant 1.6(.2) I suggest changing from xm

Re: Need help understanding dependencies and destdir

2004-12-13 Thread Joel
On Tue, 14 Dec 2004 19:07:21 +0900 (BJoel <[EMAIL PROTECTED]> wrote (B (B> On Tue, 14 Dec 2004 08:14:15 + (B> James Abley <[EMAIL PROTECTED]> wrote (B> (B> > For that last part, I think that you need to look at . (B> (B> Where is that documented? (I see a dependset, but I think that'

Re: Need help understanding dependencies and destdir

2004-12-13 Thread James Abley
depend is an optional task, so it's documented at http://ant.apache.org/manual/OptionalTasks/depend.html That will get you going while I have a chance to look at targets that you sent. So, -debug shows that the ${dest} property is being set. Presumably, the directory exists? On Tue, 2004-12-1

Re: Need help understanding dependencies and destdir

2004-12-13 Thread Joel
On Tue, 14 Dec 2004 10:21:57 + (BJames Abley <[EMAIL PROTECTED]> wrote (B (B> [...] (B> So, -debug shows that the ${dest} property is being set. Presumably, the (B> directory exists? (B (BYeah, it's there. I have write permissions, too. (B (BI just ran out of time, so I'm going to get

Validating buildfile

2004-12-13 Thread FischRon.external
This is how my buildfile (build.xml) starts: = ]> &common-build; . == This worked with ant perfectly fine so far. Recently I decide

Re: Need help understanding dependencies and destdir

2004-12-13 Thread Joel
On Tue, 14 Dec 2004 08:14:15 + (BJames Abley <[EMAIL PROTECTED]> wrote (B (B> For that last part, I think that you need to look at . (B (BWhere is that documented? (I see a dependset, but I think that's (Bdifferent?) (B (BI've been working with the depends attribute in targets, but tha

Re: Ant and PVCS 8.0

2004-12-13 Thread ed . wittmann
I should also mention that there's a pvcs75 task on sourceforge, but the documentation isn't real good and I couldn't get it to work on the first couple of passes as I am in a hurry. http://sourceforge.net/projects/ant-pvcs-75/ Edward Wittmann [EMAIL PROTECTED] 12/13/2004 01:09 PM Please

Re: Ant and PVCS 8.0

2004-12-13 Thread ed . wittmann
I looked through the docs that he provided and didn't see anything about it. I sent an email to his address, but since that posting was back in 2001 his email address might have changed... Edward Wittmann Jeffrey E Care <[EMAIL PROTECTED]> 12/13/2004 01:20 PM Please respond to "Ant Users Li

RE: Failed to send email when ',' after last line

2004-12-13 Thread Rebhan, Gilbert
Hi, i've found a solution : That reads the file into one line -> value,value,value,... and strips the last ',' so send mail is successful :) Gilbert -Original Message- From: Rebhan, Gilbert Sent: Tuesday, December 14, 2004 8:39 AM To: ant_user (

Re: Ant and PVCS 8.0

2004-12-13 Thread ed . wittmann
Well, I got stuff to work - First of all, version 8 of PVCS uses this new license managment thingy from Macrovision (flexlm) so if you specify a project db, you have to also specify the config file or you get stupid "can't get license file" errors. The pvcs target included with ant (as of 1.6.2

Re: Ant and PVCS 8.0

2004-12-13 Thread Jeffrey E Care
If the tasks are significantly changed then I would think that BC might perhaps be a concern...do you know if the patches you mention maintain BC? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/pro

Re: ant-contrib

2004-12-13 Thread Peter Reilly
use an if in an if? Avg-MODULA-Tester Avg-MODULA-Developer Avg-MODULA-Developer Peter Rebhan, Gilbert wrote: Hi, it's me again ;) Ooops, as the developers should always be informed, even if

RE: ant-contrib

2004-12-13 Thread Rebhan, Gilbert
Hi, it's me again ;) Ooops, as the developers should always be informed, even if property ${infomail.lum} only contains TS, i had to change it like that - see *** : So now my solution with ant-contrib looks like : Avg-MODULA-Tester Avg-MODULA-De

RE: ant-contrib

2004-12-13 Thread Rebhan, Gilbert
Hi, Jan i've tried like you suggested but it gives me nothing, even though the conditions between ... are true. /* */ So now my solution with ant-contrib looks like : Avg-MODULA-Tester

Re: AW: AW: Write Ant files for many modules

2004-12-13 Thread Jean Morissette
[EMAIL PROTECTED] wrote: Oh, another idea: Provide a for each module and uses "depend"-attributes, so Ant can handle the dependency managing of the "targets" (here your modules) for you. Thanks for your response. But, I am not an expert with Ant, so could you explain your idea please. Thanks, J

Re: Ant and PVCS 8.0

2004-12-13 Thread Brass Tilde
> Is anyone here using Ant against PVCS 8? The older pvcs tasks built into > Ant don't seem to work correctly after I tried them out. Not using PVCS 80., but rather 6.8 (on Win2K, SP4), but I received an error similar to yours when I first tried this. What I found (for version 6.8) is that I had

Ant and CCC-harvest

2004-12-13 Thread Neta Bar Tal
Hi, I was wondering if someone is working with ant and ccc_harvest ( a version control system ). are there any tasks for this tool. thanks in advance Neta Bar-Tal * 972-9-7960521 [EMAIL PROTECTED] The information contained in this message is proprietary of Amdocs, protected from disclosur

Ant and PVCS 8.0

2004-12-13 Thread ed . wittmann
Is anyone here using Ant against PVCS 8? The older pvcs tasks built into Ant don't seem to work correctly after I tried them out. I found a posting by Andrew May that had some updates to the pvcs tasks, and I built them into a new version of the nodeps jar file. No joy, though it does fire up t

AW: ant-contrib

2004-12-13 Thread Jan . Materne
A completely different way than if/then/else cascades is via defining properties and use their values. 1. set a property to the output value if the requirement is true 2. set the properties to empty string (dont forget: props are immutable!) 3. print the properties out Quick hack without reading

ant-contrib

2004-12-13 Thread Rebhan, Gilbert
Hi, i have to check a property, if it contains a specific value here is my snippet : ... Gvg-MODULA-Developer ... That works, but i'm looking for a more elegant way. Didn't find an example in the ant-contrib docs. Any idea

JUnit task and TestSuite hierarchy

2004-12-13 Thread James Abley
Hi, This has been previously discussed - see http://marc.theaimsgroup.com/?l=ant-user&m=106200360415717&w=4. I have some nested test suites and the standard XMLJUnitResultFormatter doesn't allow nested test suites, since the document root element is "testsuite". I would like the output to be some

Wrapping an existing core Ant task

2004-12-13 Thread Tony Morris
I am attempting to write an Ant task that wraps the org.apache.tools.ant.taskdefs.Java task. I am having a problem in determining how it is intended by the Ant API to execute tasks manually. For example, if I call org.apache.tools.ant.tasksdefs.Java.execute(), I receive a NullPointerException*.

RE: problems with antcontrib

2004-12-13 Thread Rebhan, Gilbert
Yup, that did it :) Sorry, there are so much conditions, i just didn't saw it. Avg-${infomail.project}-Tester Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 12:

AW: problems with antcontrib

2004-12-13 Thread Jan . Materne
> > > > > > >You´re checking if two string are equal, not whether one > contains the other. > > So, how to do that ?! http://ant.apache.org/manual/CoreTasks/conditions.html Jan

classpath issue

2004-12-13 Thread Rajiv Jaitly
Please read the disclaimer at the bottom of this e-mail. Hi, I have a task (run-jostraca) in my ant script that calls a Java class (org.jostraca.Jostraca) that in turn generates a

RE: problems with antcontrib

2004-12-13 Thread Rebhan, Gilbert
Hi, first problem solved, sorry i should have get that on my own. <-- that did it > > >You´re checking if two string are equal, not whether one contains the other. So, how to do that ?! Gilbert

RE: problems with antcontrib

2004-12-13 Thread Rebhan, Gilbert
Hi, >seems that you´re not using the latest AntContrib ... i know there's already 1.0b1 out, but ... >Property "infomail.project" seems to contain a linefeed. >How do you set that property? the parsed file : projekt=testproject Module A:ab_1_2_3_rc31, Lum:TS, Lum:T7 , repository = CVS i do i

AW: problems with antcontrib

2004-12-13 Thread Jan . Materne
> Env = Win2000 / Ant 1.6.2 / ancontrib - 0.4 seems that you´re not using the latest AntContrib ... > ** Problem Nr.1 = > > Avg-${infomail.project}-Developer <-- properties set above > > > infomail_tolist.txt looks like : > > Avg-testproject > -Developer

problems with antcontrib

2004-12-13 Thread Rebhan, Gilbert
Hi, two problems with antcontrib Env = Win2000 / Ant 1.6.2 / ancontrib - 0.4 here is my snippet : ** Problem Nr.1 = ... ${infomail.owner} <-- Avg-${infomail.project}-Developer <-- properties set above Avg-GR13-SCM-CS <-- ... infoma

Improve 'Uptodate' documentation

2004-12-13 Thread Yves Martin
Hello, As the new Ant 1.6.2 allows composite mapper, I would have find it interesting to read the following example in the 'Uptodate' task documentation (of course because I need such a check): The idea: check that many generated files are up-to-date compared to "source" files from diffe

AW: Wrapping an existing core Ant task

2004-12-13 Thread Jan . Materne
I suggest initializing tasks via getProject().createTask("java"). Especially the reference to the project object is set via this method. I dont know what you want, but maybe scripting via is easier. Jan > -Ursprüngliche Nachricht- > Von: Tony Morris [mailto:[EMAIL PROTECTED] > Gesendet

Re: Write Ant files for many modules

2004-12-13 Thread Yves Martin
Jean Morissette <[EMAIL PROTECTED]> writes: > Hi, > I actually contribute to the development of Sandstorm, a Staged Event-Driven > Architecture (SEDA) based high-performance platform for services > http://www.eecs.harvard.edu/~mdw/proj/seda/ > > Our project source repository has been refactored, s