You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ciaran Treanor <ci...@unix.net> on 2003/08/22 16:24:12 UTC
Maven and XDoclet templates
Hi,
I'm using XDoclet to generate my web.xml and it's working just
fine. However, I'd now like to parameterise the web.xml
generation using XDoclet templates.
For example,
<context-param>
<param-name>listenPort_http</param-name>
<param-value><XDtConfig:configParameterValue
paramName="httpPort"/></param-value>
</context-param>
Will result in the following being generated to web-xml:
<context-param>
<param-name>listenPort_http</param-name>
<param-value>80</param-value>
</context-param>
If I've set httpPort=80 somewhere. I've no problem
setting this from ant, but can someone let me know how to
this from Maven (project.properties or maven.xml?).
Thanks a million,
ct
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates (repost with clarification)
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- Ciaran Treanor
<ci...@capetechnologies.com> wrote:
> Konstantin Priblouda wrote:
> > I would need to look into plugin.jelly to tell you
> > that. It would be faster, if you do it yourself...
>
> I'll bet you it's not - my knowledge of Jelly is
> minimal.
Mine too :)
> > [ I do not memorize files with over 10K lines... ]
>
> The plugin.jelly for maven-xdoclet (well at least
> the one
> from beta-10) only has 9960 lines ;-)
It depends on xdocelt version used. I'm living off CVS
and sometimes it grows, and sometimes it shrinks...
basically you will have to look for property setting
of form:
xdoclet.webdoclet.<somesubtask>.0.property_name
regards,
=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates (repost with clarification)
Posted by Ciaran Treanor <ci...@capetechnologies.com>.
Konstantin Priblouda wrote:
> I would need to look into plugin.jelly to tell you
> that. It would be faster, if you do it yourself...
I'll bet you it's not - my knowledge of Jelly is minimal.
> [ I do not memorize files with over 10K lines... ]
The plugin.jelly for maven-xdoclet (well at least the one
from beta-10) only has 9960 lines ;-)
Thanks anyway,
ct
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates (repost with clarification)
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- Ciaran Treanor
<ci...@capetechnologies.com> wrote:
> Konstantin Priblouda wrote:
> > It depends whether you use plugin goals or set up
> > ant targets in maven.xml
> >
> > If you use xdoclet:webdoclet
> > then you can specify properties in
> project.properties
> > / build.properties like:
> > maven.xdoclet.webdoclet.jsptaglib.0=false
>
> So, how should the property be named in
> project.properties
> in order to get the httpPort to evaluate to 80?
I would need to look into plugin.jelly to tell you
that. It would be faster, if you do it yourself...
[ I do not memorize files with over 10K lines... ]
regards,
=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates (repost with clarification)
Posted by Ciaran Treanor <ci...@capetechnologies.com>.
Konstantin Priblouda wrote:
> It depends whether you use plugin goals or set up
> ant targets in maven.xml
>
> If you use xdoclet:webdoclet
> then you can specify properties in project.properties
> / build.properties like:
> maven.xdoclet.webdoclet.jsptaglib.0=false
So, how should the property be named in project.properties
in order to get the httpPort to evaluate to 80?
Thanks,
ct
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates (repost with clarification)
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- Ciaran Treanor
<ci...@capetechnologies.com> wrote:
> I'm using XDoclet to generate my web.xml and it's
> working just
> fine. However, I'd now like to parameterise the
> web.xml
> generation using XDoclet templates within files in
> my merge dir.
>
> For example,
> <context-param>
> <param-name>listenPort_http</param-name>
> <param-value><XDtConfig:configParameterValue
> paramName="httpPort"/></param-value>
> </context-param>
>
> Will result in the following being generated to
> web-xml:
> <context-param>
> <param-name>listenPort_http</param-name>
> <param-value>80</param-value>
> </context-param>
>
> If I've set httpPort=80 somewhere. I've no problem
> setting this from ant, but can someone let me know
> how to
> this from Maven (project.properties or maven.xml?).
It depends whether you use plugin goals or set up
ant targets in maven.xml
If you use xdoclet:webdoclet
then you can specify properties in project.properties
/ build.properties like:
maven.xdoclet.webdoclet.jsptaglib.0=false
If ouy set up maven tasks in maven.xml - do like with
ant.
regards,
=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Maven and XDoclet templates (repost with clarification)
Posted by Ciaran Treanor <ci...@capetechnologies.com>.
I'm using XDoclet to generate my web.xml and it's working just
fine. However, I'd now like to parameterise the web.xml
generation using XDoclet templates within files in my merge dir.
For example,
<context-param>
<param-name>listenPort_http</param-name>
<param-value><XDtConfig:configParameterValue
paramName="httpPort"/></param-value>
</context-param>
Will result in the following being generated to web-xml:
<context-param>
<param-name>listenPort_http</param-name>
<param-value>80</param-value>
</context-param>
If I've set httpPort=80 somewhere. I've no problem
setting this from ant, but can someone let me know how to
this from Maven (project.properties or maven.xml?).
Thanks,
ct
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven and XDoclet templates
Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
Hi Ciaran,
you can simply specify a property named httpPort in the standard
project.properties file of your project. It'll be picked up while
xdoclet runs over your sources.
Just a question: Is there an advantage of using
<XDtConfig:configParameterValue paramName="httpPort"/> instead of a
plain ${httpPort}? It worked just fine for me to use the latter
approach.
Cheers,
Dominik
On Fri, 2003-08-22 at 15:24, Ciaran Treanor wrote:
> Hi,
> I'm using XDoclet to generate my web.xml and it's working just
> fine. However, I'd now like to parameterise the web.xml
> generation using XDoclet templates.
>
> For example,
> <context-param>
> <param-name>listenPort_http</param-name>
> <param-value><XDtConfig:configParameterValue
> paramName="httpPort"/></param-value>
> </context-param>
>
> Will result in the following being generated to web-xml:
> <context-param>
> <param-name>listenPort_http</param-name>
> <param-value>80</param-value>
> </context-param>
>
> If I've set httpPort=80 somewhere. I've no problem
> setting this from ant, but can someone let me know how to
> this from Maven (project.properties or maven.xml?).
>
> Thanks a million,
> ct
>
>
>
> ---------------------------------------------------------------------
> 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