AW: Could I bind an antlib to a xmlns via ?

2006-05-22 Thread Jan.Materne
Thanks that works. So I have the following mappings: * xml namespace (on project tag) maps to the antlib-URI * the antlib-URI (uri on taskdef) maps to the resource (on taskdef) on the given classpath (on taskdef). Jan >-Ursprüngliche Nachricht- >Von: Peter Reilly [mailto:[EMAI

Re: Proper Property File

2006-05-22 Thread Res Pons
Antoine Thank you for the quick response. I wasn't sure whether I'm on the right track or not. So your response gives me a better sense of assurance. Yes, as for my local .build.properties, it's not checked in under version control and holds all the passwords. Is there anyway to encrypt th

Re: Proper Property File

2006-05-22 Thread Antoine Levy-Lambert
Hello Res, I think that you are doing the right thing. More exactly, I am not sure that *the* best practice in this domain exist. As long as you have a clear policy and you can explain it to all the stakeholders in your development community, things are OK. You mention ssh passwords. I have alway

RE: Switch Case equivalent of ant

2006-05-22 Thread Res Pons
You have to download antcontrib.jar. Google or look for AntContrib in sourceforge. It will give you some programming capability and it has the switch command which behaves like case) Original Message Follows From: "Shweta Bodade" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant

Switch Case equivalent of ant

2006-05-22 Thread Shweta Bodade
Hello Can anybody tell me the switch case equivalent of ANT Where I can select according to case number I give as i/p from user. Regards, Shweta.

Proper Property File

2006-05-22 Thread Res Pons
Is there any style documentation or suggestion from anyone as to when to include properties in the build file and when to put them inside the property file, especially when different development teams and me the build engineer have to access the same file an do builds? I set an order of preced

RE: Installing Ant on Linux Enterprise 3.5

2006-05-22 Thread Res Pons
Thank you Rob. I got it now and followed your instruction. It works beautifully now. Thanks again. :) Original Message Follows From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: RE: Installing Ant on Linux Enterprise 3.5 D

RE: Installing Ant on Linux Enterprise 3.5

2006-05-22 Thread Anderson, Rob (Global Trade)
Good. I am suggesting that you uninstall the rpm package that came with RHEL 3.5 and use the tar.gz available from ant.apache.org. You already have the tar.gz installed, but you are seeing some unexpected behavior because the rpm is still installed. Simply uninstall the rpm and your problems should

RE: Installing Ant on Linux Enterprise 3.5

2006-05-22 Thread Res Pons
Thank you for the quick response. Just ran the command and now I see the old rpm for ant. However, I was on Apache/Ant and I do not see an rpm pkg but only a tar.gz. I'll google to see what I can find. Original Message Follows From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]>

RE: Dynamic references to properties files

2006-05-22 Thread bill/wilandra
Ah yes, I forgot about that. Bill -Original Message- From: Asaf Mesika [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 12:07 PM To: 'Ant Users List' Subject: RE: Dynamic references to properties files Env is commonly used, but it is not defined unless you define it explicitly usin

RE: Dynamic references to properties files

2006-05-22 Thread Anderson, Rob (Global Trade)
No. Not the case. I believe you are confused. You can set a prefix for retrieving environment properties like so... This will allow you to retrieve environment variable as you say, however the existence of ${env.MYDIR} does not mean that a property named ${env} exists. In fact, I often use the $

RE: Dynamic references to properties files

2006-05-22 Thread Asaf Mesika
Env is commonly used, but it is not defined unless you define it explicitly using : Asaf > -Original Message- > From: bill/wilandra [mailto:[EMAIL PROTECTED] > Sent: Monday, May 22, 2006 7:57 PM > To: 'Ant Users List' > Subject: RE: Dynamic references to properties files > > Isn't en

RE: Installing Ant on Linux Enterprise 3.5

2006-05-22 Thread Anderson, Rob (Global Trade)
I believe there is an Ant rpm that ships with RHEL 3.5. To find out for sure run: rpm -qa | grep -I ant Uninstall the rpm. Also searh the list archives for related threads. I know this sort of thing has come up before. -Rob Anderson > -Original Message- > From: Res Pons [mailto:[EMAIL P

RE: Dynamic references to properties files

2006-05-22 Thread bill/wilandra
Isn't env a well known property for retrieving op sys environment vars (e.g., ${env.MYDIR})? If so, can it ever not be set? If it is always set then the will never fail regardless of whether the user sets the env property or not on the command line. Bill -Original Message- From: Anderso

Installing Ant on Linux Enterprise 3.5

2006-05-22 Thread Res Pons
Hi I've always used Ant on Window's environment. I would like to install Ant on a linux box and set it up as my build machine. I've already installed the latest Subversion, Tomcat 5.5.14, and JDK 1.5.06 and latest Ant.tar.gz from Apache. I did not do a native compile and just expanded the

RE: Dynamic references to properties files

2006-05-22 Thread Anderson, Rob (Global Trade)
You examples below are a little confusing, so forgive me if I am completely missing the mark with this advice. My suggestion is to not try to fit all the properties into a single file. Try creating a properties file for each environment. dev.properties === webpath=http://localhost:70

Re: Can't see build file output in Console view, using -logger option

2006-05-22 Thread Darin Swanson
You can see the whole Ant command line invocation within Eclipse by opening the Debug view and right clicking on the Ant process>Properties>Process Information>Command Line And yes, we have a logger and an input handlerno surprises there. Darins Steve Loughran <[EMAIL PROTECTED]> 05/22

Re: ftp task fails when file has ' (apostrophe symbol)

2006-05-22 Thread David
>I dont know if there is enough evidence to distinguish a bug in ant from some FTP server config. I am pritty sure it is a bug with Apache Ant ftp-task, becuase I am overcomming this invoking directly the class: org.apache.commons.net.ftp.FTPClient I can't use wildcards, because

Re: Can't see build file output in Console view, using -logger option

2006-05-22 Thread Steve Loughran
Asaf Mesika wrote: -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 5:41 PM To: Ant Users List Subject: Re: Can't see build file output in Console view, using -logger option Asaf Mesika wrote: Hi, I'm using Ant from within Eclipse. I'm devel

RE: Can't see build file output in Console view, using -logger option

2006-05-22 Thread Asaf Mesika
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Monday, May 22, 2006 5:41 PM > To: Ant Users List > Subject: Re: Can't see build file output in Console view, using -logger > option > > Asaf Mesika wrote: > > Hi, > > > > I'm using Ant from within Eclipse. > > >

Re: ftp task fails when file has ' (apostrophe symbol)

2006-05-22 Thread Steve Loughran
David wrote: (Read this message, it is more readeable) I have to get a file from the server, but the name has to be encloses by ' symbol, for example: 'foo.txt', but Ant process the file name an eliminates the delimitors. I have tested the ftp action with a file without ' on its nam

Re: Can't see build file output in Console view, using -logger option

2006-05-22 Thread Steve Loughran
Asaf Mesika wrote: Hi, I'm using Ant from within Eclipse. I'm developing a logger of my own for Ant, and I got stuck in early stage: Running the default logger. What did I do? - I added to the arguments of Run Ant Configuration the following line: -logger org.apache.tool

Re: AW: How to merge two different webapps with Ant

2006-05-22 Thread Steve Loughran
Sergi Marin/Upcnet wrote: Danke schön Jan! You say me to create a EAR file with two WAR file (one by webapp), no? But what's about if we want both webapps are placed in the same directory and both have same WEB-INF directory, web.xml file, lib directory, (a higher level of union)... In fact,

ftp task fails when file has ' (apostrophe symbol)

2006-05-22 Thread David
(Read this message, it is more readeable) I have to get a file from the server, but the name has to be encloses by ' symbol, for example: 'foo.txt', but Ant process the file name an eliminates the delimitors. I have tested the ftp action with a file without ' on its name and it work

RE: ftp task fails when file has ' (apostrophe symbol)

2006-05-22 Thread Asaf Mesika
Have you tried viewing the source code for the ftp get task? This might give you the answer. > -Original Message- > From: David [mailto:[EMAIL PROTECTED] > Sent: Monday, May 22, 2006 5:19 PM > To: Ant Apache User Group > Subject: ftp task fails when file has ' (apostrophe symbol) > > >

ftp task fails when file has ' (apostrophe symbol)

2006-05-22 Thread David
I have to get a file from the server, but the name has to be encloses by ' symbol, for example: 'foo.txt', but Ant process the file name an eliminates the delimitors. I have tested the ftp action with a file without ' on its name and it works.It is a problem with the ftp task and not

Can't see build file output in Console view, using -logger option

2006-05-22 Thread Asaf Mesika
Hi, I'm using Ant from within Eclipse. I'm developing a logger of my own for Ant, and I got stuck in early stage: Running the default logger. What did I do? - I added to the arguments of Run Ant Configuration the following line: -logger org.apache.tools.ant.DefaultLogger<

Re: AW: How to merge two different webapps with Ant

2006-05-22 Thread Sergi Marin/Upcnet
Danke schön Jan! You say me to create a EAR file with two WAR file (one by webapp), no? But what's about if we want both webapps are placed in the same directory and both have same WEB-INF directory, web.xml file, lib directory, (a higher level of union)... In fact, we would like to have an ap

RE: Commenting/generate documentation from an ant script

2006-05-22 Thread Rémon van Gijn
We went ahead and tried the http://antdoc.free.fr/ tool, Its quite nice for the general need, make sure you let it start with your start build file, e.g. build.xml, and do not do a general *.xml if you work with imports and property inheritance. It does not handle marcrodef links as well. The

Re: Commenting/generate documentation from an ant script

2006-05-22 Thread Scot P. Floess
I will look into both of of these tools. Thank you so much for the response :) Varadarajan, Srivathsan wrote: This may just address some of your questions but FWIW, I happen to know specific tools that you are looking for. Never used them before myself though. For a tool to generate Javadocs

Re: Could I bind an antlib to a xmlns via ?

2006-05-22 Thread Peter Reilly
Hi Jan, You are forgetting to bind the xmlns namespace to a URI. Peter On 5/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I created an antlib for a bundle of tasks/macrodefs. Including via works, but then - I have to add the antlib to the global Ant installation (%ANT

Re: Redirecting error to /dev/null

2006-05-22 Thread Steve Loughran
john blair wrote: Hi I want to execute the following command strip /opt/dev/bin/* >/dev/null 2>&1 || true I tried the error parameter of exec task but it still displayed the following [exec] /usr/bin/strip: /opt/dev/bin/gccbug: File format not recognized [exec] [ERROR] Result: 1 I dont wa