Instantiate mapper and pathTool if not provided
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -237,6 +237,9 @@
|
||||
|
||||
<util:replace var="fromPattern" oldChar="\" newChar="/" value="${srcdir}/*.xml"/>
|
||||
<util:replace var="toPattern" oldChar="\" newChar="/" value="${destdir}/*.html"/>
|
||||
<j:if test="${mapper == null}">
|
||||
<j:new var="mapper" className="org.apache.maven.util.CaseInsensitiveGlobPatternMapper"/>
|
||||
</j:if>
|
||||
<j:setProperties object="${mapper}" from="${fromPattern}" to="${toPattern}"/>
|
||||
|
||||
<util:replace var="fromDirPattern" oldChar="\" newChar="/" value="${srcdir}*"/>
|
||||
@@ -302,6 +305,9 @@
|
||||
<echo>Generating ${outFile} from ${file}</echo>
|
||||
<!-- work out relative path -->
|
||||
<util:replace var="docsForward" oldChar="\" newChar="/" value="${srcdir}"/>
|
||||
<j:if test="${pathTool == null}">
|
||||
<j:useBean var="pathTool" class="org.apache.maven.util.DVSLPathTool"/>
|
||||
</j:if>
|
||||
<j:set var="relativePath" value="${pathTool.getRelativePath(docsForward, outFileForward)}"/>
|
||||
|
||||
<!-- determine nav file to be used: 2. check for nav file -->
|
||||
|
||||
Reference in New Issue
Block a user