You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2012/07/26 20:29:34 UTC
svn commit: r1366130 - /lucene/dev/trunk/solr/common-build.xml
Author: uschindler
Date: Thu Jul 26 18:29:33 2012
New Revision: 1366130
URL: http://svn.apache.org/viewvc?rev=1366130&view=rev
Log:
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()
Modified:
lucene/dev/trunk/solr/common-build.xml
Modified: lucene/dev/trunk/solr/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/common-build.xml?rev=1366130&r1=1366129&r2=1366130&view=diff
==============================================================================
--- lucene/dev/trunk/solr/common-build.xml (original)
+++ lucene/dev/trunk/solr/common-build.xml Thu Jul 26 18:29:33 2012
@@ -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">