Property replacement works the same way for all tags. The problem is
that property replacement only works if you use
someparam="${some.property}", but not with
someparam="foo${some.property} or someparam="${some.property}bar". Dim
implemented this, so maybe he could fix it. The workaround in the
meanwhile is to concatenate the extra stuff into a separate property
and refer to that. Erik Hatcher (who is an Ant committer) could maybe
be helpful in this too.
Aslak.
----- Original Message -----
From: Rainer Schmitz <[EMAIL PROTECTED]>
Date: Thursday, January 31, 2002 11:47 am
Subject: Re: [Xdoclet-user] xdoclet and multiple deployement.
> Hi,
>
> I have a similiar problem: I want to deploy different applications
> (say
> shop1 and shop2) based on the same beans within the same ejb
> server
> (JBoss). To be able to distinguish the bean "instances" I prefix
> the
> JNDI name with the application name, e. g. shop1/ShoppingCart.
>
> With xDoclet (v1.1.1) I tried to set the application name as ant
> property:
> * @ejb:bean name="${project.name}/ShoppingCart" type="CMP"
> * jndi-name="ejb/${project.name}/ShoppingCart"
>
> Unfortunately the property replacement does not work properly at
> this
> place. It does work for other tags (e.g. within @ejb:env-entry),
> so I'm
> sure the ant property is set and propagated correctly.
>
> Any ideas? Or any other solutions to the multiple deployment problem?
>
> Thanks,
> Rainer
>
>
> [EMAIL PROTECTED] wrote:
>
>
> > A different approach is to use @some:tag
> > someParameter="${some.ant.property}", and XDoclet will replace
> > ${some.ant.property}" with the ant property's value. You can
> define these
> > properties in build.xml, or in external properties files, which
> you can read
> > into ant with <property file="fubar.properties"/>. Then you can
> provide> different versions of this external properties file to
> obtain different
> > deployment descriptors without having to change anything else.
> This requires
> > the CVS version (I think).
> >
> > Would that do the trick for you?
> >
> > Aslak
>
>
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user