You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by James CE Johnson <jc...@tragus.org> on 2002/12/17 21:17:26 UTC

maven-xdoclet plugin

Heya,

Could we apply this patch to maven-xdoclet-plugin-1.2b2/plugin.jelly? It
adds support for the 'version' and 'destDir' attributes of the <jboss>
subtask.

Thanks,
J

====
//tools/maven/current/plugins/maven-xdoclet-plugin-1.2b2/plugin.jelly#1 -
/home/jcej/tools/maven/current/plugins/maven-xdoclet-plugin-1.2b2/plugin.jelly
====
***************
*** 6645,6650 ****
--- 6645,6654 ----
                <j:set var="subelement_index_var_name"
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}"/>
                <j:if
test="${context.getVariable(subelement_index_var_name) ==
'true'}">
                  <jboss>
+                     <j:set var="prop_name"
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.version"/>
+                     <jelant:setProperty name="version"
value="${context.getVariable(prop_name)}"/>
+                     <j:set var="prop_name"
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.destDir"/>
+                     <jelant:setProperty name="destDir"
value="${context.getVariable(prop_name)}"/>
                      <j:set var="prop_name"
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.createTable"/>
                      <jelant:setProperty name="createTable"
value="${context.getVariable(prop_name)}"/>
                      <j:set var="prop_name"
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.datasource"/>




RE: [Xdoclet-devel] Re: maven-xdoclet plugin

Posted by Ara Abrahamian <ar...@yahoo.com>.
Afaiak that's a bug in Jelly that Aslak reported some time ago. Don't
know if it's fixed or rejected though.

Ara. 

> -----Original Message-----
> From: xdoclet-devel-admin@lists.sourceforge.net [mailto:xdoclet-devel-
> admin@lists.sourceforge.net] On Behalf Of Jim Crossley
> Sent: Thursday, December 19, 2002 6:54 PM
> Cc: 'Turbine Maven Developers List';
xdoclet-devel@lists.sourceforge.net
> Subject: [Xdoclet-devel] Re: maven-xdoclet plugin
> 
> That worked.  I can now put this in my project.properties file:
> 
>    maven.xdoclet.ejbdoclet.jboss.Version=3.0.3
> 
> where with James' previous patch, I was using this:
> 
>    maven.xdoclet.ejbdoclet.jboss.0.version=3.0.3
> 
> I'm curious, though:  is there any rhyme or reason as to why the
version
> property is capitalized but most other properties are lowercase?
> 
> Thanks,
> Jim
> 
> Ara Abrahamian wrote:
> > James, I've fixed this. This plugin.jelly file is autogenerated,
don't
> > patch to it. Btw I can't commit my changes for some reason (pserver
> > works but ssh doesn't, seems like there's some problem with
> > sourceforge). So find it attached until the problem is fixed or
maybe
> > another xdoclet committers commits it :-)
> >
> > - Replace your cvs copy of
> >
xdoclet-all\xdoclet\modules\xdoclet\src\xdoclet\modules\maven\resources\
> > mavenplugin.xdt with this file.
> > - run "ant maven" in xdoclet-all/xdoclet
> > - replace your copy of the plugin with the one from
> > xdoclet-all/xdoclet/maven/target
> >
> > Ara.
> >
> >
> >>-----Original Message-----
> >>From: James CE Johnson [mailto:jcej@tragus.org]
> >>Sent: Tuesday, December 17, 2002 11:47 PM
> >>To: turbine-maven-dev@jakarta.apache.org
> >>Subject: maven-xdoclet plugin
> >>
> >>Heya,
> >>
> >>Could we apply this patch to
maven-xdoclet-plugin-1.2b2/plugin.jelly?
> >
> > It
> >
> >>adds support for the 'version' and 'destDir' attributes of the
<jboss>
> >>subtask.
> >>
> >>Thanks,
> >>J
> >>
> >>====
> >>
> >
> >
//tools/maven/current/plugins/maven-xdoclet-plugin-1.2b2/plugin.jelly#1
> > -
> >
> >>/home/jcej/tools/maven/current/plugins/maven-xdoclet-plugin-
> >>1.2b2/plugin.jelly
> >>====
> >>***************
> >>*** 6645,6650 ****
> >>--- 6645,6654 ----
> >>                <j:set var="subelement_index_var_name"
> >>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}"/>
> >>                <j:if
> >>test="${context.getVariable(subelement_index_var_name) ==
> >>'true'}">
> >>                  <jboss>
> >>+                     <j:set var="prop_name"
> >>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.version"/>
> >>+                     <jelant:setProperty name="version"
> >>value="${context.getVariable(prop_name)}"/>
> >>+                     <j:set var="prop_name"
> >>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.destDir"/>
> >>+                     <jelant:setProperty name="destDir"
> >>value="${context.getVariable(prop_name)}"/>
> >>                      <j:set var="prop_name"
> >>
> >
> >
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.createTable"/>
> >
> >>                      <jelant:setProperty name="createTable"
> >>value="${context.getVariable(prop_name)}"/>
> >>                      <j:set var="prop_name"
>
>>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.datasource"/>
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:   <mailto:turbine-maven-dev-
> >>unsubscribe@jakarta.apache.org>
> >>For additional commands, e-mail: <mailto:turbine-maven-dev-
> >>help@jakarta.apache.org>
> >
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: Geek Gift Procrastinating?
> Get the perfect geek gift now!  Before the Holidays pass you by.
> T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
> _______________________________________________
> Xdoclet-devel mailing list
> Xdoclet-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel


Re: maven-xdoclet plugin

Posted by Jim Crossley <ji...@crossleys.org>.
That worked.  I can now put this in my project.properties file:

   maven.xdoclet.ejbdoclet.jboss.Version=3.0.3

where with James' previous patch, I was using this:

   maven.xdoclet.ejbdoclet.jboss.0.version=3.0.3

I'm curious, though:  is there any rhyme or reason as to why the version 
property is capitalized but most other properties are lowercase?

Thanks,
Jim

Ara Abrahamian wrote:
> James, I've fixed this. This plugin.jelly file is autogenerated, don't
> patch to it. Btw I can't commit my changes for some reason (pserver
> works but ssh doesn't, seems like there's some problem with
> sourceforge). So find it attached until the problem is fixed or maybe
> another xdoclet committers commits it :-)
> 
> - Replace your cvs copy of
> xdoclet-all\xdoclet\modules\xdoclet\src\xdoclet\modules\maven\resources\
> mavenplugin.xdt with this file.
> - run "ant maven" in xdoclet-all/xdoclet
> - replace your copy of the plugin with the one from
> xdoclet-all/xdoclet/maven/target
> 
> Ara. 
> 
> 
>>-----Original Message-----
>>From: James CE Johnson [mailto:jcej@tragus.org]
>>Sent: Tuesday, December 17, 2002 11:47 PM
>>To: turbine-maven-dev@jakarta.apache.org
>>Subject: maven-xdoclet plugin
>>
>>Heya,
>>
>>Could we apply this patch to maven-xdoclet-plugin-1.2b2/plugin.jelly?
> 
> It
> 
>>adds support for the 'version' and 'destDir' attributes of the <jboss>
>>subtask.
>>
>>Thanks,
>>J
>>
>>====
>>
> 
> //tools/maven/current/plugins/maven-xdoclet-plugin-1.2b2/plugin.jelly#1
> -
> 
>>/home/jcej/tools/maven/current/plugins/maven-xdoclet-plugin-
>>1.2b2/plugin.jelly
>>====
>>***************
>>*** 6645,6650 ****
>>--- 6645,6654 ----
>>                <j:set var="subelement_index_var_name"
>>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}"/>
>>                <j:if
>>test="${context.getVariable(subelement_index_var_name) ==
>>'true'}">
>>                  <jboss>
>>+                     <j:set var="prop_name"
>>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.version"/>
>>+                     <jelant:setProperty name="version"
>>value="${context.getVariable(prop_name)}"/>
>>+                     <j:set var="prop_name"
>>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.destDir"/>
>>+                     <jelant:setProperty name="destDir"
>>value="${context.getVariable(prop_name)}"/>
>>                      <j:set var="prop_name"
>>
> 
> value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.createTable"/>
> 
>>                      <jelant:setProperty name="createTable"
>>value="${context.getVariable(prop_name)}"/>
>>                      <j:set var="prop_name"
>>value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.datasource"/>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:turbine-maven-dev-
>>unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:turbine-maven-dev-
>>help@jakarta.apache.org>
> 




RE: maven-xdoclet plugin

Posted by Ara Abrahamian <ar...@yahoo.com>.
James, I've fixed this. This plugin.jelly file is autogenerated, don't
patch to it. Btw I can't commit my changes for some reason (pserver
works but ssh doesn't, seems like there's some problem with
sourceforge). So find it attached until the problem is fixed or maybe
another xdoclet committers commits it :-)

- Replace your cvs copy of
xdoclet-all\xdoclet\modules\xdoclet\src\xdoclet\modules\maven\resources\
mavenplugin.xdt with this file.
- run "ant maven" in xdoclet-all/xdoclet
- replace your copy of the plugin with the one from
xdoclet-all/xdoclet/maven/target

Ara. 

> -----Original Message-----
> From: James CE Johnson [mailto:jcej@tragus.org]
> Sent: Tuesday, December 17, 2002 11:47 PM
> To: turbine-maven-dev@jakarta.apache.org
> Subject: maven-xdoclet plugin
> 
> Heya,
> 
> Could we apply this patch to maven-xdoclet-plugin-1.2b2/plugin.jelly?
It
> adds support for the 'version' and 'destDir' attributes of the <jboss>
> subtask.
> 
> Thanks,
> J
> 
> ====
>
//tools/maven/current/plugins/maven-xdoclet-plugin-1.2b2/plugin.jelly#1
-
> /home/jcej/tools/maven/current/plugins/maven-xdoclet-plugin-
> 1.2b2/plugin.jelly
> ====
> ***************
> *** 6645,6650 ****
> --- 6645,6654 ----
>                 <j:set var="subelement_index_var_name"
> value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}"/>
>                 <j:if
> test="${context.getVariable(subelement_index_var_name) ==
> 'true'}">
>                   <jboss>
> +                     <j:set var="prop_name"
> value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.version"/>
> +                     <jelant:setProperty name="version"
> value="${context.getVariable(prop_name)}"/>
> +                     <j:set var="prop_name"
> value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.destDir"/>
> +                     <jelant:setProperty name="destDir"
> value="${context.getVariable(prop_name)}"/>
>                       <j:set var="prop_name"
>
value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.createTable"/>
>                       <jelant:setProperty name="createTable"
> value="${context.getVariable(prop_name)}"/>
>                       <j:set var="prop_name"
> value="maven.xdoclet.ejbdoclet.jboss.${subelement_index}.datasource"/>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-maven-dev-
> help@jakarta.apache.org>