Dynamic references to properties files

2006-05-19 Thread Sunil Goklani
Hi All, I had a question on how I could use two variables to access information from my properties files. I am trying to build an ant script to generate configuration files for all of my development, qa, and staging environments. For example I have the following in a properties file: #Confi

RE: Exception executing scp on IBM's WebSphere 1.3.1 java

2006-05-19 Thread Anderson, Rob (Global Trade)
I believe the 1.3 version of Java do not include JCE (Java Cryptography Extension) in their defualt configuration. You will need to download and install JCE into the jre or jdk. Not sure about IBM's version though, but I think that is the cause of your error. -Rob A > -Original Message- >

RE: MailLogger=OK, task =SMTPSendFailedException?

2006-05-19 Thread Jeff A. Drost
Hmmm... The problem is something related to the verson of Java used, Java 1.4 vs Java 5. When I use Java 1.4, MailLogger & the task both work OK. I can have an email sent by the MailLogger that the build was successful, and have a mail sent via the task, all within the same single executio

Exception executing scp on IBM's WebSphere 1.3.1 java

2006-05-19 Thread Eric Wood
I'm attemptiong to execute ANT's scp task on a box that contains IBM WebSphere's 1.3.1 java. I get the following exception: java.lang.NoSuchMethodError: java.net.InetAddress: method getByAddress([B)Ljava/net/InetAddress; not found I'm assuming that I can't run the version of scp provided by t

Re: Ant task

2006-05-19 Thread Adam Stroud
Thanks for the reply again. I have looked at both genericantfile and antfile and they are not doing what I need. I am not using inheritall at all, but I have tried setting it to false (as it defaults to true). Adam Anderson, Rob (Global Trade) wrote: Are you setting inheritall to true? -R

RE: Ant task

2006-05-19 Thread Anderson, Rob (Global Trade)
Are you setting inheritall to true? -Rob A > -Original Message- > From: Anderson, Rob (Global Trade) > Sent: Friday, May 19, 2006 12:17 PM > To: Anderson, Rob (Global Trade); 'Ant Users List' > Subject: RE: Ant task > > Actually, afer looking at the example, I'm not so sure this > is w

RE: Ant task

2006-05-19 Thread Anderson, Rob (Global Trade)
Actually, afer looking at the example, I'm not so sure this is what you are looking for. -Rob A > -Original Message- > From: Anderson, Rob (Global Trade) > Sent: Friday, May 19, 2006 12:14 PM > To: 'Ant Users List' > Subject: RE: Ant task > > Check out the genericantfile attribute of t

RE: Ant task

2006-05-19 Thread Anderson, Rob (Global Trade)
Check out the genericantfile attribute of the subant task. I have not used it personally, but I think the description sounds like it may fit your needs. -Rob A > -Original Message- > From: Adam Stroud [mailto:[EMAIL PROTECTED] > Sent: Friday, May 19, 2006 11:47 AM > To: Ant Users List >

Re: Ant task

2006-05-19 Thread Adam Stroud
Thanks Rob: I actaully just found the subant task in the manual. The only problem I am having with it is that the manual says that the basedir property is not supposed to get set when using the "antfile" attibute of subant. In my builds, it seems that basedir is being set to the dir that the

RE: MailLogger=OK, task =SMTPSendFailedException?

2006-05-19 Thread Anderson, Rob (Global Trade)
Strange indeed. I just ran a simple test with the mail task and properties below, of course changing the props for my environment. It seems to work, and I don't see anything wrong with your usage. The error "message refused" may be coming from the mail server. Can you access the logs for the mail s

RE: MailLogger=OK, task =SMTPSendFailedException?

2006-05-19 Thread Jeff A. Drost
If I do the task prior to the task, the properties echoed are the same property values in the property file. I'm using the Ant command line argument "-propertyfile build-config.properties" to set the properties. -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Th

RE: MailLogger=OK, task =SMTPSendFailedException?

2006-05-19 Thread Jeff A. Drost
No it can't run the task if I run the build from ant on the command line without the MailLogger. Yes it can run the task if I run the build using Ant within Eclipse without the MailLogger. I have tried replacing all my ant/lib jars with what Eclipse uses for its ant/lib jars to get the task

Re: Ant task

2006-05-19 Thread Scot P. Floess
Excellent...I've never used subant...and quite honestly I overlooked it :) Rob - you are always full of great answers :) Anderson, Rob (Global Trade) wrote: The task has a failonerror attribute that, when set to false, should continue when there is an error in the subproject. See the manual pa

RE: FTP Task

2006-05-19 Thread Anderson, Rob (Global Trade)
You cannot use FTP to transfer files to or from an SSH server. Two options: 1) Make sure you have an FTP server running and point the ftp task to port 23, the default port for FTP. 2) Use the scp task. -Rob A > -Original Message- > From: Venkatesh Vijayakumar04 [mailto:[EMAIL PROTECTED]

RE: Ant task

2006-05-19 Thread Anderson, Rob (Global Trade)
The task has a failonerror attribute that, when set to false, should continue when there is an error in the subproject. See the manual page for more details. http://ant.apache.org/manual/CoreTasks/subant.html -Rob A > -Original Message- > From: Adam Stroud [mailto:[EMAIL PROTECTED] > Se

RE: postgres stored procedure sql task problem

2006-05-19 Thread Anderson, Rob (Global Trade)
Ah, a common misconception. Ant does not pass this to psql, but rather uses jdbc to connect to the database using the java drivers for postgresql. While this may seem like the same thing, it really isnt. Most (if not all) of the proprietary functionality of tools like psql and sqlplus are lost. -R

Re: Ant task

2006-05-19 Thread Scot P. Floess
Adam: Not sure if this is the answer you are looking for or not...but "off the top of my head" one thing you -could- use is ant contribs task. You can wrap your calls in try/catches... Not sure about stock Ant how one would accomplish that... Scot Adam Stroud wrote: All: I have a quick

Ant task

2006-05-19 Thread Adam Stroud
All: I have a quick question on the ant task. I am currently using the ant task to initiate the builds of subprojects. Is there a way to prevent the master build from failing when one of the subprojects fail? Thanks A - To

Re: Commenting/generate documentation from an ant script

2006-05-19 Thread Scot P. Floess
Bill: Boy do I feel silly now :) I never considered using XSLT ;) Excellent...very much appreciated! I'll try it out (I hope this weekend). I really appreciate you quick response! Scot bill/wilandra wrote: Hi Scot, I use the attached XSL file to generate documentation for my Ant files. T

