AW: RTFM, literally

2005-03-15 Thread Jan . Materne
> What should that be? The official homepage is http://ant.apache.org/ and the manual is on http://ant.apache.org/manual/ and the manual to sais Nested elements manifest The manifest nested

Re: decompose build.xml

2005-03-15 Thread Martin Cooper
On Wed, 16 Mar 2005, THUFIR HAWAT wrote: a google search on "ant +decompose +'build.xml'" isn't sufficiently answering the question of: can a build file be decomposed? RTFM is likely more effective in this particular case than a Google search. In particular, you might want to look at , , , , a

Re: decompose build.xml

2005-03-15 Thread Antony Paul
You mean split a build file in to smaller ones. That is possible. You can call targets of another build file from one using or import a build file using rgds Antony Paul On Wed, 16 Mar 2005 06:03:24 +, THUFIR HAWAT <[EMAIL PROTECTED]> wrote: > a google search on "ant +decompose +'build.xml

decompose build.xml

2005-03-15 Thread THUFIR HAWAT
a google search on "ant +decompose +'build.xml'" isn't sufficiently answering the question of: can a build file be decomposed? thanks, Thufir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RTFM, literally

2005-03-15 Thread THUFIR HAWAT
the build file:

Re: ant roadmap?

2005-03-15 Thread Conor MacNeill
Andrew Ferguson wrote: hi, just wondering - is there a roadmap for ant development? this is purely because there was talk about ant 2 at some point a while ago (Jan 2003), but I've not heard anything since :) http://ant.apache.org/ant2/ The concept of ant2 has been largely left behind. Ant

Re: compile two classes

2005-03-15 Thread Conor MacNeill
THUFIR HAWAT wrote: ^ missing a > - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: compile two classes

2005-03-15 Thread THUFIR HAWAT
seems to be doing this, but I'm having trouble following the directions there. Currently I'm getting a syntax error WRT to jar. I need to nest jar, then nest the manifest? data: D:\> D:\> D:\>type build.xml

Re: How To Parse ${basedir} ??

2005-03-15 Thread dbrosius
Quoting Brent Bain <[EMAIL PROTECTED]>: > Am I missing something obvious that will let me parse the basedir property > if I always know that I'm looking for a specific word (repo) and return > everything before that? Something that would look at my basedir: > C:\repo\projects\source\ant > and r

How To Parse ${basedir} ??

2005-03-15 Thread Brent Bain
Hello: I am attempting to remove references to hard coded drive letters as some of our machines build from different drives or on linux environments. Our current path structure looks like: C:\repo\project\source\ant\ C:\repo\libraries\ Since the ant references files in the libraries folder we cu

Re: ant roadmap?

2005-03-15 Thread Antoine Levy-Lambert
Andrew Ferguson wrote: hi, just wondering - is there a roadmap for ant development? this is purely because there was talk about ant 2 at some point a while ago (Jan 2003), but I've not heard anything since :) http://ant.apache.org/ant2/ I am not sure about ant2. There is work in progress

Re: classloader problem / nested classpath

2005-03-15 Thread Antoine Levy-Lambert
ludger goeke wrote: Hallo Jan, im referencing the claspath already with "classpathref" in the tag. Is this equal to a nested class-path tag ? It is exactly the same. I´m also referencing all needed jar-files in the manifest in the jar file that I execute ? Do I have to nethertheless define a nes

ant roadmap?

2005-03-15 Thread Andrew Ferguson
hi, just wondering - is there a roadmap for ant development? this is purely because there was talk about ant 2 at some point a while ago (Jan 2003), but I've not heard anything since :) http://ant.apache.org/ant2/ thanks, Andrew

Re: VSSGet Task and synchronization

2005-03-15 Thread Sébastien Annedouche
Thanks for your help, I'll take a look at it. Sebastien Ninju Bohra wrote: VSS does not give you an easy way to delete un-needed local files... When we used VSS with CruiseControl for our continous integration goal we were lucky because had already written a VSS Source Control compoent that would

