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
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
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
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
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
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
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
> -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
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
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
> -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
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
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 -
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
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
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
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
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
>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
> 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
Thanks guys, this works for me:
http://ant-contrib.sourceforge.net"; description = "Needed to use
ant-contrib." />
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
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
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,
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
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
My first version (which works) is:
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
>>>
>>> >>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> ...
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> or check the condition with antcontrib if/else in one target
>>
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
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 =
>
>
>
>
>
-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&
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
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:
>
>
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
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
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
Thanks for the short term solution, it works like a charm.
Nik
> In the meantime one can write a custom task, or use
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
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
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
>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
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
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
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
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.
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
{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
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
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
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 '
;
> > -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
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
--
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
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
.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
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
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
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
]
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
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
;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
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
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
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
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
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
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
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
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
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
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
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
-
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,
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
any arg to include those properties which will copy them from srcdir to
targetdir? thanks.
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
>
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
77 matches
Mail list logo