You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/07/01 11:43:17 UTC
[jira] Created: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Thu, 1 Jul 2004 5:43 AM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Carlos Sanchez
Created: Mon, 5 Jul 2004 8:02 AM
Body:
1) plugin:generate-properties is not removed, is changed. The old one generated properties.xml to be used as a start point. The new one generate the plugin.properties file.
The functionality is different, maybe we should call this new goal different and deprecate the old. What about plugin:generate-properties-file ?
2) This to make sure the xdoc gets generated automatically, if there's another way to force it let me know
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=comments#action_21373
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Mon, 5 Jul 2004 8:02 AM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: dion gillard
Created: Sun, 4 Jul 2004 8:49 AM
Body:
1) Do we want to remove plugin:generate-properties yet? I'd be happier to see it deprecated, and a message displayed to the user about it's replacement.
2) Do we really want a 'report' on the plugin properties, rather than just a documented link to properties.html? Or is this to make sure the xdoc gets generated automatically?
Other than that it's looking good.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=comments#action_21357
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Sun, 4 Jul 2004 8:49 AM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Carlos Sanchez (mailto:apache@carlos.cousas.net)
Date: Thu, 1 Jul 2004 5:43 AM
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Thu, 1 Jul 2004 5:43 AM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Carlos Sanchez (mailto:apache@carlos.cousas.net)
Date: Sat, 3 Jul 2004 4:00 PM
Comment:
New patch with documentation and tests
Changes:
Attachment changed to patch.TXT
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Sat, 3 Jul 2004 4:00 PM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPPLUGIN-21?page=comments#action_47255 ]
Carlos Sanchez commented on MPPLUGIN-21:
----------------------------------------
This patch hasn't been tested enough. If somebody has some time to spend working on it...
> Autogenerate plugin.properties and properties documentation
> -----------------------------------------------------------
>
> Key: MPPLUGIN-21
> URL: http://jira.codehaus.org/browse/MPPLUGIN-21
> Project: maven-plugin-plugin
> Type: New Feature
> Reporter: Carlos Sanchez
> Priority: Minor
> Attachments: patch.TXT
>
>
> As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
> - Create an xml file called plugin-properties.xml
> In the plugin project:
> - Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
> - Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
> Just one issue, I wasn't able to add a newline character in a jsl file:
> <jsl:template match="property">
> <j:set var="name"><x:expr select="@name"/></j:set>
> <j:set var="default"><x:expr select="@default"/></j:set>
> ${name}=${default}<!-- Here there should be a newline -->
> </jsl:template>
> Examples:
> The base file
> http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
> The generated documentation
> http://maven.apache.org/reference/plugins/aspectj/properties.html
> The DTD
> http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: Generate plugin.properties and properties documentation from a common file
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Done, attached new patch in jira
http://jira.codehaus.org/browse/MPPLUGIN-21
> -----Original Message-----
> From: Dion Gillard [mailto:dion.gillard@gmail.com]
> Sent: Friday, July 02, 2004 1:41 AM
> To: Maven Developers List
> Subject: Re: Generate plugin.properties and properties
> documentation from a common file
>
> On Fri, 2 Jul 2004 00:15:00 +0200, Carlos Sanchez
> <ap...@carlos.cousas.net> wrote:
> >
> > Hi Dion,
> >
> > Yes, it's true, no doc, no test. Just a "demo" ;) but it
> will be done.
> > I've only tested it with the aspectj and plugin plugins.
> >
> > What I need first is how to add a newline character in a jsl file:
> > <jsl:template match="property">
> > <j:set var="name"><x:expr select="@name"/></j:set>
> > <j:set var="default"><x:expr select="@default"/></j:set>
> > ${name}=${default}<!-- Here there should be a newline -->
> > </jsl:template>
>
> I think you could do this with a
> <j:whitespace trim="false">
> ${name}=${default}
> </j:whitespace>
>
> Untested tho.
>
> > And upload the dtd to the web server if you agree with name
> and folder
> >
> > <!DOCTYPE plugin-properties PUBLIC
> > "-//Apache Software Foundation//DTD Maven Plugin
> Properties
> > Definition 1.0//EN"
> > "http://maven.apache.org/dtds/plugin-properties_1_0.dtd">
> >
> > Or maybe
> >
> "http://maven.apache.org/reference/plugins/plugin/src/dtds/plugin-prop
> > erties
> > _1_0.dtd"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For
> additional commands, e-mail: dev-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Generate plugin.properties and properties documentation from a common file
Posted by Dion Gillard <di...@gmail.com>.
On Fri, 2 Jul 2004 00:15:00 +0200, Carlos Sanchez
<ap...@carlos.cousas.net> wrote:
>
> Hi Dion,
>
> Yes, it's true, no doc, no test. Just a "demo" ;) but it will be done.
> I've only tested it with the aspectj and plugin plugins.
>
> What I need first is how to add a newline character in a jsl file:
> <jsl:template match="property">
> <j:set var="name"><x:expr select="@name"/></j:set>
> <j:set var="default"><x:expr select="@default"/></j:set>
> ${name}=${default}<!-- Here there should be a newline -->
> </jsl:template>
I think you could do this with a
<j:whitespace trim="false">
${name}=${default}
</j:whitespace>
Untested tho.
> And upload the dtd to the web server if you agree with name and folder
>
> <!DOCTYPE plugin-properties PUBLIC
> "-//Apache Software Foundation//DTD Maven Plugin Properties
> Definition 1.0//EN"
> "http://maven.apache.org/dtds/plugin-properties_1_0.dtd">
>
> Or maybe
> "http://maven.apache.org/reference/plugins/plugin/src/dtds/plugin-properties
> _1_0.dtd"
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: Generate plugin.properties and properties documentation from a common file
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi Dion,
Yes, it's true, no doc, no test. Just a "demo" ;) but it will be done.
I've only tested it with the aspectj and plugin plugins.
What I need first is how to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
And upload the dtd to the web server if you agree with name and folder
<!DOCTYPE plugin-properties PUBLIC
"-//Apache Software Foundation//DTD Maven Plugin Properties
Definition 1.0//EN"
"http://maven.apache.org/dtds/plugin-properties_1_0.dtd">
Or maybe
"http://maven.apache.org/reference/plugins/plugin/src/dtds/plugin-properties
_1_0.dtd"
Regards
Carlos Sanchez
A Coruña, Spain
Oness Project
http://oness.sourceforge.net
> -----Original Message-----
> From: Dion Gillard [mailto:dion.gillard@gmail.com]
> Sent: Thursday, July 01, 2004 3:57 PM
> To: Maven Developers List
> Subject: Re: Generate plugin.properties and properties
> documentation from a common file
>
> This makes it available, and looks ok.
>
> However, I didn't see any docs for it, or any tests.
>
> I'm happy it can do the job, but to adopt it, we need to
> document it, have it tested, and convert maven-plugins over
> to use it too.
>
> On Thu, 1 Jul 2004 11:47:56 +0200, Carlos Sanchez
> <ap...@carlos.cousas.net> wrote:
> >
> > I've just submitted the patch to JIRA.
> >
> > Comments, please?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For
> additional commands, e-mail: dev-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Generate plugin.properties and properties documentation from a common file
Posted by Dion Gillard <di...@gmail.com>.
This makes it available, and looks ok.
However, I didn't see any docs for it, or any tests.
I'm happy it can do the job, but to adopt it, we need to document it,
have it tested, and convert maven-plugins over to use it too.
On Thu, 1 Jul 2004 11:47:56 +0200, Carlos Sanchez
<ap...@carlos.cousas.net> wrote:
>
> I've just submitted the patch to JIRA.
>
> Comments, please?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Generate plugin.properties and properties documentation from a common file
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
I've just submitted the patch to JIRA.
Comments, please?
Carlos Sanchez
A Coruña, Spain
Oness Project
http://oness.sourceforge.net
> -----Original Message-----
> From: jira@codehaus.org [mailto:jira@codehaus.org]
> Sent: Thursday, July 01, 2004 11:43 AM
> To: dev@maven.apache.org
> Subject: [jira] Created: (MPPLUGIN-21) Autogenerate
> plugin.properties and properties documentation
>
> Message:
>
> A new issue has been created in JIRA.
>
> ---------------------------------------------------------------------
> View the issue:
> http://jira.codehaus.org/browse/MPPLUGIN-21
>
> Here is an overview of the issue:
> ---------------------------------------------------------------------
> Key: MPPLUGIN-21
> Summary: Autogenerate plugin.properties and properties
> documentation
> Type: New Feature
>
> Status: Open
> Priority: Minor
>
> Original Estimate: Unknown
> Time Spent: Unknown
> Remaining: Unknown
>
> Project: maven-plugin-plugin
>
> Assignee: Carlos Sanchez
> Reporter: Carlos Sanchez
>
> Created: Thu, 1 Jul 2004 5:43 AM
> Updated: Thu, 1 Jul 2004 5:43 AM
>
> Description:
> As sent to the developer list this is a suggestion of how to
> create and document plugin properties easier.
>
> - Create an xml file called plugin-properties.xml
>
> In the plugin project:
> - Process it to generate the properties.xml xdoc using
> <report>maven-plugin-plugin</report>
> - Process it to generate the plugin.properties file (goal
> plugin:generate-properties), maybe in the future there will
> be support for reading properties directly from it.
>
>
> Just one issue, I wasn't able to add a newline character in a
> jsl file:
> <jsl:template match="property">
> <j:set var="name"><x:expr select="@name"/></j:set>
> <j:set var="default"><x:expr select="@default"/></j:set>
> ${name}=${default}<!-- Here there should be a newline -->
> </jsl:template>
>
>
> Examples:
>
> The base file
> http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
>
> The generated documentation
> http://maven.apache.org/reference/plugins/aspectj/properties.html
>
> The DTD
>
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
>
>
>
>
> ---------------------------------------------------------------------
> JIRA INFORMATION:
> This message is automatically generated by JIRA.
>
> If you think it was sent incorrectly contact one of the
> administrators:
> http://jira.codehaus.org/secure/Administrators.jspa
>
> If you want more information on JIRA, or have a bug to report see:
> http://www.atlassian.com/software/jira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For
> additional commands, e-mail: dev-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Carlos Sanchez
Created: Sun, 4 Jul 2004 7:43 AM
Body:
Forgot to add test-generate-properties to testPlugin goal
<goal name="testPlugin" prereqs="test-generate-docs, test-generate-properties">
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=comments#action_21356
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Sun, 4 Jul 2004 7:43 AM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MPPLUGIN-21) Autogenerate plugin.properties and properties documentation
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Carlos Sanchez (mailto:apache@carlos.cousas.net)
Date: Sat, 3 Jul 2004 3:55 PM
Changes:
Attachment changed from patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPPLUGIN-21?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPPLUGIN-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPPLUGIN-21
Summary: Autogenerate plugin.properties and properties documentation
Type: New Feature
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-plugin-plugin
Assignee: Carlos Sanchez
Reporter: Carlos Sanchez
Created: Thu, 1 Jul 2004 5:43 AM
Updated: Sat, 3 Jul 2004 3:55 PM
Description:
As sent to the developer list this is a suggestion of how to create and document plugin properties easier.
- Create an xml file called plugin-properties.xml
In the plugin project:
- Process it to generate the properties.xml xdoc using <report>maven-plugin-plugin</report>
- Process it to generate the plugin.properties file (goal plugin:generate-properties), maybe in the future there will be support for reading properties directly from it.
Just one issue, I wasn't able to add a newline character in a jsl file:
<jsl:template match="property">
<j:set var="name"><x:expr select="@name"/></j:set>
<j:set var="default"><x:expr select="@default"/></j:set>
${name}=${default}<!-- Here there should be a newline -->
</jsl:template>
Examples:
The base file
http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml
The generated documentation
http://maven.apache.org/reference/plugins/aspectj/properties.html
The DTD
http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org