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/13 19:56:36 UTC
[jira] Created: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Tue, 13 Jul 2004 1:54 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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
RE: [jira] Commented: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Felipe,
> -----Original Message-----
> From: jira@codehaus.org [mailto:jira@codehaus.org]
> Sent: jeudi 15 juillet 2004 19:42
> To: dev@maven.apache.org
> Subject: [jira] Commented: (MPANNOUNCEMENT-11) [PATCH] Option to set
> different templates to be used as announcement
>
> The following comment has been added to this issue:
>
> Author: Felipe Leme
> Created: Thu, 15 Jul 2004 1:40 PM
> Body:
> > How is the following a problem?
>
> > Custom (user overriden):
> > path = ${basedir}/conf/myannouncement.jsl
>
> > Default:
> > path = ${plugin.resources}/announcement.jsl
>
> That's simple, I agree. My only concern is regarding multi-project: if I
> have many sub-projects with share the same announcement, I would like to
> define that property at the root level only(i.e., from where multi-project
> is called). Would ${basedir} in this case solve to the root's dir or to
> each sub-project being 'reacted'? If not, is there any other option or
> would I need to set a physical path? (Sorry for the RTFMish aspect of the
> question, but I'm not that familiar with multiproject yet).
>
I'm answering on the list now as this issue is turning into a discussion...
:-)
I don't think there's any relation with the multiproject here. If you wish
to share properties between multiple projects in Maven, you simply define it
in a top level project.properties file which gets inherited automatically
when you use the <extend> element in the child projects.
The properties are getting placed in the context of the project. They are
each resolved at runtime. Which means ${basedir} gets the right value.
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Felipe Leme
Created: Thu, 15 Jul 2004 1:40 PM
Body:
> How is the following a problem?
> Custom (user overriden):
> path = ${basedir}/conf/myannouncement.jsl
> Default:
> path = ${plugin.resources}/announcement.jsl
That's simple, I agree. My only concern is regarding multi-project: if I have many sub-projects with share the same announcement, I would like to define that property at the root level only(i.e., from where multi-project is called). Would ${basedir} in this case solve to the root's dir or to each sub-project being 'reacted'? If not, is there any other option or would I need to set a physical path? (Sorry for the RTFMish aspect of the question, but I'm not that familiar with multiproject yet).
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21835
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 15 Jul 2004 1:40 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Felipe Leme (mailto:jira@felipeal.net)
Date: Mon, 19 Jul 2004 10:12 AM
Comment:
Vince,
Looks like nobody in the list was interested in this discussion :-(
So, here is a new patch using your simpler solution.
Regards,
Felipe
Changes:
Attachment changed to vincent-suggestion.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Mon, 19 Jul 2004 10:12 AM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Vincent Massol
Created: Wed, 14 Jul 2004 5:14 PM
Body:
Hi Felipe,
Thanks for the patch. Here are some comments/questions:
1/ I'm interested to know why you need to provide your own stylesheet. Is there anything missing in the existing that we could add? How are you using the new properties you've set?
2/ I don't think there's a need for the stylesheet "Type". Simply define the location and you're done.
3/ Yes, there should be unit tests. We need to add tests. Have a look at some other plugins like checkstyle, changes, etc. Check in src/plugin-test. Tests are run by calling "maven plugin:test".
Thanks!
-Vincent
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21781
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Wed, 14 Jul 2004 5:14 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Felipe Leme (mailto:jira@felipeal.net)
Date: Tue, 13 Jul 2004 1:57 PM
Comment:
Patch with the proposed enhancement. Includes:
- plugin.jelly
- xdocs/properties.xml
- xdocs/changes.xml
- project.xml
PS: I didn't provide any unit test case because I think it's not possible for code developed in Jelly. Am I'm right?
Changes:
Attachment changed to stylesheet-location.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Tue, 13 Jul 2004 1:57 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Vincent Massol
Created: Thu, 15 Jul 2004 9:52 AM
Body:
> We use a different format for our email announcement (by the way,
> we're also working in a patch that sends the announcement by mail -
> I will submit it under MPANNOUNCEMENT-9 once it's ready).
cool
> Besides being in a different language (Portuguese), we need more
> info, like:
>
> - SCM tag used for the release
What for?
> - id of the last snapshot
What for?
> - more URLS (documentation, downloads, etc...)
Could you show a sample announcement using your own stylesheet. Maybe we could integrate those changes in the default one if it's generic enough (and useful)?
> I think the type make it more flexible. For instance, in our case
> we are using the resource, as we are installing a customized
> version of the plugin. Most of the time, though, I think people
> could use 'uri' for a global/generic announcement (defined at
> multiproject level, for instance) and 'project' for a project
> specific one.
I don't think you understand what I mean. I'm saying there's no need for a type because the full stylesheet path can be specified in the stylesheet property.
Thanks! It looks good. I'm happy to apply your patch without the type property (or you need to convince me about the type! :-)).
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21817
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 15 Jul 2004 9:52 AM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Vincent Massol
Created: Thu, 15 Jul 2004 1:07 PM
Body:
> The only problem I see with a full path is that it would require
> knowing the physical location of the file or some sort of EL hack
> to obtain it (ex: path=${basedir}/etc/myAnnouncements.jsl). I
> agree that adding a type increases the complexity, but I still
> think that option is usefull. What if we keep the Type, but set it
> as 'uri' by default?
How is the following a problem?
Custom (user overriden):
path = ${basedir}/conf/myannouncement.jsl
Default:
path = ${plugin.resources}/announcement.jsl
Using a type property is much worse IMO as it will only permit the locations that are hard-coded in the script which is limitating, more complex and simply unnecessary.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21834
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 15 Jul 2004 1:07 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Felipe Leme
Created: Thu, 15 Jul 2004 12:42 PM
Body:
> - SCM tag used for the release
> - id of the last snapshot
> What for?
These are part of our internal release management process. We need to inform these data everytime a new release is released.
> - more URLS (documentation, downloads, etc...)
> Could you show a sample announcement using your own stylesheet.
> Maybe we could integrate those changes in the default one if it's
> generic enough (and useful)?
Ok, I will include that in the next patch version.
> I don't think you understand what I mean. I'm saying there's no need
> for a type because the full stylesheet path can be specified in the
> stylesheet property.
The only problem I see with a full path is that it would require knowing the physical location of the file or some sort of EL hack to obtain it (ex: path=${basedir}/etc/myAnnouncements.jsl). I agree that adding a type increases the complexity, but I still think that option is usefull. What if we keep the Type, but set it as 'uri' by default?
> Thanks! It looks good. I'm happy to apply your patch without the
> type property (or you need to convince me about the type! :-)).
Hopefully my last paragraph changed your mind :-)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21833
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 15 Jul 2004 12:42 PM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Felipe Leme
Created: Thu, 15 Jul 2004 8:54 AM
Body:
> Thanks for the patch. Here are some comments/questions:
Thank you for the quick reply - patches/bug reports to popular projects like Maven usually take longer to be answered :-)
> 1/ I'm interested to know why you need to provide your own stylesheet.
We use a different format for our email announcement (by the way, we're also working in a patch that sends the announcement by mail - I will submit it under MPANNOUNCEMENT-9 once it's ready). Besides being in a different language (Portuguese), we need more info, like:
- SCM tag used for the release
- id of the last snapshot
- more URLS (documentation, downloads, etc...)
Of course, we could just change the content of anouncement.jcl, but that is not an elegant solution - what if I need 2 different templates, for instance? (In fact, we will face that situation in the future, as some of our components will be distributed internally and externally).
> Is there anything missing in the existing that we could add?
Yes, we have those specific needs mentioned before. And other organizations might have different ones, so we better provide a configurable template than trying to include everything ourselves.
> How are you using the new properties you've set?
Right now, we are setting the value property globally (i.e., in the multiproject root) and using the default value of 'resource' (the reason for this option is that we are using our customized version of maven, so the new announcement file get automatically installed at $MAVEN_REPO)
> 2/ I don't think there's a need for the stylesheet "Type". Simply
> define the location and you're done.
I think the type make it more flexible. For instance, in our case we are using the resource, as we are installing a customized version of the plugin. Most of the time, though, I think people could use 'uri' for a global/generic announcement (defined at multiproject level, for instance) and 'project' for a project specific one.
> 3/ Yes, there should be unit tests. We need to add tests. Have a
> look at some other plugins like checkstyle, changes, etc. Check in
> src/plugin-test. Tests are run by calling "maven plugin:test".
Ok, I will take a look on them and write the tests later (once we decided how the new feature will be implemented, for instance, having the type property or not).
Regards,
Felipe
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11?page=comments#action_21813
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Unassigned
Priority: Major
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Assignee:
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 15 Jul 2004 8:54 AM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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] Closed: (MPANNOUNCEMENT-11) [PATCH] Option to set different templates to be used as announcement
Posted by ji...@codehaus.org.
Message:
The following issue has been closed.
Resolver: Vincent Massol
Date: Thu, 22 Jul 2004 7:29 AM
Applied (with minor modifications). Thanks.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPANNOUNCEMENT-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPANNOUNCEMENT-11
Summary: [PATCH] Option to set different templates to be used as announcement
Type: Improvement
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-announcement-plugin
Fix Fors:
1.3
Assignee: Vincent Massol
Reporter: Felipe Leme
Created: Tue, 13 Jul 2004 1:54 PM
Updated: Thu, 22 Jul 2004 7:29 AM
Environment: maven-plugins from CVS main branch
Description:
Hi Vince,
It would be nice to allow using different templates (i.e., stylesheet) for the announcement file.
I did some changes (not sure if they're the best, as Jelly is very tricky :-) at plugin.jelly, so now it looks for the following properties in order to define the stylesheet:
maven.announcement.stylesheet.locationType
maven.announcement.stylesheet.locationValue
locationType determines the context where the stylesheet is located (right now: resource, uri or project) and locationValue is the path per see - I'm describing the process in more details on xdocs/properties.xml.
So, I'm sending a patch created from the CVS branch (I've set the currentVersion as 1.3-SNAPSHOT in the project.xml and xdocs/changes.xml included in the patch)
Regards,
Felipe (felipeal at ASF)
---------------------------------------------------------------------
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