RE: Maven properties inside java code

2005-08-09 Thread David Jackman
[mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:32 AM To: users@maven.apache.org Subject: Maven properties inside java code Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined

Re: Maven properties inside java code

2005-08-09 Thread Thomas Van de Velde
Marco, You have to pass the location of poroject.properties to the JVM by adding - Dproperties.path=/yourpath/to/project.properties. Then you use the Java properties api to load this properties file and read your key. Rgds, Thomas On 8/9/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > > Hell

Re: Maven properties inside java code / solved

2005-08-09 Thread Marco Mistroni
hello, sorry i solve dit by defining # Maven JUnit SysProperties... maven.junit.sysproperties=db.url db.user db.password db.driver db.seedfile db.url=jdbc:mysql://localhost:3306/test db.user=root db.password=mypass db.driver=com.mysql.jdbc.Driver db.seedfile=/budget-seed.xml thanx anyway and reg

Maven properties inside java code

2005-08-09 Thread Marco Mistroni
Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined in my project.properties. for example, i have to load a connection to a database (in my dbunit test), and i would like to pick databas