Hi

well, a configuration such as the one below:

    <java>
        <include>true</include>
        <includePaths>
            <includePath>include</includePath>
            <includePath>include/win32</includePath>
        </includePaths>
        <link>true</link>
        <runtime>jvm</runtime>
        <runtimeDirectory>lib</runtimeDirectory>
    </java>

where the Java "type" is composed of a List, booleans, a File object and a 
String.
Agreed this could be written flat as:

<javaInclude>true</javaInclude>
...
<javaRuntimeDirectory>lib</javaRuntimeDirectory>

but if you wanted to reuse the Java "type" it makes more sense to have it as
a separate tag.

Linking to the javadoc would already help.

Regards
Mark

 

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 20, 2005 10:53 AM
To: Maven Developers List
Subject: Re: [M2] Does maven initialize sub-tags in the configuration?

Hi Mark,

This behavious is as is currently expected. Currently a and b would be 
considered to be types, so expressions, etc inside the types would not be 
evaluated. However, I think we should link to the javadoc from the plugin 
documentation.

What is your exact use case for having complex configuration where a and b are 
not reusable types?

- Brett

Donszelmann, Mark wrote:
> Hi
> 
> I specify the following configuration in pom.xml for one of my plugins:
> 
> <configuration>
>       <a>
>               <debug>true</debug>
>       </a>
>       <b>
>               <verbose>false</verbose>
>       </b>
> </configuration>
> 
> in the plugin I have both classes A.class and B.class with respective 
> boolean fields "debug" and "verbose".
> 
> Maven 2 seems to fill these fields appropriately from the pom.xml. So far so 
> good.
> 
> Now, the documentation for these fiels in A and B seems to be ignored. 
> That is, specifying "default-value" or "expression" does not work. I 
> assume this is because these classes are not Mojos, but just helper 
> classes. Is there a way to get them processed by the plugin-description 
> system, without them being Mojos?
> 
> When generating documentation for the Mojo (mvn site:site) only the 
> Mojo and its direct fields A and B are documented, but not the content of the 
> classes A and B.
> Is that correct? Am I missing something, or would this be useful, for 
> the configuration of the more complicated Mojos?
> 
> Regards
> Mark Donszelmann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to