You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Felix Knecht (JIRA)" <ji...@apache.org> on 2009/03/13 20:12:51 UTC

[jira] Created: (DIRSERVER-1329) Fix expression vs default-value in maven plugins

Fix expression vs default-value in maven plugins
------------------------------------------------

                 Key: DIRSERVER-1329
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1329
             Project: Directory ApacheDS
          Issue Type: Task
          Components: schema-plugin
    Affects Versions: 1.5.5
         Environment: All
            Reporter: Felix Knecht
            Assignee: Felix Knecht
            Priority: Minor
             Fix For: 1.5.5


Following the guide to plugin development it can't be good style to have annotations like
@parameter expression="foobar"

Found such 'expressions' in BootstrapPlugin and DirectorySchemaToolMojo.

This is a missuse to generate a default-value. From http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

"The parameter annotation identifies the variable as a mojo parameter. The default-value parameter of the annotation defines the default value for the variable. This value can include expressions which reference the project, such as "${project.version}" (more can be found in the "Parameter Expressions" document). The expression parameter can be used to allow configuration of the mojo parameter from the command line by referencing a system property that the user sets via the -D option."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRSERVER-1329) Fix expression vs default-value in maven plugins

Posted by "Felix Knecht (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Knecht resolved DIRSERVER-1329.
-------------------------------------

    Resolution: Fixed

> Fix expression vs default-value in maven plugins
> ------------------------------------------------
>
>                 Key: DIRSERVER-1329
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1329
>             Project: Directory ApacheDS
>          Issue Type: Task
>          Components: schema-plugin
>    Affects Versions: 1.5.5
>         Environment: All
>            Reporter: Felix Knecht
>            Assignee: Felix Knecht
>            Priority: Minor
>             Fix For: 1.5.5
>
>
> Following the guide to plugin development it can't be good style to have annotations like
> @parameter expression="foobar"
> Found such 'expressions' in BootstrapPlugin and DirectorySchemaToolMojo.
> This is a missuse to generate a default-value. From http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> "The parameter annotation identifies the variable as a mojo parameter. The default-value parameter of the annotation defines the default value for the variable. This value can include expressions which reference the project, such as "${project.version}" (more can be found in the "Parameter Expressions" document). The expression parameter can be used to allow configuration of the mojo parameter from the command line by referencing a system property that the user sets via the -D option."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRSERVER-1329) Fix expression vs default-value in maven plugins

Posted by "Felix Knecht (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Knecht closed DIRSERVER-1329.
-----------------------------------


> Fix expression vs default-value in maven plugins
> ------------------------------------------------
>
>                 Key: DIRSERVER-1329
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1329
>             Project: Directory ApacheDS
>          Issue Type: Task
>          Components: schema-plugin
>    Affects Versions: 1.5.5
>         Environment: All
>            Reporter: Felix Knecht
>            Assignee: Felix Knecht
>            Priority: Minor
>             Fix For: 1.5.5
>
>
> Following the guide to plugin development it can't be good style to have annotations like
> @parameter expression="foobar"
> Found such 'expressions' in BootstrapPlugin and DirectorySchemaToolMojo.
> This is a missuse to generate a default-value. From http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> "The parameter annotation identifies the variable as a mojo parameter. The default-value parameter of the annotation defines the default value for the variable. This value can include expressions which reference the project, such as "${project.version}" (more can be found in the "Parameter Expressions" document). The expression parameter can be used to allow configuration of the mojo parameter from the command line by referencing a system property that the user sets via the -D option."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.