Re: Making another xml file read properties file

2011-07-08 Thread Alexandre Priou
xml' from 'build.xml', the test.xml file >> doesn't read the properties :( >> >> please help me in doing this. >> >> Thanks. >> >> -- >> View this message in context: http://ant.1045680.n5.nabble.** >> com/Making-another-xml-fil

Re: Making another xml file read properties file

2011-07-08 Thread Scot P. Floess
m 'test.properties' which are in the folder C:\folder\subfolder. when I call the targets of 'test.xml' from 'build.xml', the test.xml file doesn't read the properties :( please help me in doing this. Thanks. -- View this message in context: http://ant.1045680.n

Making another xml file read properties file

2011-07-08 Thread avenger
ll the targets of 'test.xml' from 'build.xml', the test.xml file doesn't read the properties :( please help me in doing this. Thanks. -- View this message in context: http://ant.1045680.n5.nabble.com/Making-another-xml-file-read-properties-file-tp456451

RE: Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
For example, If in your case the .properties is in config/ relative to > the build.xml that would found via the -s CLI switch, you can load the > properties file using />, whereas uses either ${basedir} > or the current directory (I don't remember which). It uses ${basedir}, not

Re: Search for properties file in parent directories

2010-11-11 Thread Dominique Devienne
to instruct Ant to go searching for the properties > file by climbing up the directory tree, just like "ant -s" does for build > files? As Antoine already mentioned, not for an arbitrarily-deep hierarchy, and not without contorsions. But may I inquire why you need that? In my e

Re: Search for properties file in parent directories

2010-11-11 Thread Antoine Levy-Lambert
towards the root of -sthe filesystem and use it From within a script, I can instruct ant to load properties from a file using. Is there a way to instruct Ant to go searching for the properties file by climbing up the directory tree, just like "ant -s" does for b

Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
file using . Is there a way to instruct Ant to go searching for the properties file by climbing up the directory tree, just like "ant -s" does for build files? -- Michael Ludwig

RE: Proper way to translate list of jars from properties file into classpath

2010-10-19 Thread Bailey, Darragh
> -Original Message- > From: KARR, DAVID (ATTSI) [mailto:dk0...@att.com] > Sent: 13 October 2010 21:05 > To: Ant Users List > Subject: Proper way to translate list of jars from properties > file into classpath > > I have a property defined in my properties file

Re: Proper way to translate list of jars from properties file into classpath

2010-10-19 Thread Antoine Levy-Lambert
On 10/14/2010 5:09 PM, KARR, DAVID (ATTSI) wrote: -Original Message- From: KARR, DAVID (ATTSI) Sent: Wednesday, October 13, 2010 1:05 PM To: Ant Users List Subject: Proper way to translate list of jars from properties file into classpath I have a property defined in my properties

RE: Proper way to translate list of jars from properties file into classpath

2010-10-16 Thread Moore, Kent
way to translate list of jars from properties file into classpath I have a property defined in my properties file that specifies a list of jar files associated with a particular framework. I'll need to reference all of those jars any time I reference one of them, so I put them in a s

RE: Proper way to translate list of jars from properties file into classpath

2010-10-14 Thread KARR, DAVID (ATTSI)
> -Original Message- > From: KARR, DAVID (ATTSI) > Sent: Wednesday, October 13, 2010 1:05 PM > To: Ant Users List > Subject: Proper way to translate list of jars from properties file into > classpath > > I have a property defined in my properties file that spe

Proper way to translate list of jars from properties file into classpath

2010-10-13 Thread KARR, DAVID (ATTSI)
I have a property defined in my properties file that specifies a list of jar files associated with a particular framework. I'll need to reference all of those jars any time I reference one of them, so I put them in a single property. It currently looks like this: cxf-patches = ${lib

Re: Reusing property values in a properties file

2010-07-12 Thread Nathan Dunn
have properties with placeholders in them like -> > db_serv...@db_server@ > For each environment we have a properties file. Like for dev we have > dev.properties. This contains the actual value of the property like -> > DB_SERVER=LNDB241 > We call ant like this -> ant create -

Re: Reusing property values in a properties file

2010-07-11 Thread Sony Antony
Beware of this bug,https://issues.apache.org/bugzilla/show_bug.cgi?id=44226 If you have a property line like this in your properties file used for filter.. XXX=jhkhk y...@xxx@ukjlj...@xxx@ ( @XXX@ appearing multiple times above ) ... you will get in trouble that has been fixed in ant 1.8, I

Re: Reusing property values in a properties file

2010-07-10 Thread David Weintraub
am using ant in my project as follows. I have templates of all environment > files in our application. > These templates have properties with placeholders in them like -> > db_serv...@db_server@ > For each environment we have a properties file. Like for dev we have > dev.properti

Reusing property values in a properties file

2010-07-10 Thread anindya.mukherjee
I am using ant in my project as follows. I have templates of all environment files in our application. These templates have properties with placeholders in them like -> db_serv...@db_server@ For each environment we have a properties file. Like for dev we have dev.properties. This contains

AW: Best way to have a list of values in properties file

2010-04-18 Thread Jan.Materne
You could use XML: one two three ${list.entry} Jan > -Ursprüngliche Nachricht- > Von: Andy2008 [mailto:hoangt...@yahoo.com] > Gesendet: Samstag, 17. April 2010 06:43 > An: user@ant.apache.org > Betreff: Best way to have a list of values in properties

Best way to have a list of values in properties file

2010-04-16 Thread Andy2008
I have a list of values that I need to loop thru and right now I have them as a comma separated list as below in my properties file apps=app1, app2, app3, app4 Name of the apps can be very long so I'm wondering if I can do something like below for readability purpose apps=app1 apps=app2

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
>classpath="${user.home}/.ant/lib/bb-ant-tools.jar" /> >classpath="${user.home}/.ant/lib/ant-contrib.jar" uri = > "http://ant-contrib.sourceforge.net"; description = "Needed to use > ant-contrib." /> Another way of "installing" would be using Apache Ivy. http://ant.apache.org/iv

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
> Ah. Guess I need to go back and read more xml stuff sometime. Yes > seems like a good practice. > > Not sure how it resolves to the right jar with a URL, but as long as > it works. :) http://ant.apache.org/manual/CoreTypes/namespace.html http://ant.apache.org/manual/CoreTypes/antlib.html

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Thanks guys, this works for me: http://ant-contrib.sourceforge.net"; description = "Needed to use ant-contrib." />

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Ah. Guess I need to go back and read more xml stuff sometime. Yes seems like a good practice. Not sure how it resolves to the right jar with a URL, but as long as it works. :) On Thu, Nov 13, 2008 at 9:07 AM, Scot P. Floess <[EMAIL PROTECTED]> wrote: > > Its a namespace thing you define at th

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
ck Waugh >Cc: Ant Users List >Betreff: Re: Optional if and only if properties file exists? > > >Its a namespace thing you define at the top of your >build.xml... Mine is >usually > >xmlns:ant-contrib = "http://ant-contrib.sourceforge.net"; > >Thereby maki

