You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gregory Kick <gk...@gmail.com> on 2007/04/16 19:44:52 UTC

Re: Archetype : $ a predefined character

I think that you want to take a look at
http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#escapingvalidvtlreferences

On 4/16/07, Marouane Amraoui <Ma...@omnidata.co.ma> wrote:
> Good news :
>
> I do the test on this line :
>
> <property name="myproject.name" value="${artifactId}"/>
> <property name="myproject" value="${root}\${artifactId}"/>
>
> Two good news :
>
> 1. ${root} maven try to parse it but only show a wrning message , so don't exit with error :)
>
> 2. what you assumed don't work (\$) work very fine :). Because it generate me this line :
>  <property name="myproject.name" value="myproject"/>
>  <property name="myproject" value="${root}${artifactId}"/>.
>
> You look in the second line maven delete only the character \ without interpreting ${artifactId} :)
>
>
> Thx
>
> -----Message d'origine-----
> De: Marouane Amraoui [mailto:Mamraoui@omnidata.co.ma]
> Envoyé: lundi 16 avril 2007 15:42
> À: Maven Users List
> Objet: RE: Archetype : $ a predefined character
>
> If you can explain me more your solution ?
>
> What I need is :
>
>         <property name="myproject" value="${root}\${artifactId}"/>
>
> ${root} to be ignored. (is ant variable)
>
> And ${artifactId} to be parsed.
>
> Thx
>
>
> -----Message d'origine-----
> De: Kathryn Huxtable [mailto:khuxtable@ku.edu]
> Envoyé: lundi 16 avril 2007 15:37
> À: Maven Users List
> Objet: Re: Archetype : $ a predefined character
>
> I defined a symbol called "dollar" equal to a dollar sign and used ${dollar}
> throughout. It worked. I think you're supposed to be able to use \$, but I
> couldn't get it to work.
>
> -K
>
>
> On 4/16/07 10:19 AM, "Marouane Amraoui" <Ma...@omnidata.co.ma> wrote:
>
> > Hi,
> >
> > I create my own archetype :
> >
> >
> >
> > This archetype generate me a project that contain some file that contain in
> > there body the character $. This character
> >
> > Is normaly interpreted by velocity.
> >
> > There is some solution for that ?
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------
> >
> > Merouane AMRAOUI
> > Consultant Expert
> > Division Développement
> > Email.: mamraoui@omnidata.co.ma
> >
> > Gsm  .: 065 19 60 99
> > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> > OMNIDATA , 74 Bv AbdelMoumen
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Gregory Kick
http://kickstyle.net/