Re: VSSGet Task and synchronization

2005-03-15 Thread Sébastien Annedouche
Vadim Kazakov wrote: We delete our code tree before doing a VSSGet. Is that an option for you? it could be an option but I don't like it, mainly because, if nothing has changed, you do a lot of job for nothing... Thanks for your answer! Sebastien --

RE: VSSGet Task and synchronization

2005-03-15 Thread Vadim Kazakov
We delete our code tree before doing a VSSGet. Is that an option for you? -Original Message- From: Sébastien Annedouche [mailto:[EMAIL PROTECTED] Sent: March 15, 2005 2:10 AM To: Ant Users List Subject: VSSGet Task and synchronization Hi all, I use vssget task to retrieve files from a v

Re: VSSGet Task and synchronization

2005-03-15 Thread Ninju Bohra
VSS does not give you an easy way to delete un-needed local files... When we used VSS with CruiseControl for our continous integration goal we were lucky because had already written a VSS Source Control compoent that would set a property if a file had been deleted in a VSS project tree. I belie

classloader problem / nested classpath

2005-03-15 Thread ludger goeke
Hallo Jan, im referencing the claspath already with "classpathref" in the tag. Is this equal to a nested class-path tag ? I´m also referencing all needed jar-files in the manifest in the jar file that I execute ? Do I have to nethertheless define a nested classpath in ? Regards Ludger -- DSL K

SV: Handling Exec errorcodes

2005-03-15 Thread Henrik Skovhus Poulsen
message completed: Hi Thanks for the input. I'm currently only using ant 1.6 but would need to upgrade to 1.6.2 to be able to use redirector feature. So for now I have added the lines to the sqlscripts and now I get the build error message. Thanks alot for your input. However there would still b

RE: Handling Exec errorcodes

2005-03-15 Thread Dick, Brian E.
Use the sqlplus -L switch. -Original Message- From: Henrik Skovhus Poulsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 9:23 AM To: Ant Users List Subject: SV: Handling Exec errorcodes Hi Thanks for the input. I'm currently only using ant 1.6 but would need to upgrade to 1.6

SV: Handling Exec errorcodes

2005-03-15 Thread Henrik Skovhus Poulsen
Hi Thanks for the input. I'm currently only using ant 1.6 but would need to upgrade to 1.6.2 to be able to use redirector feature. So for now I have added the lines to the sqlscripts and now I get the build error message. Thanks alot for your input. However there would still be an issue where I t

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

2005-03-15 Thread David Resnick
Sounds good to me. Then I can get rid of the extra code in the macro that removes the warning. -David -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 16:11 To: Ant Users List Subject: Re: Why "Trying to override old definition of task xxx" m

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

2005-03-15 Thread David Resnick
Yep, that was it! Thanks a lot for the help. -David -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 14:52 To: Ant Users List Subject: Re: Why "Trying to override old definition of task xxx" message? The problem is most likely the default va

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

2005-03-15 Thread Peter Reilly
I have implemented a test for this in ant cvs. So ant 1.6.3 should not show the "task override" warning for this situation. Peter Peter Reilly wrote: The problem is most likely the default value for the "dest" attribute if you are using , or For example: this iss

RE: Handling Exec errorcodes

2005-03-15 Thread Dick, Brian E.
At the beginning of your sqlplus script you should add something similar to the following. whenever oserror exit failure rollback whenever sqlerror exit failure rollback These lines will cause sqlplus to set the exit code. If you don't want to hardcode these lines in all of your sqlplus

Handling Exec errorcodes

2005-03-15 Thread Henrik Skovhus Poulsen
Hi I'm currently trying to call sqlplus from the exec task. But I kinda need away to know if the command succedes or not. I been using the resultproperty option to see if the return code is different from when the command is a success and when its a failure. But this is not the case. Does anyone

Re: compile two classes

2005-03-15 Thread Jeffrey E Care
supports a nested manifest; use that. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis THUFIR HAWAT <[EMAIL PROTECTED]> wrote on 03/15/2005 05:38:55 AM: > build.xml: > > > >

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

2005-03-15 Thread Peter Reilly
The problem is most likely the default value for the "dest" attribute if you are using , or For example: this issue was reported as bug 31215. http://issues.apache.org/bugzilla/show_bug.cgi?id=31215 This issue are happened a number of times, so I think that the a

Re: Problem with fileset having members containing absolute path names

2005-03-15 Thread Peter Reilly
Holger Rauch wrote: Hi Peter! Thanks a lot for your quick reply! On Tue, 15 Mar 2005, Peter Reilly wrote: One can have a top-level fileset on unix. What happens on Windows? Do I have to use some other value for dir there? There is no top-level directory on windows. Each file system has i

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

2005-03-15 Thread David Resnick
-Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 12:44 To: Ant Users List Subject: Re: Why "Trying to override old definition of task xxx" message? What does the macrodef look like? Peter David Resnick wrote:

Re: Problem with fileset having members containing absolute path names

2005-03-15 Thread Holger Rauch
Hi Peter! Thanks a lot for your quick reply! On Tue, 15 Mar 2005, Peter Reilly wrote: > One can have a top-level fileset on unix. What happens on Windows? Do I have to use some other value for dir there? > [...) > However, the filename specs in the includes still need to be relative > so they

Re: Using multiple if on target element

2005-03-15 Thread Antony Paul
Thanks Ronen. Using element outside target helped. On Tue, 15 Mar 2005 12:26:13 +0200, Ronen Mashal <[EMAIL PROTECTED]> wrote: > You don't have to write a target but you will have to use the > task to set a third property. Use the nested elements in the > . > The task can be used outside of a

AW: compile two classes

2005-03-15 Thread Jan . Materne
it would be easier to use the as nested element of . Jan > -Ursprüngliche Nachricht- > Von: THUFIR HAWAT [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 15. März 2005 11:39 > An: Ant Users List > Betreff: compile two classes > > build.xml: > > > > > > >

AW: question

2005-03-15 Thread Jan . Materne
? Jan > -Ursprüngliche Nachricht- > Von: rakesh mailgroups [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 15. März 2005 11:38 > An: Ant Users List > Betreff: question > > Hi, > > I would like my build file to abort if a file does not exist. > > I couldn't find a way to find out if

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

2005-03-15 Thread Peter Reilly
What does the macrodef look like? Peter David Resnick wrote: I renamed the macro attributes (which were includes, source and dest) to names that are definitely not in use, but there is no change. I also thought that the problem might be with the name of the macro clashing with the copy task, but as

Re: question

2005-03-15 Thread James Fuller
rakesh mailgroups wrote: Hi, I would like my build file to abort if a file does not exist. I couldn't find a way to find out if the file exists, but I did see a way to check for the existence of properties (since the file is a property file), I did this: Value of password is ${sun.password}

Re: question

2005-03-15 Thread Peter Reilly
You need to use the property name and not it's value. So: Value of password is ${sun.password} should be ok. Peter rakesh mailgroups wrote: Hi, I would like my build file to abort if a file does not exist. I couldn't find a way to find out if the file exists, but I did see a way t

compile two classes

2005-03-15 Thread THUFIR HAWAT
build.xml:

question

2005-03-15 Thread rakesh mailgroups
Hi, I would like my build file to abort if a file does not exist. I couldn't find a way to find out if the file exists, but I did see a way to check for the existence of properties (since the file is a property file), I did this: Value of password is ${sun.password} However,

Re: Problem with fileset having members containing absolute path names

2005-03-15 Thread Peter Reilly
One can have a top-level fileset on unix. However, the filename specs in the includes still need to be relative so they cannot include a leading directory separator. files: ${files.converted} files2: ${files2.converted} outputs: top: [echo] files: etc/passwd [echo]

RE: MS Word automation

2005-03-15 Thread David Resnick
Yes, that sounds good! I didn't think of that... Thanks! -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 12:20 To: user@ant.apache.org Subject: AW: MS Word automation You can use scripting - simply use your favorite scripting l

Re: Using multiple if on target element

2005-03-15 Thread Ronen Mashal
You don't have to write a target but you will have to use the task to set a third property. Use the nested elements in the . The task can be used outside of a target. It will be evaluated before any target is executed. Ronen. Antony Paul <[EMAIL PROTECTED]> wrote on 03/15/2005 12:14:07 PM: >

AW: Using multiple if on target element

2005-03-15 Thread Jan . Materne
> I need to check whether two properties are set before executing a > task. I could check for one property using if attribute of target. How > to check for 2 properties are set ?. > I dont want to write another target to check this condition. Inside core ant you have to

AW: MS Word automation

2005-03-15 Thread Jan . Materne
You can use scripting - simply use your favorite scripting language and BSF. Then script against JaWin´s API. It´s the same as scripting against Ant´s or Java´s API :-) Jan > -Ursprüngliche Nachricht- > Von: David Resnick [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 15. März 2005 1

Re: Problem with fileset having members containing absolute path names

2005-03-15 Thread Kristian Perkins
I've never used a top level fileset before, didn't think you could do that. I would use a which contained the fileset. Holger Rauch wrote: Hi! I've run into a problem using filesets whose members contain absolute path names. The following short build script illustrates the problem. My ques

Using multiple if on target element

2005-03-15 Thread Antony Paul
Hi all, I need to check whether two properties are set before executing a task. I could check for one property using if attribute of target. How to check for 2 properties are set ?. I dont want to write another target to check this condition. -- rgds Antony Paul http://www.geocities.com/a

RE: MS Word automation

2005-03-15 Thread David Resnick
Interesting possibility, but I am hoping to do it with some kind of scripting (so I won't have the overhead of compiling). Thanks for the suggestion though! -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 09:27 To: user@ant.apac

RE: MS Word automation

2005-03-15 Thread Keith Hatton
Hmm, you're right. I'm sure it used to support VBScript, that was obviously an "improvement" when BSF migrated from IBM to Apache... -Original Message- From: David Resnick [mailto:[EMAIL PROTECTED] Sent: 15 March 2005 09:29 To: 'Ant Users List' Subject: RE: MS Word automation I thought

Problem with fileset having members containing absolute path names

2005-03-15 Thread Holger Rauch
Hi! I've run into a problem using filesets whose members contain absolute path names. The following short build script illustrates the problem. My questions are: Why is the property files.converted (supposed to hold the fileset's contents) empty even though the files actually exist on my system?

RE: MS Word automation

2005-03-15 Thread David Resnick
I thought of doing it from BSF but I don't know what language supports COM automation. I can't find VBScript on the BSF page. I was hoping to do it with Jython and am trying to get that to work. Thanks for the suggestion though! -David -Original Message- From: Keith Hatton [mailto:[EMAI

VSSGet Task and synchronization

2005-03-15 Thread Sébastien Annedouche
Hi all, I use vssget task to retrieve files from a visual source safe database before compiling. It works fine but I don't know how to handle deleted source files ? Should I use vsshistory and parse the output for deleted files and delete them locally ? Does anyone know a way to do that ? Thank

RE: MS Word automation

2005-03-15 Thread Keith Hatton
Maybe user

AW: classloader problem

2005-03-15 Thread Jan . Materne
you have to provide a nested to . Jan > -Ursprüngliche Nachricht- > Von: ludger goeke [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 15. März 2005 03:41 > An: user@ant.apache.org > Betreff: classloader problem > > Hallo , > > I´m using ant as development enviroment and got followin

classloader problem

2005-03-15 Thread ludger goeke
Hallo , I´m using ant as development enviroment and got following problem : when I try to load a class with the Class.forName() method in my application I always get a ClassNotFound exception, although I set the Classpath additionally as an enviroment variable. Does anybody has an idea ? Regards