lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1366130 - /lucene/dev/trunk/solr/common-build.xml
Date Thu, 26 Jul 2012 18:29:34 GMT
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">



Mime
View raw message