Re: Optional if and only if properties file exists?

2008-11-13 Thread Scot P. Floess
Its a namespace thing you define at the top of your build.xml... Mine is usually xmlns:ant-contrib = "http://ant-contrib.sourceforge.net"; Thereby making if for me: On Thu, 13 Nov 2008, Patrick Waugh wrote: Interesting. works for me, but not Patrick On Thu, Nov 13, 2008 at 8:59 AM,

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Interesting. works for me, but not Patrick On Thu, Nov 13, 2008 at 8:59 AM, Scot P. Floess <[EMAIL PROTECTED]> wrote: > > ac is the namespace for Ant Contrib, if - thats the Ant Contrib task if > > > > > On Thu, 13 Nov 2008, Patrick Waugh wrote: > >> What is ? >> >> On Thu, Nov 13, 2008

Re: Optional if and only if properties file exists?

2008-11-13 Thread Scot P. Floess
ac is the namespace for Ant Contrib, if - thats the Ant Contrib task if On Thu, 13 Nov 2008, Patrick Waugh wrote: What is ? On Thu, Nov 13, 2008 at 7:04 AM, <[EMAIL PROTECTED]> wrote: ... or check the condition with antcontrib if/else in one target

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
My first version (which works) is:

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
What is ? On Thu, Nov 13, 2008 at 7:04 AM, <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> >>> ... >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> or check the condition with antcontrib if/else in one target >>> >>> >> >>> >>> >>> >>> >>> >>>

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
>> >> >> >> >> ... >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> or check the condition with antcontrib if/else in one target >> >> > >> >> >> >> >> >> >> >> >> >> >>

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
rs List > Subject: Re: Optional if and only if properties file exists? > > /* > In other words, I need to test if the property file exists... and then > include that "code" only in this case. > */ > > > with Jan's macro = > > > > >

