Detecting failure!

2006-08-10 Thread timujain
Hi there, How can I detect or failure to call another as plan B rather than failing the entire build? -- View this message in context: http://www.nabble.com/Detecting-%3Ctarget%3E-failure%21-tf2088943.html#a5757429 Sent from the Ant - Users forum at Nabble.com. -

Logging System

2006-08-10 Thread subir bhaumik
Hi I am using ant programmitacally for compilation of modules.Its OK. But i want the log for compilation erros in a file.I have tried XmlLogger, DefaultLogger.But these are not showing compilation errors.I want compilation errors to be written in a file not in console. Is it p

RE: RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Antoine, Thanks for the correction and explanation, I'll give it a go. Cheers, Hoos -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 23:24 To: Ant Users List Subject: Re: RE: Calling ant tasks from jython Hello Hussein, the first version need

Re: RE: Calling ant tasks from jython

2006-08-10 Thread Antoine Levy-Lambert
Hello Hussein, the first version needs a line like : mkdir.setProject(project); before mkdir.execute(); the reason is that execute() contains calls to log and requires the project object to be set. Regards, Antoine Original-Nachricht Datum: Thu, 10 Aug 2006 21:33:51 +0100

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Peter, Many thanks for your help, here are my findings: In your first example you suggested: import org.apache.tools.ant.taskdefs.Mkdir as Mkdir import java.io.File as File testDir=File('./build/weblogic92/test') mkdir = Mkdir() mkdir.setDir(testDir) <-- Upto here it works mkdir.execu

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
That's interesting, you are in-lining Jython in your build script, I don't: I'll try your approach just to see if it works although I'd much rather keep the jython outside of my build.xml in .py files. Perhaps this is a bug. -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTE

RE: Multiple .properties in the same ANT

2006-08-10 Thread LIRA Olavo
>You will have to give more information (such as the contents of your >build.xml). >Can you use a macrodef to define the target and have it take in the name >of the properties file as an argument? Then the macrodef can load the >properties with a prefix based on the argument. Hi Ben,

RE: Multiple .properties in the same ANT

2006-08-10 Thread Burgess, Benjamin
You will have to give more information (such as the contents of your build.xml). Can you use a macrodef to define the target and have it take in the name of the properties file as an argument? Then the macrodef can load the properties with a prefix based on the argument. Ben -Original Messa

Multiple .properties in the same ANT

2006-08-10 Thread LIRA Olavo
Sorry I forgot to change the subject . Hello everyone, I'm new in here and I know the basic of ANT. I use it for compiling javacard applets. Well my problem is that I would like to know if it is possible with ANT to run the same ANT with multiple different .properties that I pass in

RE: Calling ant tasks from jython

2006-08-10 Thread LIRA Olavo
Hello everyone, I'm new in here and I know the basic of ANT. I use it for compiling javacard applets. Well my problem is that I would like to know if it is possible with ANT to run the same ANT with multiple different .properties that I pass in my init target? Now I'm using one ANT for ea

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
I normally use project.createTask() even though it does not support presets. example: y is @{y} import java.io.File as File d = project.createTask("delete") d.dir = File("createme") d.quiet = 1 d.execute() mkdir = project.createTask("mkdir") mkdi

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
Are you sure? I ran the example fine with the correct spelling and got your error with the Typo example. import org.apache.tools.ant.taskdefs.Mkdir as Mkdir import java.io.File as File print "Ant Call Test" print project.getProperty('build.dir') print project.getName() testDir

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
I can call the depreciated Copyfile task without a problem. I guess ant tasks need some boot strapping if they are to be used out side of ant. Does anyone have an example of using an ant task in some custom Java code, this might shed some light on what I need to do. -Original Message- Fro

RE: Custom task invoking other tasks

2006-08-10 Thread Tzabari, Gili
Many thanks! Gili -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 6:28 PM To: Ant Users List Subject: Re: Custom task invoking other tasks Hello Gili, you can construct your Java task instance in two ways : a) for Ant 1.

Re: format for excludes on javac

2006-08-10 Thread Vishal Vishnoi
Martin, FYI: Checkout http://ant.apache.org/manual/CoreTasks/javac.html for all information about Javac task. --Vishal Ant manual -> http://ant.apache.org/manual/index.html Martin Gainty wrote: yes that worked Asante- Martin ***

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Thanks, your right that was a typo in my message. I still have the error. -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 14:32 To: Ant Users List Subject: Re: Calling ant tasks from jython just a quick look: Mkdir.setDir(testDir) should be mkdi

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
just a quick look: Mkdir.setDir(testDir) should be mkdir.setDir(testDir) Peter On 8/10/06, Hussein Badakhchani <[EMAIL PROTECTED]> wrote: Hello, I am calling a jython script from my build.xml file using the script task e.g: I want to use ant tasks from antCallTest.py. While I d

Re: format for excludes on javac

2006-08-10 Thread Martin Gainty
yes that worked Asante- Martin * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email mess

RE: format for excludes on javac

2006-08-10 Thread Tshepo Rachidi
Have u tried this? -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday 10 August 2006 14:36 To: Ant Users List Subject: format for excludes on javac Good Morning All- For 1.6.3 javac task How do I exclude a specific directory from compiling?

Re: delete carriage returns in param

2006-08-10 Thread Scot P. Floess
Looks like you are using ant-contrib...you might be able to do something with their regular expression tasks... [EMAIL PROTECTED] wrote: my solution: command="echo `ls -l /xxx/xxx/temp/heischb/sedtest/test|cut -c1-10`\\c" need to be an unix expert.. :-) or read the manuals mindfully... Regard

Re: delete carriage returns in param

2006-08-10 Thread heisch
my solution: command="echo `ls -l /xxx/xxx/temp/heischb/sedtest/test|cut -c1-10`\\c" need to be an unix expert.. :-) or read the manuals mindfully... Regards Zitat von [EMAIL PROTECTED]: Hi, there are tasks or elements of tasks which delete carriage returns in param with Stirng. It's a ss

format for excludes on javac

2006-08-10 Thread Martin Gainty
Good Morning All- For 1.6.3 javac task How do I exclude a specific directory from compiling? Thanks, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s

Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Hello, I am calling a jython script from my build.xml file using the script task e.g: I want to use ant tasks from antCallTest.py. While I don't seem to have any problems retrieving my projects properties it seems that any call I make to an ant task method requires an extra argument.

delete carriage returns in param

2006-08-10 Thread heisch
Hi, there are tasks or elements of tasks which delete carriage returns in param with Stirng. It's a sshexec - return which i have to prove with a if-loop. Becauce of the carriage return is the if-loop always false!! Thats the code: ${temp}