RE: Concatenating a string to a property

2007-03-16 Thread Mike Stewart
Thats the baby, works a treat. Cheers, Mike S. >>> [EMAIL PROTECTED] 16/03/2007 16:06:40 >>> Mike, I use antcontrib tasks to do this. The tasks , and are very useful to do this. http://ant-contrib.sourceforge.net/ Put it in it own namespace. I generally do this: .. ..

RE: Concatenating a string to a property

2007-03-16 Thread Mike Stewart
the b4usony was a typo that should have read server1. The property remote.jboss.jndi.port.server1 is set in the build.properties file to a value of 17031, when the target is run I then know which server I am using, in this case server1. What I am trying to get is the value associated with that ser

RE: Concatenating a string to a property

2007-03-16 Thread Byron Vonthal
It looks like you already have the value set. Once a property is set, you can't unset or reset it. (Unless you use a 3'rd party task, like ant-contrib's var task) Where did the 'b4usony' come from? Did you set it earlier? remote.jboss.jndi.port.b4usony -Original Message- From:

RE: Concatenating a string to a property

2007-03-16 Thread Ditrick, Gregory
Mike, I use antcontrib tasks to do this. The tasks , and are very useful to do this. http://ant-contrib.sourceforge.net/ Put it in it own namespace. I generally do this: .. .. Hope this helps. GregD 859-386-8309 -Original Message- From: Mike Stewart [mailto:

Concatenating a string to a property

2007-03-16 Thread Mike Stewart
Hi, I am trying to get a value from a property that is defined in the build.properties file - remote.jboss.jndi.port.server1=17031 remote.jboss.server=server1 The remote.jboss.server varies depending on which client is being built, I tried the definition below but it is performing text substitu

Re: AW: specifying jvm for running ant tasks

2007-03-16 Thread Vishal Vishnoi
Here's a snippet (from a macrodef and hence @{..}) of what I do when I need to exec Ant --Vishal thomaslarsson wrote: Thanks Jan but you misunderstand me. Its not java or javac task that I wan

Re: AW: specifying jvm for running ant tasks

2007-03-16 Thread thomaslarsson
Thanks Jan but you misunderstand me. Its not java or javac task that I want to specify the java version for. What I want is more similar to spawning a separate process with runs ant with a java version that I can specify for each project. I know I can do this with the exec task, perhaps simples

AW: specifying jvm for running ant tasks

2007-03-16 Thread Jan.Materne
But you could also use Java1.5 for your 1.5 AND 1.4 projects. When compiling your 1.4 you set source+target="1.4" Jan >-Ursprüngliche Nachricht- >Von: thomaslarsson [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 16. März 2007 14:18 >An: user@ant.apache.org >Betreff: specifying jvm for

specifying jvm for running ant tasks

2007-03-16 Thread thomaslarsson
Hello everyone, I have an ant task that calls a set of ant tasks in order to build a set of projects in the correct order. Now I added a project that needs to be run with java 1.5, and I would like to be able to configure the build so that only this new target is run with 1.5, and to old tasks

Re: Error starting modern compiler

2007-03-16 Thread Steve Loughran
Jacky wrote: Hi James, First of all, thanks for replying. I do stand from your point of view and look at this matter. One would obviously question me on what has been changed. However, the system environment has not been changed in anyway before it started to fail in building my project. What