RE: ReplaceRegExp with windows filenames

2005-08-24 Thread Rebhan, Gilbert
Hi, -Original Message- From: Neil Benn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 11:19 PM To: Ant Users List Subject: Re: ReplaceRegExp with windows filenames /* Thanks for the tip - however it still does the same thing - it seems like the backslashes are si

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

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, rmi

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: http://www.nabble.com/AntServer-reporting-output-to-RemoteAnt-t248730.html#a70

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 o

Ant FTP (transferring Unix-format file from Windows to Linux fails)

2005-08-24 Thread Sharad Jain
Hi Everybody, I am encountering an interesting behaviour with Ant's task that I cannot explain and wonder if anybody else has come across this. I am transferring a bug of *.h and *.cpp files from Windows to unix in text-file format (this correctly takes care of converting dos-format line-endi

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: Need ANT a waiting time between this 2 commands ? Is that possible ? When the log.dir doesnt exist it works fine. Greets Oliver

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

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

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) Is there any way I can generalize the above script to delete *ANY* database on the server by sending a parameter to the cleanDB.sql file? So basically, instead of spec

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 s

Re: How to Echo a file contents?

2005-08-24 Thread Jeffrey E Care
Load the file into a property with , then 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 file, how

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 a

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

Ant Task to direct all log or system.out to a 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: h

Re: how to detect relative or absolute path value

2005-08-24 Thread Alexey N. Solofnenko
Have you tried 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 prepend a root path

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 ab

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 PROTECTED

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

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 Yes, I realize that the regexp type is defined in the ant.jar and that the ant.jar

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

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. Here is the output. [ftp]

Re: Referencing External .class Files In Classpath

2005-08-24 Thread Stephen Morrison
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 classes. These are stored as .class files and not as jars. They res

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

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 t

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 refer

RE: How to shut down AntServer (Ant-Contrib) on failed build?

2005-08-24 Thread Burgess, Benjamin
How about Ant-Contrib trycatch task (which allows a finally block) http://ant-contrib.sourceforge.net/tasks/tasks/trycatch.html Ben -Original Message- From: koden (sent by Nabble.com) [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 23, 2005 8:40 PM To: user@ant.apache.org Subject: How t

Referencing External .class Files In Classpath

2005-08-24 Thread Stephen Morrison
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 the command line as follows: javac -classpath

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 P

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]

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] Sendi

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

2005-08-24 Thread James Mao
--- Begin Message --- Hi guys, I just released my first Ant extension project 'DANT' - distributed ant on http://dant.3322.org don't know how to add the project into the 'Related Projects' list of ANT. Anyone can give me a hand? Thanks in advance! Cheers, James. --- End Message --- ---

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: hi all: I want to send a mail use ant

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: The nightly build has completed But when I run "ant mail",it report "IO error sending mail", so I run "ant -verbose",it report : C:\>ant -verbose Apache Ant version 1.6.2 compiled on July 16 2004 Buildfile: bui

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

2005-08-24 Thread Jan.Materne
Antcontrib uses targets, 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