RE: Commenting/generate documentation from an ant script

2006-05-19 Thread bill/wilandra
Hi Scot, I use the attached XSL file to generate documentation for my Ant files. This is an extension of the XSL stylesheet found at http://www-106.ibm.com/developerworks/xml/library/x-antxsl/examples/example2 /ant2html.xsl modified to pick up some new stuff and to always display the documentation

Commenting/generate documentation from an ant script

2006-05-19 Thread Scot P. Floess
I have what may be either a stupid questions or a silly ones...but I can't find an answer (perhaps my google search is using the wrong key words)... As part of one of my open source projects I am working on some (I hope) reusable Ant scripts. I have some macro definitions, etc. I was wonder

RE: Problem with script task and properties

2006-05-19 Thread Dick, Brian E.
I was able to get it to work by invoking a macrodef instead of a target.

RE: Fileset

2006-05-19 Thread lars.mattsson
Thank you, I missed that there was an zipfileset. The attribute you where looking for is prefix attribute and dose exactly the things I want. Lars -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: den 19 maj 2006 15:49 To: Ant Users List Subject: Re: Fileset >

Fwd: Re: AW: How to use replaceregexp in multi-line context?

2006-05-19 Thread David
Dear Oliver, Your solution works!, so my regular expression: eats the multi-lines. I don't understand well why you need to put two times the ) as you have commented. In my cas it works as above. Thank a lot, David Oliver Ashoff <[EMAIL PROTECTE

Re: Fileset

2006-05-19 Thread Dominique Devienne
The files as said get's at the root of each of the filesets. I instead would want the each of the included directories be an own directory and under a other name. Something like this: Look into , and its attribute (don't recall the name) to specify the path into which to place the selected file

Re: FTP Task

2006-05-19 Thread Jeffrey E Care
http://www.iana.org/assignments/port-numbers Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer "Venkatesh Vijayakum

RE: Fileset

2006-05-19 Thread lars.mattsson
Well, almost like that, But if possible I would like to have the names of changed. So, if your file set ended up being /alpha/beta/foo.txt /theta/epsilon/bar.txt /here/there /over/yonder You'd want the zip file to contain foo.txt bar.txt /newname /over/yonder -Original Message- From: Sc

FTP Task

2006-05-19 Thread Venkatesh Vijayakumar04
Hi I am getting the following error when I use ftp task in my ant script. [echo] [echo] Compling all class files [echo] makedirOnline: [echo] [echo] Creating directories for Online [echo] compi

Re: Fileset

2006-05-19 Thread Scot P. Floess
So, are u saying what you want is if a file is found in your file set, disregard the directory as part of the zip - and if its a directory, zip everything in the directory? So, if your file set ended up being /alpha/beta/foo.txt /theta/epsilon/bar.txt /here/there /over/yonder You'd want the zi

Fileset

2006-05-19 Thread lars.mattsson
Hello I want to create an Zip file with the zip and fileset tasks. The problem I'm having is that it puts all files in the root directory. f

Re: postgres stored procedure sql task problem

2006-05-19 Thread Scot P. Floess
What if you escape the $ signs? Gareth Reakes wrote: Hi Scot, thanks for your response. I have tried both in the file and in the sql tag. I get an error in both cases. Cheers, Gareth Scot P. Floess wrote: Gareth: My apologies, I meant escaping when it exists in another file. I neve

AW: How to merge two different webapps with Ant

2006-05-19 Thread Jan.Materne
I would keep them separate and bundle as an EAR-file ... Jan >-Ursprüngliche Nachricht- >Von: Sergi Marin/Upcnet [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 19. Mai 2006 12:11 >An: user@ant.apache.org >Betreff: How to merge two different webapps with Ant > >Hello > >I'm looking for a

How to merge two different webapps with Ant

2006-05-19 Thread Sergi Marin/Upcnet
Hello I'm looking for a way to merge two different webapps. Both apps are implemented with servlets JSP etc, with the Tomcat directory structure (WEF-INF...). We want to merge both projects to one. We need some automated way to do this, because both projects remain separated and will evolve in