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: > > 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 databasename,user,password etc from > project.properties. > > i have defined thos eproperties in project.properties, and in my > dbunit file i am calling > System.getProperty("db.user") for example > > but i get back null > > can anyone help me ou t?> > > thanx in advance and regards > marco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >