container with for(each) loop for nested targets ?

2005-08-24 Thread Rebhan, Gilbert
Hi, as i have no experience with macrodef/sequential yet, this may be achieved with some kind of macrodef ... is there some kind of container, providing a for(each) loop with nested targets ? background = i have to edit an antscript that contains several foreach loops with the same list

AW: container with for(each) loop for nested targets ?

2005-08-24 Thread Jan.Materne
Antcontrib foreach uses targets, for uses a nested task container. Jan -Ursprüngliche Nachricht- Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. August 2005 08:50 An: user@ant.apache.org Betreff: container with for(each) loop for nested targets ? Hi, as i have

Problem about send mail

2005-08-24 Thread Guo Rui
hi all: I want to send a mail use ant,so I write a task like below: target name=mail mail mailhost=smtp.gmail.com mailport=25 subject=Test build user=myusername password=mypassword from address=[EMAIL PROTECTED]/ to address=[EMAIL PROTECTED]/ messageThe nightly build has

Re: Problem about send mail

2005-08-24 Thread Barry White
Your build assumes that smtp.gmail.com is waiting for insecure connections on the standard smtp port. As far as I know, for smtp.gmail.com, you need to use port 587 with TLS enabled. Looking at the docs you will need JavaMail in you classpath too. Try: mail mailhost=smtp.gmail.com

RE: Problem about send mail

