Maven 1.x XDoc Plugin

To have custom filters.

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Linux.
  • Number of attachments :
    0

Description

Maven xdoc plugin is having the filtering process. But its not having the enhanced filtering like,

@url@5 will be replaced as <a href="www.someurl.com?id=5">5</a> something like this. So its very easy to define the links in the xdoc xmls. It will reduce the usage of HTML specified tags in xdoc xmls.

Activity

Hide
radhakrishnan added a comment -

I have modified the plugin maven-xdoc in order to have custom filters like this. which will find and replace the strings given in plugin.properties or project.properties file with the values given with that.

say in your plugin.properties file, you can have something like,

maven.filter.0 = @string@5

maven.filter.0.url = http://someurl.com?id=

so now the xdoc plugin will filter the xmls by finding the @string@5 string and replace with <a href="http://someurl.com?id=5">5</a>.

Show
radhakrishnan added a comment - I have modified the plugin maven-xdoc in order to have custom filters like this. which will find and replace the strings given in plugin.properties or project.properties file with the values given with that. say in your plugin.properties file, you can have something like, maven.filter.0 = @string@5 maven.filter.0.url = http://someurl.com?id= so now the xdoc plugin will filter the xmls by finding the @string@5 string and replace with <a href="http://someurl.com?id=5">5</a>.
Hide
dion gillard added a comment -

Why not use XML entities?

Show
dion gillard added a comment - Why not use XML entities?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified