Re: Using Ant with older Java versions

2006-10-25 Thread Antoine Levy-Lambert
Hello Wayne, you need to set both executable and fork="true" Regards, Antoine Wayne Cannon wrote: > True, it's just a warning, however, I've found that if you don't > eliminate 100% of the warnings (and not just by suppressing warnings), > meaningful warnings are missed that should result in code

Re: String manipulation

2006-10-25 Thread Antoine Levy-Lambert
Hello Rodrigo, the basename task does this out of the box. Open the Ant manual. Regards, Antoine Rodrigo Monteiro wrote: > Hello all, > > I'm new in Ant... so this might be an easy question. > > I pass in the command line an parameter > ant -Dtest=/tmp/tmp2/tmp3 -buildfile teste.xml > What I need

Re: Javadoc task not working in 1.7beta3?

2006-10-25 Thread Antoine Levy-Lambert
Hello Adrian, I do not know where this problem is coming from. What about filling in a bug report with a simple build.xml, specifying your environment (OS, JDK version). Regards, Antoine Rodriguez, Adrian wrote: > Hi. I can't javadoc to generate my documentation using 1.7beta3. Here > are the me

Re: Using Ant with older Java versions

2006-10-25 Thread Wayne Cannon
True, it's just a warning, however, I've found that if you don't eliminate 100% of the warnings (and not just by suppressing warnings), meaningful warnings are missed that should result in code changes. I suspect "executable" is what I'm looking for, but when I set it to the Java 1.3.1_18 JDK,

Re: Using Ant with older Java versions

2006-10-25 Thread Scot P. Floess
I think its just a warning...not that it doesn't compile. I tried it on my machine (which has JDK 1.5.0_08 installed) and it did compile... David Jones wrote: Hi, Source and target define what compatibility to use, not which JDK is being used. So 1.5 probably just will not allow that to com

Re: Using Ant with older Java versions

2006-10-25 Thread David Jones
Hi, Source and target define what compatibility to use, not which JDK is being used. So 1.5 probably just will not allow that to compile. However, you could tell it to use a different JDK (1.3), using the executable option, and then it would actually be compiling with that version of java. That

Re: Using Ant with older Java versions

2006-10-25 Thread Scot P. Floess
Wayne: This is just a warning...the compilation should have happened. If you don't want to see the warning, try using Wayne Cannon wrote: I'm attempting to convert a Java 1.3project to Ant that has an attribute named "enum" (Java 1.3 did not have an Enum class) -- "Enumeration enum;".

Using Ant with older Java versions

2006-10-25 Thread Wayne Cannon
I'm attempting to convert a Java 1.3project to Ant that has an attribute named "enum" (Java 1.3 did not have an Enum class) -- "Enumeration enum;". I have source and target attributes set to "1.3", but still get the following error message: warning: as of release 1.5, 'enum' is a keyword, and

Re: String manipulation

2006-10-25 Thread Rodrigo Monteiro
Hi Scot, On 10/25/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: Ant contrib has a nice propertyregex task if you need to do regular expressions. However, if this property contains a path and file name (which I believe is the case), try the basename task. It's what I was looking for. Thanks!

RE: Question.

2006-10-25 Thread Bret Kumler
Is there a way to pipe a file to the input and have the process spawned to the background? testprogram < test.txt Thanks -Original Message- From: Bret Kumler Sent: Wednesday, October 25, 2006 10:46 AM To: Ant Users List Subject: Question. How would one execute the following via ant?

Re: String manipulation

2006-10-25 Thread Scot P. Floess
Ant contrib has a nice propertyregex task if you need to do regular expressions. However, if this property contains a path and file name (which I believe is the case), try the basename task. Rodrigo Monteiro wrote: Hello all, I'm new in Ant... so this might be an easy question. I pass in

RE: AW: dynamic targets

2006-10-25 Thread Mathew Delong
I agree that it would be nice if subant would be modified to include this functionality. In the meantime, if you, as you said, prefer not to create custom Ant tasks, and you don't like my previous suggestion that requires you to have a "template" build file containing all of the skeleton targets

String manipulation

2006-10-25 Thread Rodrigo Monteiro
Hello all, I'm new in Ant... so this might be an easy question. I pass in the command line an parameter ant -Dtest=/tmp/tmp2/tmp3 -buildfile teste.xml What I need to do is to get only the content of ${test} after the last "/", in this case "tmp3". How can I do that? regards, Rodrigo. -

Javadoc task not working in 1.7beta3?

2006-10-25 Thread Rodriguez, Adrian
Hi. I can't javadoc to generate my documentation using 1.7beta3. Here are the messages I constantly receive when I run the javadoc task: Does anyone have any insight on this? thanx =) [javadoc] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl [javadoc] at com.sun.tools.java

Question.

2006-10-25 Thread Bret Kumler
How would one execute the following via ant? echo 'start lstn' | testprogram Where testprogram is located say C:/testarea/bin. Do I use ? Thanks This e-mail message and any attachments may contain private, confidential, proprietary or privileged material of GoldenGate Software, Inc. that

RE: AW: dynamic targets

2006-10-25 Thread Jacob Kjome
Thanks to you all for your comments. I guess I finally did get my point across and you all came up with interesting options. I try to avoid writing custom tasks and such if I can do them using a macrodef or scriptdef, but this one might require a custom file selector, such as DD suggested (along

Re: AW: dynamic targets

2006-10-25 Thread Dominique Devienne
On 10/25/06, Mathew Delong <[EMAIL PROTECTED]> wrote: Like others said, failonerror="false" (someone mistyped this and said "true" but meant false) Thanks for the correction. One very easy solution I see is in every "individual" build file include a line like: This fulfills your requiremen

RE: AW: dynamic targets

2006-10-25 Thread Mathew Delong
Like others said, failonerror="false" (someone mistyped this and said "true" but meant false) is a bad idea for the same reason that was already mentioned: you only want it to not fail if the target doesn't exist in a file, but want it to still fail for everything else. One very easy solution I

Re: AW: dynamic targets

2006-10-25 Thread Dominique Devienne
Yep, is powerful and extremely useful and I use it all the time. I tried to keep my example specific and concrete so as not to complicate the question. But it seems to have caused the original point of this exercise to be entirely missed. Indeed. Yet now that I understand what you are after,

Re: Example: error loading a mysqldump file

2006-10-25 Thread Peter Reilly
SqlExec is full of bugs (see the bugzilla database). Try using keepformat="true" Peter On 10/25/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: Hunter: OK, I see what you are saying now... Sorry :( Apparently I wasn't paying attention to what you were saying... Its odd to me the implementatio