History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XDOCLET-55
Type: Wish Wish
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Nicholas Daley
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XDoclet 2

Can't get metadata from folders that aren't in project.compileSourceRoots

Created: 29/May/07 06:55 PM   Updated: 20/Aug/08 10:53 AM
Component/s: Maven2 plugin
Affects Version/s: 2.0.5
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide
I use a custom metadata provider, which gets its metadata from xml files, and not from java files.
At present I use maven2's ant plugin, and ant's xdoclet plugin.

The Maven2 Xdoclet plugin only looks inside paths that are in ${project.compileSourceRoots}. Because of this it only looks in src/main/java, and will not look inside src/main/xml.

In my ant script, I do the following to feed the xml files into my custom metadata provider.

<fileset dir="${basedir}/src/main/xml">
            <include name="**/*.xml"/>
</fileset>

But this isn't possible with the maven2 plugin.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nicholas Daley - 29/May/07 07:29 PM
Oops. I guess this is a duplicate of XDOCLET-49

Grégory Joseph - 20/Aug/08 10:53 AM
Not really. Doesn't this work for you ? :
<plugin>
          <groupId>org.codehaus.xdoclet</groupId>
          <artifactId>maven2-xdoclet2-plugin</artifactId>
          <version>2.0.7-SNAPSHOT</version>
[...]    
          <configuration>
            <configs>
              <config>
[...]
                <includes>**/*.xml</includes>

The Config element's default includes value is */.xml. Note that you can also make it a comma separated list, like */.java,*/.xml for instance.