You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by thorsten maus <ma...@pirack.com> on 2004/02/14 23:05:25 UTC
replace token
hi there ..
im actually integrating jboss into my maven project ..
i used to have jboss specific files (server/conf) with replacement tokens
ant was able to replace using my defined properties ...
how do i achieve this using maven
f.e.
<datasources>
<local-tx-datasource>
...
<user-name>@db.user@</user-name>
<password>@db.password@</password>
...
project.property
===========
db.user=foo
db.password=bar
when typing
maven jboss:configure
i would like maven to take the files out of my defined conf directory (
is actually doing it ) ..
and replace the tokens .
any idea ????
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: replace token
Posted by David Garnier <da...@etudier-online.com>.
Le sam 14/02/2004 à 23:05, thorsten maus a écrit :
> hi there ..
>
> im actually integrating jboss into my maven project ..
>
> i used to have jboss specific files (server/conf) with replacement tokens
> ant was able to replace using my defined properties ...
>
> how do i achieve this using maven
>
> f.e.
>
> <datasources>
> <local-tx-datasource>
> ...
> <user-name>@db.user@</user-name>
> <password>@db.password@</password>
> ...
>
> project.property
> ===========
> db.user=foo
> db.password=bar
>
> when typing
>
> maven jboss:configure
>
> i would like maven to take the files out of my defined conf directory (
> is actually doing it ) ..
> and replace the tokens .
>
> any idea ????
>
I don't the "maven way" to do this, but you could simply call Ant with
the right filterset:
http://ant.apache.org/manual/CoreTypes/filterset.html
The syntax uses @property_name@, so it should be a good fit for you.
Best Regards
--
David Garnier <da...@etudier-online.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org