Thanks,

With that and a little googling I was able to find my answer

I also added,

         <filtering>true</filtering>

to my resource in the project.xml file and used filter. 
Works a treat.

c

On Friday 11 March 2005 16:36, Kenney Westerhof wrote:
> On Fri, 11 Mar 2005, Caoilte O'Connor wrote:
>
> Hi,
>
> A possible solution is using <ant:filter/> and <ant:copy
> filtering="true"/> in maven.xml, using the following
> format in hibernate.properties:
>
> [EMAIL PROTECTED]@@biz.db.test.databas
>e@
>
> Greetings,
>
>  Kenney
>
> > Hi,
> > I have defined all my maven used database properties by
> > deriving them from variables in my project.properties
> > file.
> >
> > Unfortunately I use hibernate and do not know of a way
> > of inheriting the properties set in my
> > project.properties file to my hibernate.properties
> > file. It would make my life so much easier for
> > deploying to different environments if I could.
> >
> > What I really want is a goal that will parse my
> > hibernate.properties file with lines like,
> >
> > hibernate.connection.url=${biz.db.url}${biz.db.test.dat
> >abase}
> >
> > and replace the variables with the matching ones from
> > my project.properties before copying the file as if it
> > was a normal resources file.
> >
> > Is there any "right" way to do this?
> >
> > thanks,
> >
> > c
> >
> > -------------------------------------------------------
> >-------------- To unsubscribe, e-mail:
> > [EMAIL PROTECTED] For additional
> > commands, e-mail: [EMAIL PROTECTED]
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------
>------------ To unsubscribe, e-mail:
> [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to