mirror of https://github.com/apache/lucene.git
Repair Solr snapshot javadocs to work on windows and with spaces in filename (same fix like in Lucene's docs XSL transformation): The hrefs to external docs must be valid URIs and plain path are not valid URIs, they must start with file:, slashes converted, and spaces escaped. scriptmapper helps with new File(path).toURI()
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1366130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
69a6b5a562
commit
eee56c65d5
|
@ -248,8 +248,14 @@
|
|||
depends="define-lucene-javadoc-url-SNAPSHOT,define-lucene-javadoc-url-release"/>
|
||||
|
||||
<target name="define-lucene-javadoc-url-SNAPSHOT" if="version.contains.SNAPSHOT">
|
||||
<property name="lucene.javadoc.url"
|
||||
value="${common.dir}/build/docs/"/>
|
||||
<pathconvert property="lucene.javadoc.url">
|
||||
<dirset dir="${common.dir}" includes="build/docs"/>
|
||||
<mapper>
|
||||
<scriptmapper language="javascript">
|
||||
self.addMappedName((new java.io.File(source)).toURI());
|
||||
</scriptmapper>
|
||||
</mapper>
|
||||
</pathconvert>
|
||||
</target>
|
||||
|
||||
<target name="define-lucene-javadoc-url-release" unless="version.contains.SNAPSHOT">
|
||||
|
|
Loading…
Reference in New Issue