Ant task

2006-04-27 Thread Irfan J Sayed
Hi, What all the no. of task that we can do with the Ant . I mean is there any command / link which shows the listing of all tasks Please let me know. Regards Irfan Sayed

RE: Advice on making a new task class

2006-04-27 Thread Row M, Vishal
Hi I am not sure about the question , but from what I have understood is you want to run one task if the previous build fails. There are many ways to accomplish this but one of the way is to add Build Listener to your ant file which can do things based on whether you build failed or passed Rega

Ant Task for Creating weblogic domain

2006-04-27 Thread Row M, Vishal
Hi All I have seen the ant task for modifying the domain. Is there any ant task which can create weblogic domain and server ? Thanks and Regards Vishal -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 10:00 AM To: Ant Users List Subject: R

Re: Converting a shell script part to ant target

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

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 d

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 mea

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

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: 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 solu

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 to

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 direc

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:

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: RMIC Unable to Verify Classes

2006-04-27 Thread Alexey N. Solofnenko
's classpath should be the whole classpath from and 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

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 , except that adding . to CLASSPATH (the shell path defined when

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... http://ant

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="/"... Then edit foo.sql so that each function is separated by a line containing a single "/"...

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 > T

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;' Is

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: local.compile.lib

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.

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 > /usr

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 s is from c