RE: Optional if and only if properties file exists?

2008-11-13 Thread Rebhan, Gilbert
-Original Message- From: Patrick Waugh [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:58 AM To: Ant Users List Subject: Re: Optional if and only if properties file exists? /* In other words, I need to test if the property file exists... and then include that "code&

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Jan, On Thu, Nov 13, 2008 at 4:38 AM, <[EMAIL PROTECTED]> wrote: > , and arent provided by Ant. > Where do they come from? bb-ant-tools (Blackberry Ant Tools) > > > > > So the subprojects could place that element under or dont. These aren't "sub-project", and making this a macro do

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
gt;Von: Patrick Waugh [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 13. November 2008 10:59 >An: Ant Users List >Betreff: Optional if and only if properties file exists? > >Currently, I use this: > >

Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Currently, I use this: .. and this is in a "common" build.xml. However, there are some projects that do not require the as they have only one entry point. Ho

Re: Can you set a property using input task into a properties file

2008-09-03 Thread Scot P. Floess
want to set it to a properties file so that I can use it later. Does anybody know how to do this?? -- View this message in context: http://www.nabble.com/Can-you-set-a-property-using-input-task-into-a-properties-file-tp19294414p19294414.html Sent from the Ant - Users mailing list archive at Nabbl

Can you set a property using input task into a properties file

2008-09-03 Thread merlin_the_happy_pig
Ant newbie here - I need to capture some user input and then I want to set it to a properties file so that I can use it later. Does anybody know how to do this?? -- View this message in context: http://www.nabble.com/Can-you-set-a-property-using-input-task-into-a-properties-file

Re: Using Java xml properties file with Ant

2007-07-20 Thread nswoboda
Thanks for the short term solution, it works like a charm. Nik > In the meantime one can write a custom task, or use

Re: Using Java xml properties file with Ant

2007-07-20 Thread Gilbert Rebhan
Hi, [EMAIL PROTECTED] wrote: We are building a piece of software which has a number of Java properties files in xml format (the kind which are read with Properties.loadFromXML). An example: http://java.sun.com/dtd/properties.dtd";> [ ... ] I would like to be able to read these files and use

Re: Using Java xml properties file with Ant

2007-07-20 Thread Peter Reilly
On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It would be nice if there were a way for the xmlproperty task to create pro= > ps with an XPath like syntax. Something like: > > temp.properties.entry(key=3D"appName") would return Name I think that we would want something like this, t

Re: Using Java xml properties file with Ant

2007-07-20 Thread nswoboda
in 1.5, is the issue related to not wanting to have to rewrite it for ant to work with older java versions? Nik > > - Original Message - > > From: [EMAIL PROTECTED] > > To: user@ant.apache.org > > Subject: Using Java xml properties file with Ant > > Date: Fri, 2

AW: Using Java xml properties file with Ant

2007-07-20 Thread Jan.Materne
>Good question. Looking at the ant source it looks like the >property value is overwritten with the new value concatenated >onto the old value with a comma in between. So the old value is lost. > >This is probably not the answer you are looking for but you >could use ant contrib's foreach task

Re: Using Java xml properties file with Ant

2007-07-20 Thread ryan
something like: temp.properties.entry(0) would return Name as well But I don't see such a thing. Maybe we are just missing it. --ryano > - Original Message - > From: [EMAIL PROTECTED] > To: user@ant.apache.org > Subject: Using Java xml properties file with Ant > Da

Using Java xml properties file with Ant

2007-07-20 Thread nswoboda
We are building a piece of software which has a number of Java properties files in xml format (the kind which are read with Properties.loadFromXML). An example: http://java.sun.com/dtd/properties.dtd";> Name Something 2.5 I would like to be able to read these files and use their proper

Re: can filesets be stored in a properties file?

2007-06-08 Thread Matt Benson
Oh, is THAT what he meant? :) well, whatever... --- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Hi, > > caleysoldman wrote: > > [ ...] > > :arguing: > > > > regardless, what i did was create a working build > ...all i really need to > > understand is how to move the fileset to an > external

Re: can filesets be stored in a properties file?

2007-06-08 Thread Matt Benson
If you know that you only have a finite number of filesets, here typicalTableSQL and typicalTabStorage, it shouldn't be too difficult. You should be able to add some properties to generic.properties or another properties file to handle what you need. Here's what I would probably do: #new file e.

Re: can filesets be stored in a properties file?

2007-06-08 Thread Gilbert Rebhan
Hi, caleysoldman wrote: [ ...] :arguing: regardless, what i did was create a working build ...all i really need to understand is how to move the fileset to an external file that will then be used based on the DBMS property which value is passed at the command line. thanks in advance for your h

Re: can filesets be stored in a properties file?

2007-06-08 Thread caleysoldman
{file} ERROR: Missing Command Line Property Varialbe DBMS: ${DBMS}. -- View this message in context: http://www.nabble.com/can-filesets-be-stored-in-a-properties-file--tf3890587.html#a11030923 Sent from th

Re: can filesets be stored in a properties file?

2007-06-08 Thread Matt Benson
Show us an example of what you're trying to do. -Matt --- caleysoldman <[EMAIL PROTECTED]> wrote: > > > hi folx, > > is it possible to use the refid of a fileset that is > stored in a properties > file? if so, how?? > > i am new to ant and to java. i ha

can filesets be stored in a properties file?

2007-06-08 Thread caleysoldman
hi folx, is it possible to use the refid of a fileset that is stored in a properties file? if so, how?? i am new to ant and to java. i have successfully created a build that uses one of two properties files based on a variable that is passed at the command line via -D option. now i would like

Re: set a property in a .properties file

2006-12-19 Thread Ninju Bohra
You may want to look at the FilterChains and FilterReaders elements to 'select' which lines of the original properties file to copy and then merely append the new line. Maybe use the element to 'select' all the lines EXCEPT the one(s) you want to change and copy the '

Re: set a property in a .properties file

2006-12-19 Thread jm
; > > -Original Message- > > From: jm [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 19, 2006 11:45 AM > > To: Ant Users List > > Subject: set a property in a .properties file > > > > hi, > > > > I have been looking for a way to

Re: set a property in a .properties file

2006-12-19 Thread Peter Reilly
uesday, December 19, 2006 11:45 AM > To: Ant Users List > Subject: set a property in a .properties file > > hi, > > I have been looking for a way to set a property in a .properties file > via ant. Could not find any easy way...somebody knows a way to do it > or a external task or

Re: set a property in a .properties file

2006-12-19 Thread jm
-- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a property in a .properties file hi, I have been looking for a way to set a property in a .properties file via ant. Could not find any easy way...somebody knows a way to do it or a exter

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
Oops, should have been = test.props afterwards : foo=nobar Regards, Gilbert -Original Message- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a property in a .properties file hi, I have been looking for a way to set

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
.setProperty "foo","nobar" ]]> test.props afterwards : foo=foobar Regards, Gilbert -Original Message- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a property in a .pro

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
p, one beer please !!' else puts 'no beer today ...' end ]]> Regards, Gilbert -Original Message- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a proper

Re: set a property in a .properties file

2006-12-19 Thread Antoine Levy-Lambert
task with a nested filterchain (see explanations about filterchains under Concepts and Types). Regards, Antoine On Dec 19, 2006, at 5:44 AM, jm wrote: hi, I have been looking for a way to set a property in a .properties file via ant. Could not find any easy way...somebody knows a way to

set a property in a .properties file

2006-12-19 Thread jm
hi, I have been looking for a way to set a property in a .properties file via ant. Could not find any easy way...somebody knows a way to do it or a external task or something? I know about the stuff, but I am trying to change the property without knowing the value it had before, that is, I

RE: Properties File

2006-08-15 Thread David Corley \(AT/LMI\)
] Sent: 15 August 2006 17:05 To: user@ant.apache.org Subject: Properties File I have a properties file under config directory at the same level as the packages containing source. The Ant script currently packages everything including the properties file used by the application. I want the user of

Properties File

2006-08-15 Thread Bala Paranj
I have a properties file under config directory at the same level as the packages containing source. The Ant script currently packages everything including the properties file used by the application. I want the user of this script to be able to provide the values of the properties when the

AW: Define the logger in a properties file?

2006-05-10 Thread Jan.Materne
;Von: Steven Anderson [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 11. Mai 2006 00:22 >An: user@ant.apache.org >Betreff: Define the logger in a properties file? > >I'd like to use org.apache.tools.ant.XmlLogger for all my >builds, so I'd like to have it in my build.pr

Define the logger in a properties file?

2006-05-10 Thread Steven Anderson
I'd like to use org.apache.tools.ant.XmlLogger for all my builds, so I'd like to have it in my build.properties file rather than having to call it as a command-line option. I couldn't find a property for doing this, though. Is it possible to define the logger in a

Re: How to Customize Relative Paths Read From Properties File

2006-05-02 Thread Dominique Devienne
not. See also the 'includesfile' attribute of (and ). --DD On 4/27/06, Michael Creech <[EMAIL PROTECTED]> wrote: I want to read some relative path elements from the contents of a properties file, and then create custom absolute paths from these elements by using a different di

How to Customize Relative Paths Read From Properties File

2006-04-27 Thread Michael Creech
I want to read some relative path elements from the contents of a properties file, and then create custom absolute paths from these elements by using a different directory then the base directory(which is what ANT wants to add). For example, if we had a properties file with

RE: Specifiying user properties file

2005-11-05 Thread Jeffrey E Care
You can also use the fact that Ant creates implicit properties from the Java system properties and do something like this: This will load the user's specific properties file from their home directory. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere

Re: Specifiying user properties file

2005-11-05 Thread Ray Tayek
At 04:42 PM 11/5/2005, you wrote: I'm trying to set up a situation where my users can specify a properties file where they can set properties specific to their machines. ... properties are immutable so something like: ... whoever defines a pro

RE: Specifiying user properties file

2005-11-05 Thread Bill Rich
user.properties file is not loaded, instead a tailored user properties file is loaded. Because the property is immutable the value assigned to the property USER will either come from the command line or from the declaration in the build file. To specify a user name on the command line use -DUSER=br

RE: Specifiying user properties file

2005-11-05 Thread Lasher, James L
ssage- From: Mark McKay [mailto:[EMAIL PROTECTED] Sent: Saturday, November 05, 2005 5:43 PM To: user@ant.apache.org Subject: Specifiying user properties file I'm trying to set up a situation where my users can specify a properties file where they can set properties specific to their ma

Specifiying user properties file

2005-11-05 Thread Mark McKay
I'm trying to set up a situation where my users can specify a properties file where they can set properties specific to their machines. I have my main build.xml file checked into my CVS repostiory, and a default.properties file that is also in the CVS repository. I'd like the init

Re: properties file read programatically

2005-07-21 Thread javier muguruza
great juergen, thanks. I mean I knew it could be done some way or other, I meant if it was possible very easily. I find it strange that I could not find any reference to it, in the wiki or something, I guess people would find it very handy in their configuration files... javi On 7/21/05, Juerg

Re: properties file read programatically

2005-07-21 Thread Juergen Hermann
On Thu, 21 Jul 2005 22:48:38 +0200, javier muguruza wrote: >I haven't found anything in the list about that...is it possible to >use ant programatically to read a property file and at the same time >performing the property substitution like ant does? I would like to >reuse my build.properties for

properties file read programatically

2005-07-21 Thread javier muguruza
Hi, I haven't found anything in the list about that...is it possible to use ant programatically to read a property file and at the same time performing the property substitution like ant does? I would like to reuse my build.properties for my own code. thank you in advance, javi -

Re: javac task to include properties file

2005-03-01 Thread Ivan Ivanov
m. > > Implementation left as an exercise for the reader. It is a useful exercise :)) One of my very first errors when I started mastering Ant was that in compile target I did an to copyProps instead of depending on it. As the build xml grew bigger,

Re: javac task to include properties file

2005-03-01 Thread Jeffrey E Care
AFAIK javac ignores non-Java files (you can see this in verbose or debug mode). If you need to have copies of other file types in your "classes" directory then the obvious solution would be to copy them. Implementation left as an exercise for the reader. JEC -- Jeffrey E. Care ([EMAIL PROTECT

javac task to include properties file

2005-03-01 Thread Michael Wang \(IT\)
any arg to include those properties which will copy them from srcdir to targetdir? thanks.

RE: How to create a xml properties file

2003-11-24 Thread Jan . Materne
ay, November 24, 2003 5:50 PM > To: [EMAIL PROTECTED] > Subject: How to create a xml properties file > > > For the moment, i use a .properties file and i would like to > use an xml file > for my properties. > I saw that i have to call this file from my ant script with >

Re: filter: Windows backslashes in a properties file

2003-04-03 Thread Steve Loughran
Denis N. Antonioli wrote: >-- >SCSI is *NOT* magic. There are *fundamental technical reasons* why it >is necessary to sacrifice a young goat to your SCSI chain now and then. > -- John Woods I like this .signature. we had a project that wasnt working, and my proposed solution was 'find a virgi