2005-08-24 Thread Rebhan, Gilbert
Hi, -Original Message- From: Guo Rui [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 9:13 AM To: user@ant.apache.org Subject: Problem about send mail /* mail: [mail] Failed to initialise MIME mail: javax/activation/DataSource [mail] Using UU mail [mail]

Re: Problem about send mail

2005-08-24 Thread Guo Rui
In fact I find that I forgot to add activation.jar in classpath. Thanks all :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: [Fwd: How to add my Ant extension project into the 'Related Projects' list of ANT?]

2005-08-24 Thread Jan.Materne
http://ant.apache.org/faq.html#adding-external-tasks Jan -Ursprüngliche Nachricht- Von: James Mao [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. August 2005 08:49 An: dev@ant.apache.org; user@ant.apache.org Betreff: [Fwd: How to add my Ant extension project into the 'Related

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Petar Tahchiev
On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: Hi, I'm trying to build an Ant project that uses some Apple Cocoa classes. These are stored as .class files and not as jars. They reside in a completely different folder to my project. I can compile and run my program by referencing

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Stephen Morrison
On 24 Aug 2005, at 15:03, Petar Tahchiev wrote: Hi, I'm trying to build an Ant project that uses some Apple Cocoa classes. These are stored as .class files and not as jars. They reside in a completely different folder to my project. I can compile and run my program by referencing these from

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Petar Tahchiev
On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: On 24 Aug 2005, at 15:03, Petar Tahchiev wrote: Hi, I'm trying to build an Ant project that uses some Apple Cocoa classes. These are stored as .class files and not as jars. They reside in a completely different folder to my

Error from ftp chmod action

2005-08-24 Thread Dick, Brian E.
I am trying to change the mode of some of my deployment files to executable by using the ftp task. It's not working. I checked Google, the ant doc and the commons-net api doc without finding much about chmod. What am I doing wrong? Here is my ftp task. ftp server=${servername}

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Petar Tahchiev
On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: On 24 Aug 2005, at 16:20, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: On 24 Aug 2005, at 15:03, Petar Tahchiev wrote: Hi, I'm trying to build an Ant project that uses some Apple Cocoa

Re: AntServer reporting output to RemoteAnt

2005-08-24 Thread koden (sent by Nabble.com)
I was thinking... are there any wrapper tasks that actually can call ant tasks which somehow can direct System.out output somewhere? -- Sent from the Ant - Users forum at Nabble.com: http://www.nabble.com/AntServer-reporting-output-to-RemoteAnt-t248730.html#a701218

RE: Adding to the ant classpath from within a project

2005-08-24 Thread Nestor Dutko
I tried the dummy task or type definition, but it really requires the class specified to implement the execute or other methods. So, I have done the following typedef name=regexp classname=org.apache.tools.ant.types.RegularExpression classpath pathelement

Re: can ant solve this rather complex challenge

2005-08-24 Thread Mark Lybarger
ant script task with javascript is what i'd go for.. On 8/23/05, Barry White [EMAIL PROTECTED] wrote: Have you looked at writing cutom ant tasks? It maye help to handle some of the messier details. Barry Scott Bell wrote: Problem statement: I have a number of simple tcl

how to detect relative or absolute path value

2005-08-24 Thread sten.rosendahl
My Ant script needs to know if a property value is a relative or absolute path in order to decide if to prepend a root path or not. Can Ant do this without custom tasks? Sten Rosendahl - To unsubscribe, e-mail: [EMAIL

RE: how to detect relative or absolute path value

2005-08-24 Thread Burgess, Benjamin
Instead of using value, use location for the property and it should convert it o an absolute path automatically. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 1:10 PM To: user@ant.apache.org Subject: how to detect relative or

Re: how to detect relative or absolute path value

2005-08-24 Thread Alexey N. Solofnenko
Have you tried property name=path location=${another.path.property}/? In that case path property will have an absolute path of another.path.property. - Alexey. [EMAIL PROTECTED] wrote: My Ant script needs to know if a property value is a relative or absolute path in order to decide if to

Ant Task to direct all log or system.out to a fail task?

2005-08-24 Thread koden (sent by Nabble.com)
I was wondering if anybody knows of a ANT Task that can send all output to a task if the task has failed? For example: ${output_saved} ... Is there a way to temporarily save output from system.out to a file somewhere as well? thanks -- Sent from the Ant - Users forum at Nabble.com:

How to Echo a file contents?

2005-08-24 Thread koden (sent by Nabble.com)
If I have a text file, how do I echo the text inside of it using an Ant Task? The echo task can echo to a file, but can it echo a file's contents? -- Sent from the Ant - Users forum at Nabble.com: http://www.nabble.com/How-to-Echo-a-file-contents--t250912.html#a701728

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Stephen Morrison
On 24 Aug 2005, at 16:56, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: On 24 Aug 2005, at 16:20, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison [EMAIL PROTECTED] wrote: On 24 Aug 2005, at 15:03, Petar Tahchiev wrote: Hi, I'm trying to build an

Re: How to Echo a file contents?

2005-08-24 Thread Jeffrey E Care
Load the file into a property with loadfile, then echo the property value. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) koden (sent by Nabble.com) [EMAIL PROTECTED] wrote on 08/24/2005 01:39:26 PM: If I have a text

problems using loadfile

2005-08-24 Thread EJ Ciramella
I'm trying to mimic cat sometar.tar scriptfile.sh using loadfile. This works properly on our slackware box, but when run on a FedoraCore 4 box, I get: Unable to load file: sun.io.MalformedInputException Setting the encoding to ISO-8859-1 ruins the gzip format of the tar file. Any

passing parameter to sql task

2005-08-24 Thread Rizwan Merchant
Hi, I am trying to run the sql task on a file using the src attribute of the task (as follows) target name=cleanDB depends=init description=Clears the database sql driver=com.microsoft.jdbc.sqlserver.SQLServerDriver

Re: problems using loadfile

2005-08-24 Thread EJ Ciramella
Now I'm trying to use concat - but is there a way to contact a text file AND a binary file? I'm trying to generate a shr file (some shell scripting at the top and then the tar at the bottom). On Aug 24, 2005, at 2:40 PM, EJ Ciramella wrote: I'm trying to mimic cat sometar.tar

Re: ReplaceRegExp with windows filenames

2005-08-24 Thread Neil Benn
Hello, Thanks for the tip - however it still does the same thing - it seems like the backslashes are simply being ignored (if there is one or two). I'll make some further investigations - if anyone has ideas as to what could be going on here - I;d appreciate any pointers. One thing

Problem with mkdir

2005-08-24 Thread KrustyDerClown
Hello, i get the following error: Creation was not successful for an unknown reason. The ANT task get this error after execute the following lines: delete dir=${log.dir}/ mkdir dir=${log.dir}/ Need ANT a waiting time between this 2 commands ? Is that possible ? When the log.dir doesnt exist

RE: Problem with mkdir

2005-08-24 Thread S I
Insert two echo tasks/stmts just to see the value of ${log.dir} just to rule out any other factor. I believe, what's happening is that ANT is talking too fast to the operating system and confusing it and basically 'delete and mkdir' are almost overlapping. Separate them out by couple of echo

Re: AntServer reporting output to RemoteAnt

2005-08-24 Thread Maode Mao
koden (sent by Nabble.com) wrote: I was thinking... are there any wrapper tasks that actually can call ant tasks which somehow can direct System.out output somewhere? -- Sent from the Ant - Users forum at Nabble.com:

Re: AntServer reporting output to RemoteAnt

2005-08-24 Thread maomaode (sent by Nabble.com)
I have a project named Dant, which has a Ant task wrapper, you can define the host and run executable remotely , the std output and std. err message will be directed to the machine you run the ant scripts. The idea is as same as Rant, but it support more network protocol , include socket,