Property files when running Selenium/JUnit test cases

2012-05-08 Thread rohit dholakia
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
> 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

RE: Question regarding UTF-8 and property files

2011-05-27 Thread Echlin, Robert
o: Ant Users List > Subject: Re: Question regarding UTF-8 and property files > > Works for me: > > > > > encoding="iso-8859-1"/> > > > > > > > > foo: > [echo] [Test ế] > >

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Alexandre Priou
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Scot P. Floess
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 ?

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Alexandre Priou
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Alexandre Priou
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob 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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
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

Re: Question regarding UTF-8 and property files

2011-05-27 Thread Scot P. Floess
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

RE: Question regarding UTF-8 and property files

2011-05-27 Thread Echlin, Robert
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

Question regarding UTF-8 and property files

2011-05-27 Thread Rob J
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

Re: Loading resource or property files embedded in jar file that distributes shared build files?

2011-04-08 Thread Steele, Richard
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

Re: Loading resource or property files embedded in jar file that distributes shared build files?

2011-04-08 Thread Matt Benson
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

Loading resource or property files embedded in jar file that distributes shared build files?

2011-04-08 Thread Steele, Richard
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

RE: Dereferencing property files

2009-12-04 Thread Dalton, Tom
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 -

AW: Dereferencing property files

2009-12-04 Thread Jan.Materne
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 >

RE: Dereferencing property files

2009-12-04 Thread Rebhan, Gilbert
-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

AW: Dereferencing property files

2009-12-04 Thread Jan.Materne
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

RE: Dereferencing property files

2009-12-04 Thread Rebhan, Gilbert
-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

RE: Dereferencing property files

2009-12-03 Thread Dalton, Tom
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 >-

RE: Dereferencing property files

2009-12-03 Thread Dalton, Tom
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

AW: Dereferencing property files

2009-12-03 Thread Jan.Materne
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

RE: Dereferencing property files

2009-12-03 Thread Dalton, Tom
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

Dereferencing property files

2009-12-01 Thread Dalton, Tom
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

Re: Tokenizing Property Files

2009-06-25 Thread David Weintraub
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

Tokenizing Property Files

2009-06-25 Thread Rez P
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

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
> > "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,

Re: Replacing build variables in my application property files

2009-05-26 Thread David Weintraub
"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

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
> > 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

Re: Replacing build variables in my application property files

2009-05-26 Thread David Weintraub
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

Re: Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
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

Re: Replacing build variables in my application property files

2009-05-26 Thread David Weintraub
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

Replacing build variables in my application property files

2009-05-26 Thread Avlesh Singh
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

Re: How to combine the values of 2 property files and putting into another property name

2009-03-24 Thread Gilbert Rebhan
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

Re: How to combine the values of 2 property files and putting into another property name

2009-03-24 Thread Gilbert Rebhan
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

Re: How to combine the values of 2 property files and putting into another property name

2009-03-24 Thread Gilbert Rebhan
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

Re: How to combine the values of 2 property files and putting into another property name

2009-03-24 Thread David Weintraub
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

How to combine the values of 2 property files and putting into another property name

2009-03-24 Thread NR031
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

taskdef parsed before properties expansion if use property files?

2008-07-24 Thread Brent
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

Syntax Error when loading property file after concatting several property files

2008-01-07 Thread Elvis Napoleon
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

RE: property files

2007-09-05 Thread James Oltmans
,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

property files

2007-09-05 Thread ear
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: [

RE: Token based loading of property files

2007-06-12 Thread Anderson, Rob (Global Trade)
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 >

Re: Token based loading of property files

2007-06-12 Thread arijit
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

Re: Token based loading of property files

2007-06-12 Thread arijit
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

Token based loading of property files

2007-06-12 Thread arijit
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]

Re: Failure to have properties detected from property files within Eclipse for running/debugging

2007-02-27 Thread Omry Yadan
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

Failure to have properties detected from property files within Eclipse for running/debugging

2007-02-26 Thread Robert Segal
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

RE: Loading property files at initialization: is this an error or by design?

2006-09-25 Thread Stephen McConnell
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

Loading property files at initialization: is this an error or by design?

2006-09-25 Thread George Storm
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

Re: Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-20 Thread Antoine Levy-Lambert
<[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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-20 Thread Antoine Levy-Lambert
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-20 Thread Steve Loughran
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread danch
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread danch
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

RE: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Anderson, Rob (Global Trade)
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 >

Re: Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Antoine Levy-Lambert
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Dominique Devienne
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Alexey N. Solofnenko
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

Re: Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Dominique Devienne
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

Re: Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Jeffrey E Care
- 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

Re: Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Antoine Levy-Lambert
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

Re: Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Jeffrey E Care
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

Ant tasks to encrypt or decrypt passwords from property files

2006-06-19 Thread Antoine Levy-Lambert
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

WindowsXP - JDBC and property files

2004-02-25 Thread Mario Manfre
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

Question about property files... Re: Comment in my Ant build structure please? and

2004-02-07 Thread Baz
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