RE: How to build silently

2006-04-27 Thread BOUSQUET Jeremie
Thanks for answer, you did not understand because it wasn't clear at all ... ;) My users can override properties in property files expected by build process, but some inputs are used to get values before these property files are loaded. So the only way to define these properties before inputs is

Converting a shell script part to ant target

2006-04-27 Thread pritesh.saharey
Hi, Can anyone help me in converting this piece of code from shell script to an ant target? // # 12 : Check errors at build.msg and the logs echo Check there any errors cd $IMF/build rm -rf /usr/local/error.txt #grep Error *.log *.msg

Task to check file encoding

2006-04-27 Thread Tom Joad
Hello all, I'd like to know if there is a task or class that implements checking text file encoding. I want to be sure that text sources from our development centers have good encoding according to their type. (e;g java source utf-8 , some xml iso*** and some others utf-8° Thanks in advance. Tom.

How to Customize Relative Paths Read From Properties File

2006-04-27 Thread Michael Creech
I want to read some relative path elements from the contents of a properties file, and then create custom absolute paths from these elements by using a different directory then the base directory(which is what ANT wants to add). For example, if we had a properties file with:

Escaping strings in SQL scripts

2006-04-27 Thread Ray Madigan
I have a bunch of functions that I need to write to my SQL database. The functions contain quoted strings that span many lines like 'DECLARE seq RECORD; BEGIN SELECT * INTO seq FROM ...; IF FOUND THEN UPDATE ...; END IF; IF NOT FOUND THEN RETURN ...; END IF; RETURN NULL; END;'

RE: Converting a shell script part to ant target

2006-04-27 Thread Anderson, Rob (Global Trade)
Please read the manual... http://ant.apache.org/manual/index.html You may also benefit from the following... http://www.catb.org/~esr/faqs/smart-questions.html -Rob A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 2:48 AM To:

RE: Escaping strings in SQL scripts

2006-04-27 Thread Anderson, Rob (Global Trade)
It's been a while since I have used the SQL task to load functions. You probably want to set keepformat=true, set delimetertype=row and set delimeter=/... sql driver=org.postgresql.Driver url=jdbc:postgresql://localhost/... userid= ... password= ...

Re: Converting a shell script part to ant target

2006-04-27 Thread Scot P. Floess
I concur wholeheartedly. The online manuals are pretty good. Keep in mind when reading them - ant is much more than just a build tool...it can certainly be used as a scripting language. Using ant contrib helps too :) Anderson, Rob (Global Trade) wrote: Please read the manual...

RMIC Unable to Verify Classes

2006-04-27 Thread Aaron Davies
Hi, I'm having trouble getting the rmic messages about Unable to verify class It is not defined. to go away. My problem is almost exactly like the one described in http://marc.theaimsgroup.com/?l=ant-userm=97069041417063w=2, except that adding . to CLASSPATH (the shell path defined when I

Re: RMIC Unable to Verify Classes

2006-04-27 Thread Alexey N. Solofnenko
rmic's classpath should be the whole classpath from javac and javac output directory. - Alexey. Aaron Davies wrote: Hi, I'm having trouble getting the rmic messages about Unable to verify class It is not defined. to go away. My problem is almost exactly like the one described in

Advice on making a new task class

2006-04-27 Thread Russell, Archie
Hi, I'm new to Ant and would like to make a new task class. The examples I've online found are good pretty basic, they show an execute() method that seems to be run under all circumstances. I'd like to make tasks that are only rerun if they've failed in the most recent attempt (similar to

RE: update from CVS

2006-04-27 Thread Alan Andrade
-Original Message- From: Alan Andrade [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 11:40 AM To: 'Ant Users List' Subject: update from CVS Hi I am trying to update the sourcecode from cvs using the ant script before a build Here is my task: target name=label.build depends=

Re: update from CVS

2006-04-27 Thread Alexey N. Solofnenko
Alan, Please first make sure that the commands are working fine from command line. Cannot find error can indicate that the folder was deleted in the repository (CVS does not support directory versioning, so people change the repository directly). If this is the case, just remove that

How do to conditional javac executable fork?

2006-04-27 Thread Robert Nicholson
If I write a javac task in Ant 1.5 that uses executable and I use a property to detemine the path of the executable. What will javac do if there's no property set? Will it use the jvm that's running ant to do the compile? I suppose I would also need to control fork based on the property

RE: Converting a shell script part to ant target

2006-04-27 Thread pritesh.saharey
Thanks Guys for your nice support and suggestions I will see how can I get benefited from all the URL's you people have provided instead of giving solutions. And I also know the basics of before asking questions in forum that one should try to reach the archive. And also if you don't know the

Re: Advice on making a new task class

2006-04-27 Thread Stefan Bodewig
On Thu, 27 Apr 2006, Archie Russell [EMAIL PROTECTED] wrote: I'm new to Ant and would like to make a new task class. The examples I've online found are good pretty basic, they show an execute() method that seems to be run under all circumstances. You want to read

Re: How do to conditional javac executable fork?

2006-04-27 Thread Stefan Bodewig
On Thu, 27 Apr 2006, Robert Nicholson [EMAIL PROTECTED] wrote: If I write a javac task in Ant 1.5 that uses executable and I use a property to detemine the path of the executable. What will javac do if there's no property set? If you mean you have something like executable=${prop} then Ant

Re: How do to conditional javac executable fork?

2006-04-27 Thread Robert Nicholson
On Apr 27, 2006, at 10:58 PM, Stefan Bodewig wrote: On Thu, 27 Apr 2006, Robert Nicholson [EMAIL PROTECTED] wrote: If I write a javac task in Ant 1.5 that uses executable and I use a property to detemine the path of the executable. What will javac do if there's no property set? If you mean

RE: Converting a shell script part to ant target

2006-04-27 Thread Jeffrey E Care
Speaking strictly for myself, I'll either just ignore queries like this or respond in the manner that Rob did. The problem is the way you phased your question: I (and I'm sure many of the other experienced users) saw your question as an attempt to get us to do your work for you. You provided no

Re: Converting a shell script part to ant target

2006-04-27 Thread Ninju Bohra
Interesting challenge, Try looking at the fileset type with a contains selector to restrict the files to those that contain your specified text. You can follow that with a pathconvert with a setonempty attribute to control the defining a property only if any files containing your desired text