Hi,
I am automating our build process at the startup I work at.I keep all
my classes in user/nightlybuilds/build . and my xml file is at
nightlybuilds itself . ( top level dir ). On the other hand, the property
files that are needed are in their respective projects. I added the path
to
Ahhh, did some digging and figured it out!
Apple OSX's java interpreter's default charset is MacRoman
I modified bin/ant to add -Dfile.encoding=UTF-8 as an argument for the java
interpreter, and it works fine now:
hitman@bigdog ~/t/t/apache-ant-1.8.2$ bin/ant foo2
Buildfile: /Users/hitman/t/t/ap
> The ? implies to me that your shell might be trying to display the UTF-8
> properly, but can't, so it shows the question mark.
>
> Instead of looking at the file with cat:
> - Does the file have one byte for that mark, (that would be the question
> mark) or 3? - You should be able to count ho
o: Ant Users List
> Subject: Re: Question regarding UTF-8 and property files
>
> Works for me:
>
>
>
>
> encoding="iso-8859-1"/>
>
>
>
>
>
>
>
> foo:
> [echo] [Test ế]
>
>
On Fri, 27 May 2011, Scot P. Floess wrote:
> Works for me:
>
>
>
>
>
>
>
>
>
>
Hmm. Yup. I actually just went to a linux system and ran the exact same
example using the exact same ant version and it works fine over there. The
linux box is using the Sun
t;
>> Rob
>>
>> On Fri, 27 May 2011, Echlin, Robert wrote:
>>
>> Hi Rob,
>>> Maybe you need to start the file with the Byte Order Mark?
>>> This is apparently more likely if you are on Windows.
>>>
>>> http://en.wikipedia.org/wiki/U
regarding UTF-8 and property files
So I'm having an issue with UTF-8 and property files. Given
the test build.xml file:
and the file foo.properties:
#foo.propert=Test ế
foo.property=Test \u1EBF
When I run ant (1.8.2) for this target and look in test.txt, I see:
Test ?
me too
On Fri, May 27, 2011 at 8:05 PM, Rob J wrote:
> On Fri, 27 May 2011, Alexandre Priou wrote:
>
> > no test it's the game
>
> Sorry, not following you there...? What do you mean?
>
> thanks,
> rob
>
> -
> To unsubscribe, e
On Fri, 27 May 2011, Alexandre Priou wrote:
> no test it's the game
Sorry, not following you there...? What do you mean?
thanks,
rob
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: us
no test it's the game
On Fri, May 27, 2011 at 7:56 PM, Rob J wrote:
> On Fri, 27 May 2011, Scot P. Floess wrote:
>
> > Try ISO-8859-1 as your encoding... Someone I work with was
> > attempting to use property files with a similar issue (but directly
> > within J
On Fri, 27 May 2011, Scot P. Floess wrote:
> Try ISO-8859-1 as your encoding... Someone I work with was
> attempting to use property files with a similar issue (but directly
> within Java). He used the ISO-8859-1 encoding and it fixed his
> problem...
No dice. I tried chang
n.wikipedia.org/wiki/UTF-8#Byte_order_mark
>
> Rob
>
>
> > -Original Message-
> > From: Rob J [mailto:r...@dcsportbikes.net]
> > Sent: Friday, May 27, 2011 12:03 PM
> > To: user@ant.apache.org
> > Subject: Question regarding UTF-8 and property file
Try ISO-8859-1 as your encoding... Someone I work with was attempting to
use property files with a similar issue (but directly within Java). He
used the ISO-8859-1 encoding and it fixed his problem...
On Fri, 27 May 2011, Rob J wrote:
So I'm having an issue with UTF-8 and property
3 PM
> To: user@ant.apache.org
> Subject: Question regarding UTF-8 and property files
>
> So I'm having an issue with UTF-8 and property files. Given
> the test build.xml file:
>
>
>
>
>
>
>
>
>
> and the file foo.proper
So I'm having an issue with UTF-8 and property files. Given the test
build.xml file:
and the file foo.properties:
#foo.propert=Test ế
foo.property=Test \u1EBF
When I run ant (1.8.2) for this target and look in test.txt, I see:
Test ?
every time. It is not interpr
Thanks, actually your suggestion led me to find that I can use a
resource using a baseResource of ${ant.file.project-name} with a relative
path of "/foo", and this works well. I too had to create a variation that
could load the same resource using a resource, but it wasn't too
hard. I'll proba
On Fri, Apr 8, 2011 at 9:09 AM, Steele, Richard wrote:
> I've created a reusable set of build files using the technique I outlined at
> http://stackoverflow.com/questions/5124726/what-are-some-good-ways-to-distribute-a-common-ant-file-to-be-included-in-builds/5168745#5168745.
> This technique reli
I've created a reusable set of build files using the technique I outlined at
http://stackoverflow.com/questions/5124726/what-are-some-good-ways-to-distribute-a-common-ant-file-to-be-included-in-builds/5168745#5168745.
This technique relies heavily on Ant 1.8 importing files from the classpath
rathe
I have implemented the suggestion on the FAQ of using a macrodef task to do the
double dereference (in 1.7.1) and it works perfectly, so thank you all for the
help. I am still surprised it's not a standard built-in task though...
Cheers,
Tom
-
Not sure about 1.7.1 - havent tried it.
But with trunk ;-)
Jan
>-Ursprüngliche Nachricht-
>Von: Rebhan, Gilbert [mailto:gilbert.reb...@huk-coburg.de]
>Gesendet: Freitag, 4. Dezember 2009 10:02
>An: 'Ant Users List'
>Betreff: RE: Dereferencing property files
>
-Original Message-
From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de]
Sent: Friday, December 04, 2009 9:55 AM
To: user@ant.apache.org
Subject: AW: Dereferencing property files
/*
AFAIK this AC:task is available for Ant earlier 1.6.
With Core: I am not up to date with
hat.
Jan
>-Ursprüngliche Nachricht-
>Von: Dalton, Tom [mailto:tdal...@hp.com]
>Gesendet: Donnerstag, 3. Dezember 2009 18:03
>An: Ant Users List
>Betreff: RE: Dereferencing property files
>
>As a quick note, the FAQ should probably say:
>
>How can I do
-Original Message-
From: Dalton, Tom [mailto:tdal...@hp.com]
Sent: Thursday, December 03, 2009 5:38 PM
To: Ant Users List
Subject: RE: Dereferencing property files
/*
Jan,
Thanks - that is exactly what I need... I'm sorry I did not see that sooner!
Is there any chance of
gain,
Tom
-Original Message-
From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de]
Sent: 03 December 2009 12:49
To: user@ant.apache.org
Subject: AW: Dereferencing property files
Do you mean this:
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property ?
Jan
>-
rw.de [mailto:jan.mate...@rzf.fin-nrw.de]
Sent: 03 December 2009 12:49
To: user@ant.apache.org
Subject: AW: Dereferencing property files
Do you mean this:
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property ?
Jan
>-Ursprüngliche Nachricht-
>Von: Dalton, Tom [mailto:tda
Do you mean this:
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property ?
Jan
>-Ursprüngliche Nachricht-
>Von: Dalton, Tom [mailto:tdal...@hp.com]
>Gesendet: Donnerstag, 3. Dezember 2009 10:39
>An: Ant Users List
>Betreff: RE: Dereferencing property fi
Should I assume that this is impossible in Ant? This seems like a major
limitation...
Tom
-Original Message-
From: Dalton, Tom
Sent: 01 December 2009 12:05
To: user@ant.apache.org
Subject: Dereferencing property files
Hi,
I have a property file with an entries like:
atk-1.26.0
Hi,
I have a property file with an entries like:
atk-1.26.0.exported.base.dir=/path/to/atk/1.26.0
atk-1.27.0.exported.base.dir=/path/to/atk/1.27.0
In my build file I want to be able to refer to this property with a
version-independent name like "atk.base.dir"
I load the property file, to get th
individual ones.
On Wed, Jun 24, 2009 at 7:10 PM, Rez P wrote:
>
> What's the right way to use token replacement for my Ant builds?
>
> We have a few files common to all environments and currently maintain a set
> of these files per environment -- xml files, property files, a
What's the right way to use token replacement for my Ant builds?
We have a few files common to all environments and currently maintain a set of
these files per environment -- xml files, property files, and a web.xml per
environment not identical. The files contain mostly static inform
>
> "Ant Way" of doing what you want is to use the copy task and then use the
> and sub-tasks to modify your copying.
>
Dumb me!
I am *insisting* on the use of ${build.property} style patterns in my files
and getting rid of doing the replace at all!! Makes sense?
Cheers
Avlesh
On Wed, May 27,
"Ant Way" of doing what you want is to use the copy task and then use
the and sub-tasks to modify your copying.
You right now build the warfile in place, and copying all the files to
another directory will increase your build time by a minute or two.
However, it will eliminate the CVS polling is
>
> You mentioned something about having to restore versioned files once
> the substitution is done. We don't have to do that because we don't
> touch the directories where the files are versioned. Instead, we copy
> all the files out to our "target" directory.
>
Right, I do restore the original v
On Tue, May 26, 2009 at 1:29 PM, Avlesh Singh wrote:
> My approach is very similar to yours, David.
> Would it make sense to have something like an injectBuildProperties task in
> ant?
You mentioned something about having to restore versioned files once
the substitution is done. We don't have to
lesh Singh wrote:
> > I am dealing with a web application which has a huge list of build
> > parameters. This list ranges from multiple data sources, to REST based
> API
> > Url's, to HTTP connection properties ... I need to replace these values
> at
> > build
d time in several confugiration/properties files residing in the
> applications classpath. To name a few - Hibernate property files, Spring
> property files etc.
> Currently, I am accomplising this by having replacable tokens (e.g
> _build.property_) in the above mentioned files. As a part of the bui
n the
applications classpath. To name a few - Hibernate property files, Spring
property files etc.
Currently, I am accomplising this by having replacable tokens (e.g
_build.property_) in the above mentioned files. As a part of the build
process (mostly the "war" target), I replace these to
Gilbert Rebhan schrieb:
> Gilbert Rebhan schrieb:
>> David Weintraub schrieb:
>>> On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
>>> That doesn't work. See:
>>> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>> [...]
>>
>> you may try the task from antcontrib,
>> i beli
Gilbert Rebhan schrieb:
> David Weintraub schrieb:
>> On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
>>>
>> That doesn't work. See:
>> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
> [...]
>
> you may try the task from antcontrib,
> i believe the variable task from antelop
David Weintraub schrieb:
> On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
>>
>
> That doesn't work. See:
> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
[...]
you may try the task from antcontrib,
i believe the variable task from antelope will work too.
see=
http://marc
On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
>
That doesn't work. See:
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
>
> Hi,
>
> I have created 2 property files:
>
> test1.properties :
> Proje
Hi,
I have created 2 property files:
test1.properties :
Project1-URL=http://localhost:9080/dummyURL1
Project2-URL=http://localhost:9080/dummyURL2
test2.properties :
name1=Project1
name2=Project2
and the ant target is :
For Below tag I should get the
http://localhost
command line
2) it parses the build.xml file
3) it then reads in any properties from external property files (as specified
by either -propertyfile on the command line or elements)
4) it finally executes the build file
The code that I want to use
ant -propertyfile ./build.properties
I have three property files ( one for common properties, one for version
branch specific properties and one for release/build specific properties).
In build file I concat these files to one and then load properties.
I get Syntax error in property ${dest_root}\${version_pref
It should be
,ColorScreen,JSR82=1.0
Build.xml
...
...
...
-Original Message-
From: ear [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 05, 2007 12:15 PM
To: user@ant.apache.org
Subject: property files
Hello,
is it possible to execute a an ant-task inside of a property file? I'm
using
net
View this message in context:
http://www.nabble.com/property-files-tf4387165.html#a12507917
Sent from the Ant - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
tions, projects, etc.
I hope this helps.
-Rob Anderson
> -Original Message-
> From: arijit [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 12, 2007 6:21 AM
> To: user@ant.apache.org
> Subject: Re: Token based loading of property files
>
>
> in simple words
>
in simple words
I want to load "abc.properties" file and use the values stored in this
property file to do the following --
1. Set some property values for example after reading the value from abc.properties
2. Load few more property files after reading the name of the files to
location="C:/test"
>
>
> Now I want to fill in the value (marked with ?) with C:/test by
> reading from the abc.properties file.
>
> Is it possible ?
>
>
--
View this message in context:
http://www.nabble.com/Token-based-loading-of-p
nabble.com/Token-based-loading-of-property-files-tf3907149.html#a11077576
Sent from the Ant - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
scripts in Eclipse making
use of property files with the format above in the case of a property
like myPropB that property is not detected. I'm sure it's because I
don't have something setup properly within Eclipse. Has anyone
encountered this issue before?
Robert Segal
Tools Develop
hrough the command line this is no
problem. However when I try to run/debug ANT scripts in Eclipse making
use of property files with the format above in the case of a property
like myPropB that property is not detected. I'm sure it's because I
don't have something setup properly wi
From: George Storm [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 September 2006 4:00 AM
To: user@ant.apache.org
Subject: Loading property files at initialization: is this an error or by
design?
The enclosed file(s) demonstrate an error, is this by design or a bug in
ant?
If initialized as sh
The enclosed file(s) demonstrate an error, is this by design or a bug in ant? If initialized as shown in my build file, target "init" the property file is not visible outside of the target from which it is loaded, if initialized as shown in my build file, targets "init2" or "init3" the pro
<[EMAIL PROTECTED]>
An: Ant Users List
Betreff: Re: Ant tasks to encrypt or decrypt passwords from property files
> Dominique Devienne wrote:
> >> we would be interested in encrypting.
> >
> >
> > But then it's a chicken-and-egg problem, no?
> >
&g
Hello Alexey,
I have written something based on your code.
Actually, I wrote an ant task to create the key first.
I wanted to create filters (pluggable into filterchains) to encrypt and
decrypt, but I do not get that to work.
I might do an ant task to encrypt and a sort of loadproperties clone
whi
Dominique Devienne wrote:
we would be interested in encrypting.
But then it's a chicken-and-egg problem, no?
Where are you going to store the passwords to decrypt the passwords
read from properties files? --DD
I keep my password properties out of SCM, in a bit of the filesystem
that is NT
And if you can keep the keystore secret and protected, couldn't you keep
the password secret and protected?
Dominique Devienne wrote:
OK, I see your point, although the key store has to remain 'secret'
somehow, using file-system dependent permissions I guess, otherwise
it's exposed as well. --D
The classic response to the classic topic: if you can protect the
decryption key adequately, why not simply protect the password adequately?
Using encryption to enhance data security isn't a simple matter of
"turning it on" - you have to consider these sorts of issues or all
you'll be doing is
t Users List
> Subject: Re: Ant tasks to encrypt or decrypt passwords from
> property files
>
> This can be done by requiring a key store in user home. Only
> people that have some special certificates, can
> encrypt/decrypt date (SSH style security). The decryption can
>
passphrases by agents is supported by
BouncyCastle.
Regards,
Antoine
Original-Nachricht
Datum: Mon, 19 Jun 2006 13:20:26 -0700
Von: "Alexey N. Solofnenko" <[EMAIL PROTECTED]>
An: Ant Users List
Betreff: Re: Ant tasks to encrypt or decrypt passwords from property f
OK, I see your point, although the key store has to remain 'secret'
somehow, using file-system dependent permissions I guess, otherwise
it's exposed as well. --DD
On 6/19/06, Alexey N. Solofnenko <[EMAIL PROTECTED]> wrote:
This can be done by requiring a key store in user home. Only people that
This can be done by requiring a key store in user home. Only people that
have some special certificates, can encrypt/decrypt date (SSH style
security). The decryption can be easily done with . This is a
corresponding Java code:
SecretKeySpec skeySpec=new SecretKeySpec(readAll("key"), "A
we would be interested in encrypting.
But then it's a chicken-and-egg problem, no?
Where are you going to store the passwords to decrypt the passwords
read from properties files? --DD
-
To unsubscribe, e-mail: [EMAIL PROTECTED
- Original-Nachricht
> Datum: Mon, 19 Jun 2006 13:48:29 -0400
> Von: Jeffrey E Care <[EMAIL PROTECTED]>
> An: Ant Users List
> Betreff: Re: Ant tasks to encrypt or decrypt passwords from property
files
>
> > Encrypt or encode?
> >
> > If you just
swords from property files
> Encrypt or encode?
>
> If you just need them to not be in clear-text you could always use a
> simple encoding: rot13, base64, etc.; depends on how strong your
> requi
crypt or decrypt passwords
from property files
Hi,
I am looking for ant tasks which can be used to encrypt or to decrypt passwords
stored in property files.
The reason is that I am going to develop an ant script which will start
an Oracle SQL*Plus batch or a stored procedure, and the DBA
Hi,
I am looking for ant tasks which can be used to encrypt or to decrypt passwords
stored in property files.
The reason is that I am going to develop an ant script which will start an
Oracle SQL*Plus batch or a stored procedure, and the DBA does not want that we
hard code the password in
I've run across a problem where it seems like on an XP machine the property files
variables are padded.
I have a file user.properties which contains the following..
jdbc-connect-db=TestDB1
db.user=TestUser
db.user.password=Testing_01
jdbc-connect=jdbc:microsoft:sqlserver://SQL-DB
All,
How can i use a property file? Meaning, can i load a property files from
other directories? How?
The reason i asked is because when I do it in cygwin with the structure i
mentioned in the email. xServer/build.xml IMPORTs../../../common.xml and
common.xml LOADs x86.properties file. When I do
70 matches
Mail list logo