Re: What is the best way to loop in ant?

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, E. J. Ciramella <[EMAIL PROTECTED]> wrote: > We need to run the oracle wrap utility, it takes two parameters, > iname and oname (in file which would be in my case .sql files and > oname .xxx). Can help you? Stefan -- To unsubscribe, e-mail:

Re:

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, Hanasaki JiJi <[EMAIL PROTECTED]> wrote: > Should new properties/refid in the called available in the parent? They are not. > Should parent properties, that are changed by the reflected in the parent? They are not (well reference changes may propagate back, it depends on

Re: Passing classpath information between build scripts

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, Jacob Kjome <[EMAIL PROTECTED]> wrote: > You need to explicitly add inheritRefs="true" to the call > to your build file. It defaults to false. Note the difference from > the inheritAll attribute which defaults to "true". Historic reasons. inheritAll should have been false

Re: conditions and property's

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, Scott Klein <[EMAIL PROTECTED]> wrote: > I started by looking at the task, but I couldn't find a way > to determine whether or not to execute a fail, supports if/unless. As far as unsetting properties goes, you are already using , right? will create a property named

Re: conditions and property's

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, Matt Benson <[EMAIL PROTECTED]> wrote: > As I understand it, you could unset a property programmatically, No, not even programmatically. What you said is true for changing the value of a property. You can do that with a task of your own (or

RE: Passing classpath information between build scripts

2002-11-13 Thread Jacob Kjome
You need to explicitly add inheritRefs="true" to the call to your build file. It defaults to false. Note the difference from the inheritAll attribute which defaults to "true". Jake At 09:02 PM 11/13/2002 -0700, you wrote: Dominique, I think you example is backwards from what I described.

RE: Passing classpath information between build scripts

2002-11-13 Thread Dave Rathnow
Dominique, I think you example is backwards from what I described. Never-the-less, it is similar to what I'm looking for, except I can't get the refid passed from one build script to another. Have you gotten this to work? Dave. > -Original Message- > From: Dominique Devienne [mailto:DDe

RE: What is the best way to loop in ant?

2002-11-13 Thread Ciramella, E.J.
is it an acceptable solution to simply write the batch/shell script to do the wrapping with ant and then let ant handle the rest (renaming, copying, etc...). -Original Message- From: Ciramella, E.J. Sent: Wednesday, November 13, 2002 10:30 PM To: Ant Users List Subject: RE: What is the b

RE: What is the best way to loop in ant?

2002-11-13 Thread Ciramella, E.J.
We need to run the oracle wrap utility, it takes two parameters, iname and oname (in file which would be in my case .sql files and oname .xxx). Is there a way to iterate though all the files and pass them to wrap.exe? -Original Message- From: Dominique Devienne [mailto:DDevienne@;lgc.co

ant-user@jakarta.apache.org

2002-11-13 Thread Hanasaki JiJi
build.xml has an Thank you -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= =

Re: fileset/dirset on dirs with regex

2002-11-13 Thread Sebastien BLANC
> the only way I > can think of is to copy everything to another dir with a mapper and jar. > seb. this does not work since all my java package name under ejb-jar-* begin with the same name and so everytime I copy I erase the previous copy. any idea ? -- To unsubscribe, e-mail:

Re: fileset/dirset on dirs with regex

2002-11-13 Thread Sebastien BLANC
jar task does not support mapper nested element as copy does. the only way I can think of is to copy everything to another dir with a mapper and jar. seb. Sebastien BLANC wrote: > Hello ! > I'm trying to produce a jar from the following configuration: > I want to jar all the classes under n direc

fileset/dirset on dirs with regex

2002-11-13 Thread Sebastien BLANC
Hello ! I'm trying to produce a jar from the following configuration: I want to jar all the classes under n directories, these directories can all be described by the following regex: ejb-jar-*. the problem is that I can't see how to compute this set of directories coz if I give a fileset ejb-jar-*

RE: entity reference

2002-11-13 Thread Jeff Johnson
It turns out that there were some '%' characters in the body of the build.xml which caused the XML parser to fail. Technically, within an XML document's body, the '%' character has no significance and does not need to be escaped. Nonetheless, since the parser was having troubles with the '%' c

Re: Javac Number Crunching

2002-11-13 Thread stwells
Tim, See JavaNCSS http://www.kclee.com/clemens/java/javancss/ > Tim Sheridan <[EMAIL PROTECTED]> wrote: > > ANT is more than another neat tool ... it is a great tool! > > My question is this: is there a way I can aggregate stats on the > number of > compiled files, lines compiled, etc., aft

entity reference

2002-11-13 Thread Jeff Johnson
Greetings, Has anyone seen this error when including entity references in their Ant buildfiles? "Parameter entity references must not appear within markup declarations in the internal DTD subset." What I have is: = = build.xml = = ]> ..

RE: conditions and property's

2002-11-13 Thread Dominique Devienne
What you describe seems very unlikely to be possible... And to be honest I don't see why you need this. A common idiom/pattern in using Ant is to generate all build products in a build/ directory (which doesn't exist previously), and the 'clean' target just removes that one directory. If anything

RE: conditions and property's

2002-11-13 Thread Klein, Scott @ TW
well, then let me back it all the way up. all i want to do is perform a series of tasks and revert to the original state if any errors occur. I started by looking at the task, but I couldn't find a way to determine whether or not to execute a fail, which led me down the long path described previ

RE: weblogic ejbc work...

2002-11-13 Thread Narayanan, Gopalakrishnan
http://www.mail-archive.com/ant-user@;jakarta.apache.org/msg20995.html -Original Message- From: Ciramella, E.J. [mailto:EJ.Ciramella@;workscape.com] Sent: Wednesday, November 13, 2002 3:59 PM To: Ant Users List Subject: weblogic ejbc work... ... not working... Has anyone had great succ

weblogic ejbc work...

2002-11-13 Thread Ciramella, E.J.
... not working... Has anyone had great success with this the ejb-jar (weblogic) task? There was an excellent example of how this works on the mailing list archive page, but now I can't find it. If anyone has a good example of this, please post -- To unsubscribe, e-mail:

RE: conditions and property's

2002-11-13 Thread Matt Benson
One way to do this is with . I have been known to use ant-contrib's to iterate through a set of subproject directory names, for example, to make antcalls to a generic target, specifying the subproject to build. Am I making sense? -Matt --- "Klein, Scott @ TW" <[EMAIL PROTECTED]> wrote: > Sorry

RE: conditions and property's

2002-11-13 Thread Dominique Devienne
The problem I have is that I don't understand your example! What does do? What's your srcfile and targetfile??? Do you know that is intelligent, and will only do a copy if needed? In any case, since you're using , check the file exists after doing the , and not before, since all properties def

RE: conditions and property's

2002-11-13 Thread Klein, Scott @ TW
Sorry, I thought I had explained that. I am trying to make multiple calls to a 'generic' target (see example below), but have the execution of said target be based on a property. This means that a property must be able to be "unset". Note that since Ant doesn't support if/else I assume that the onl

RE: conditions and property's

2002-11-13 Thread Dominique Devienne
You should not depend on any logic which requires unsetting a property... That's just how Ant works and was designed. I'm pretty sure Ant can do what you want it to do, provided you shift your thinking around... Ant is not a scripting language, and whenever one tries to bend it that way, it quickly

Re: conditions and property's

2002-11-13 Thread Matt Benson
As I understand it, you could unset a property programmatically, but not via normal use of the property task in an Ant buildfile. -Matt --- Hari Kodungallur <[EMAIL PROTECTED]> wrote: > actually, it will be very helpful for me also to > know whether we > can unset a property. > > scott, howeve

Re: conditions and property's

2002-11-13 Thread Hari Kodungallur
actually, it will be very helpful for me also to know whether we can unset a property. scott, however, you can use the task provided by ant-contrib (its on sourceforge http://sourceforge.net/projects/ant-contrib) as a work around. thats what i am doing now say the value of the property "this.

Re: Javac Number Crunching

2002-11-13 Thread Erik Hatcher
If you're good with XSLT, use the XmlLogger (as a listener, oddly) and capture build output as XML and have at it! Erik Tim Sheridan wrote: ANT is more than another neat tool ... it is a great tool! My question is this: is there a way I can aggregate stats on the number of compiled files, lin

Re: documentation of delta between 1.5 and 1.5.1?

2002-11-13 Thread neilg
Thanks again Stefan, Good to know we're not alone. I guess we'll just have to avoid calling the task on these JDK's. Thanks, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMAIL PROTECTED] |-+> |

Re: multiple entity includes?

2002-11-13 Thread Nolan Ring
Bingo - mega thanks. Nolan Dominique Devienne wrote: You mean doing something like this? --DD --- acme/jeewiz/common.xml --- ... --- acme/jeewiz/recurse.xml --- ... --- acme/jeewiz/build.xml --- ]> default="build"> &common; &recurse; ... --- acme/foobar/build.xml

Re: documentation of delta between 1.5 and 1.5.1?

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, <[EMAIL PROTECTED]> wrote: > we've had NPE's thrown when using the task. Seems to only > occur on IBM JDK 1.3.0/1.3.1, especially on WinNT. Never > observed this before upgrading to 1.5. This is a known issue (that is marked WONTFIX, but would be better worded as CANTFIX i

RE: silly question on "echo" task

2002-11-13 Thread EXT / FOCAL MALAPRADE Roland
Instead of using empty echo message to insert a new line, just use ${line.separator} which will put a system-dependant (I think) return-carriage in your file (be careful if build running on Windows, and files destined for a Unix machine) Roland. > -Message d'origine- > De : Hari Kodungall

Re: documentation of delta between 1.5 and 1.5.1?

2002-11-13 Thread neilg
Thanks Stefan, Darn; I saw that page but didn't look down to the bottom. :( No mention of the problem we've noticed: Intermittently--and unrepeatably--we've had NPE's thrown when using the task. Seems to only occur on IBM JDK 1.3.0/1.3.1, especially on WinNT. Never observed this before upgra

Re: silly question on "echo" task

2002-11-13 Thread Hari Kodungallur
Note that the message output for an echo is anything from to . When you indent your build.xml one tab, those echo tasks where you specify on the next line (one tab indented) would output one newline and a tab and thats what is contained between and -HK On Wed, 13 Nov 2002 Jay Yarbrough

Re: documentation of delta between 1.5 and 1.5.1?

2002-11-13 Thread Stefan Bodewig
On Wed, 13 Nov 2002, <[EMAIL PROTECTED]> wrote: > I'm probably missing something obvious, but a look around the > website didn't net me any info as to how 1.5.1 and 1.5 differ. Stefan -- To unsubscribe, e-mail:

RE: converting date/time

2002-11-13 Thread Matt Benson
Again, what I was talking about was a less date/time-centric approach: Here "${dirname#DirName_}" returns "0206" using pattern matching: "If the pattern matches the beginning of the variable's value, delete the shortest part that matches and return the rest." (O'Reilly, Learning the bash She

documentation of delta between 1.5 and 1.5.1?

2002-11-13 Thread neilg
Hi all, I'm probably missing something obvious, but a look around the website didn't net me any info as to how 1.5.1 and 1.5 differ. In the project I work on, we've seen some intermittent problems with 1.5 (things that weren't in 1.4.1); before upgrading, I thought I'd see what the list of change

RE: multiple entity includes?

2002-11-13 Thread Dominique Devienne
You mean doing something like this? --DD --- acme/jeewiz/common.xml --- ... --- acme/jeewiz/recurse.xml --- ... --- acme/jeewiz/build.xml --- ]> &common; &recurse; ... --- acme/foobar/build.xml --- ]> &common; &recurse; ... -Original Message

RE: converting date/time

2002-11-13 Thread EXT / FOCAL MALAPRADE Roland
I don't think it's any good. the "property" attribut for is the propery which will store the date. only sets the property to the current date/time Thanks anyway, Roland > -Message d'origine- > De : Hari Kodungallur [mailto:hkodungallur@;rediffmail.com] > Envoye : mercredi 13 novembre 20

Re: RE: converting date/time

2002-11-13 Thread Hari Kodungallur
You can do a lot of such things using tstamp with format. You cant do string manipulation though. This is only for date and time -HK On Wed, 13 Nov 2002 EXT / FOCAL MALAPRADE Roland wrote : Yes that's what I'm looking for. something like this: then ${newdate} = 2002-06-01 I supposed it woul

Re: converting date/time

2002-11-13 Thread Hari Kodungallur
Try and use the value of the property MY.TIME -HK On Wed, 13 Nov 2002 EXT / FOCAL MALAPRADE Roland wrote : I have a series of month-based directories in the format "DirName_yyMM". So for example: DirName_0206 is the directory for June 2002. In these directory, I need to replace dates

RE: converting date/time

2002-11-13 Thread EXT / FOCAL MALAPRADE Roland
Yes that's what I'm looking for. something like this: then ${newdate} = 2002-06-01 I supposed it would be better like this: property date = 0206 then ${newdate} = 2002-06-01 There doesn't seems to be anything like this in Ant already, I'll probably have to code it myself Roland. > -

Re: converting date/time

2002-11-13 Thread Matt Benson
Are you saying that, based on the directory name being DirName_0206, you would know the corresponding date would be 2002-06-01? If so, then it seems like some simple String operations would do the trick... this led me to think how cool it would be if the properties syntax were expanded to include

silly question on "echo" task

2002-11-13 Thread Jay Yarbrough
I have been using the echo task to create a text file, during the build process. It would seem that indention of the xml code actually affects the output from the echo task. Am I crazy, or is this the case? If I indent the following snippet a single tab, it causes the output to be different, fr

converting date/time

2002-11-13 Thread EXT / FOCAL MALAPRADE Roland
I have a series of month-based directories in the format "DirName_yyMM". So for example: DirName_0206 is the directory for June 2002. In these directory, I need to replace dates in some files, but I need the date in the format -MM-dd, for example, "2002-06-01". Is there any task that can do t