dev@glassfish.java.net

Re: pom.xml question

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Thu, 16 Jul 2009 14:31:30 -0700

Yes,  I can confirm that.   Sorry didn't get to this earlier.
Thanks Tim and Jane for helping me out on this.

Anissa.

Jane Young wrote:
Tim,

The 2nd option works:

$${com.sun.aas.installRoot}

Thanks,
Jane

Jane Young wrote:
I have tried (1) and that did not work.  I have also tried using ascii characters &#36; and that did not work either.
Maybe (2) will work.  You can also post this question in Maven user group: users@maven.apache.org



Tim Quinn wrote:
Hi, Anissa.

I have tried neither of these myself, but they might be worth a try:

1. <property name="dollar" value="$"/>
    ...
    <Glassfish-require-repository>console-plugins=${dollar}{com.sun.aas.installRoot}/lib/console-plugins</Glassfish-require-repository>
         </manifestEntries>

2. Use $$com.sun.aas.installRoot

Please let us know what solution you find!

- Tim

Anissa Lam wrote:

Hi ,

I need to add such a line to my MANIFEST.MF file,
Glassfish-require-repository: console-plugins=${com.sun.aas.installRoot}/lib/console-plugins

How do i specify that in pom.xml so that it doesn't try to resolve ${com.sun.aas.installRoot} ?

If i put this in pom.xml,
        <manifestEntries>
              <Glassfish-require-repository>console-plugins=${com.sun.aas.installRoot}/lib/console-plugins</Glassfish-require-repository>
         </manifestEntries>

That line will end up as
Glassfish-require-repository: console-plugins=null/lib/console-plugins

I tried adding a backslash in front of $,  like this:
<Glassfish-require-repository>console-plugins=\${com.sun.aas.installRoot}/lib/console-plugins</Glassfish-require-repository>

and it will result as
Glassfish-require-repository: console-plugins=\null/lib/console-plugins

Any pointer on what i should do ?

thanks
Anissa.
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: dev-help@glassfish.dev.java.net