mirror of https://github.com/apache/lucene.git
LUCENE-4747: Move to Java 7 in trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5e1b888b3
commit
6231597974
10
build.xml
10
build.xml
|
@ -210,7 +210,7 @@
|
||||||
|
|
||||||
<echo>
|
<echo>
|
||||||
SUCCESS: You must right-click your project and choose Refresh.
|
SUCCESS: You must right-click your project and choose Refresh.
|
||||||
Your project must use a Java 6 JRE.
|
Your project must use a Java 7 JRE.
|
||||||
</echo>
|
</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -274,16 +274,11 @@
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="-env-JAVA6_HOME" depends="-load-env" if="env.JAVA6_HOME">
|
|
||||||
<property name="JAVA6_HOME" value="${env.JAVA6_HOME}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="-env-JAVA7_HOME" depends="-load-env" if="env.JAVA7_HOME">
|
<target name="-env-JAVA7_HOME" depends="-load-env" if="env.JAVA7_HOME">
|
||||||
<property name="JAVA7_HOME" value="${env.JAVA7_HOME}"/>
|
<property name="JAVA7_HOME" value="${env.JAVA7_HOME}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it" depends="clean,-env-JAVA6_HOME,-env-JAVA7_HOME">
|
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it" depends="clean,-env-JAVA7_HOME">
|
||||||
<fail unless="JAVA6_HOME">JAVA6_HOME property or environment variable is not defined.</fail>
|
|
||||||
<fail unless="JAVA7_HOME">JAVA7_HOME property or environment variable is not defined.</fail>
|
<fail unless="JAVA7_HOME">JAVA7_HOME property or environment variable is not defined.</fail>
|
||||||
<subant target="prepare-release-no-sign" inheritall="false" failonerror="true">
|
<subant target="prepare-release-no-sign" inheritall="false" failonerror="true">
|
||||||
<fileset dir="lucene" includes="build.xml" />
|
<fileset dir="lucene" includes="build.xml" />
|
||||||
|
@ -309,7 +304,6 @@
|
||||||
<arg value="${fakeReleaseVersion}"/>
|
<arg value="${fakeReleaseVersion}"/>
|
||||||
<arg file="${fakeReleaseTmp}"/>
|
<arg file="${fakeReleaseTmp}"/>
|
||||||
<arg value="false"/>
|
<arg value="false"/>
|
||||||
<env key="JAVA6_HOME" file="${JAVA6_HOME}"/>
|
|
||||||
<env key="JAVA7_HOME" file="${JAVA7_HOME}"/>
|
<env key="JAVA7_HOME" file="${JAVA7_HOME}"/>
|
||||||
</exec>
|
</exec>
|
||||||
<delete dir="${fakeRelease}"/>
|
<delete dir="${fakeRelease}"/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#Sun Sep 23 13:02:27 EDT 2012
|
#Sun Sep 23 13:02:27 EDT 2012
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
@ -18,7 +18,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
|
||||||
org.eclipse.jdt.core.compiler.source=1.6
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
||||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||||
|
|
|
@ -36,7 +36,7 @@ A. How to use nightly Jenkins-built Lucene/Solr Maven artifacts
|
||||||
|
|
||||||
B. How to generate Lucene/Solr Maven artifacts
|
B. How to generate Lucene/Solr Maven artifacts
|
||||||
|
|
||||||
Prerequisites: JDK 1.6+ and Ant 1.8.2+
|
Prerequisites: JDK 1.7+ and Ant 1.8.2+
|
||||||
|
|
||||||
Run 'ant generate-maven-artifacts' to create an internal Maven
|
Run 'ant generate-maven-artifacts' to create an internal Maven
|
||||||
repository, including POMs, binary .jars, source .jars, and javadoc
|
repository, including POMs, binary .jars, source .jars, and javadoc
|
||||||
|
@ -50,7 +50,7 @@ B. How to generate Lucene/Solr Maven artifacts
|
||||||
|
|
||||||
C. How to deploy Maven artifacts to a repository
|
C. How to deploy Maven artifacts to a repository
|
||||||
|
|
||||||
Prerequisites: JDK 1.6+ and Ant 1.8.2+
|
Prerequisites: JDK 1.7+ and Ant 1.8.2+
|
||||||
|
|
||||||
You can deploy targets for all of Lucene/Solr, only Lucene, or only Solr,
|
You can deploy targets for all of Lucene/Solr, only Lucene, or only Solr,
|
||||||
as in B. above. To deploy to a Maven repository, the command is the same
|
as in B. above. To deploy to a Maven repository, the command is the same
|
||||||
|
@ -77,7 +77,7 @@ D. How to use Maven to build Lucene/Solr
|
||||||
|
|
||||||
The details, followed by some example Maven commands:
|
The details, followed by some example Maven commands:
|
||||||
|
|
||||||
1. Prerequisites: JDK 1.6+ and Maven 2.2.1 or 3.0.X
|
1. Prerequisites: JDK 1.7+ and Maven 2.2.1 or 3.0.X
|
||||||
|
|
||||||
2. Make sure your sources are up to date. If you checked your sources out
|
2. Make sure your sources are up to date. If you checked your sources out
|
||||||
from the Apache Subversion repository, run "svn update" from the top
|
from the Apache Subversion repository, run "svn update" from the top
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<vc-browse-base-url>http://svn.apache.org/viewvc/lucene/dev/trunk</vc-browse-base-url>
|
<vc-browse-base-url>http://svn.apache.org/viewvc/lucene/dev/trunk</vc-browse-base-url>
|
||||||
<base.specification.version>5.0.0</base.specification.version>
|
<base.specification.version>5.0.0</base.specification.version>
|
||||||
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
|
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
|
||||||
<java.compat.version>1.6</java.compat.version>
|
<java.compat.version>1.7</java.compat.version>
|
||||||
<jetty.version>8.1.8.v20121106</jetty.version>
|
<jetty.version>8.1.8.v20121106</jetty.version>
|
||||||
<slf4j.version>1.6.4</slf4j.version>
|
<slf4j.version>1.6.4</slf4j.version>
|
||||||
<tika.version>1.3</tika.version>
|
<tika.version>1.3</tika.version>
|
||||||
|
|
|
@ -56,9 +56,7 @@ def unshortenURL(url):
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def javaExe(version):
|
def javaExe(version):
|
||||||
if version == '1.6':
|
if version == '1.7':
|
||||||
path = JAVA6_HOME
|
|
||||||
elif version == '1.7':
|
|
||||||
path = JAVA7_HOME
|
path = JAVA7_HOME
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("unknown Java version '%s'" % version)
|
raise RuntimeError("unknown Java version '%s'" % version)
|
||||||
|
@ -73,11 +71,6 @@ def verifyJavaVersion(version):
|
||||||
|
|
||||||
# http://s.apache.org/lusolr32rc2
|
# http://s.apache.org/lusolr32rc2
|
||||||
env = os.environ
|
env = os.environ
|
||||||
try:
|
|
||||||
JAVA6_HOME = env['JAVA6_HOME']
|
|
||||||
except KeyError:
|
|
||||||
JAVA6_HOME = '/usr/local/jdk1.6.0_27'
|
|
||||||
print('JAVA6_HOME is %s' % JAVA6_HOME)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
JAVA7_HOME = env['JAVA7_HOME']
|
JAVA7_HOME = env['JAVA7_HOME']
|
||||||
|
@ -85,7 +78,6 @@ except KeyError:
|
||||||
JAVA7_HOME = '/usr/local/jdk1.7.0_01'
|
JAVA7_HOME = '/usr/local/jdk1.7.0_01'
|
||||||
print('JAVA7_HOME is %s' % JAVA7_HOME)
|
print('JAVA7_HOME is %s' % JAVA7_HOME)
|
||||||
|
|
||||||
verifyJavaVersion('1.6')
|
|
||||||
verifyJavaVersion('1.7')
|
verifyJavaVersion('1.7')
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
@ -191,10 +183,10 @@ def checkJARMetaData(desc, jarFile, version):
|
||||||
|
|
||||||
for verify in (
|
for verify in (
|
||||||
'Implementation-Vendor: The Apache Software Foundation',
|
'Implementation-Vendor: The Apache Software Foundation',
|
||||||
# Make sure 1.6 compiler was used to build release bits:
|
# Make sure 1.7 compiler was used to build release bits:
|
||||||
'X-Compile-Source-JDK: 1.6',
|
'X-Compile-Source-JDK: 1.7',
|
||||||
# Make sure .class files are 1.6 format:
|
# Make sure .class files are 1.7 format:
|
||||||
'X-Compile-Target-JDK: 1.6',
|
'X-Compile-Target-JDK: 1.7',
|
||||||
# Make sure this matches the version we think we are releasing:
|
# Make sure this matches the version we think we are releasing:
|
||||||
'Specification-Version: %s' % version):
|
'Specification-Version: %s' % version):
|
||||||
if s.find(verify) == -1:
|
if s.find(verify) == -1:
|
||||||
|
@ -655,15 +647,6 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
|
||||||
run('%s; ant validate' % javaExe('1.7'), '%s/validate.log' % unpackPath)
|
run('%s; ant validate' % javaExe('1.7'), '%s/validate.log' % unpackPath)
|
||||||
|
|
||||||
if project == 'lucene':
|
if project == 'lucene':
|
||||||
print(' run tests w/ Java 6...')
|
|
||||||
run('%s; ant test' % javaExe('1.6'), '%s/test.log' % unpackPath)
|
|
||||||
run('%s; ant jar' % javaExe('1.6'), '%s/compile.log' % unpackPath)
|
|
||||||
testDemo(isSrc, version, '1.6')
|
|
||||||
# test javadocs
|
|
||||||
print(' generate javadocs w/ Java 6...')
|
|
||||||
run('%s; ant javadocs' % javaExe('1.6'), '%s/javadocs.log' % unpackPath)
|
|
||||||
checkJavadocpath('%s/build/docs' % unpackPath)
|
|
||||||
|
|
||||||
print(' run tests w/ Java 7...')
|
print(' run tests w/ Java 7...')
|
||||||
run('%s; ant clean test' % javaExe('1.7'), '%s/test.log' % unpackPath)
|
run('%s; ant clean test' % javaExe('1.7'), '%s/test.log' % unpackPath)
|
||||||
run('%s; ant jar' % javaExe('1.7'), '%s/compile.log' % unpackPath)
|
run('%s; ant jar' % javaExe('1.7'), '%s/compile.log' % unpackPath)
|
||||||
|
@ -675,14 +658,6 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
os.chdir('solr')
|
os.chdir('solr')
|
||||||
# DISABLED until solr tests consistently pass
|
|
||||||
#print(' run tests w/ Java 6...')
|
|
||||||
#run('%s; ant test' % javaExe('1.6'), '%s/test.log' % unpackPath)
|
|
||||||
|
|
||||||
# test javadocs
|
|
||||||
print(' generate javadocs w/ Java 6...')
|
|
||||||
run('%s; ant javadocs' % javaExe('1.6'), '%s/javadocs.log' % unpackPath)
|
|
||||||
checkJavadocpath('%s/solr/build/docs' % unpackPath, False)
|
|
||||||
|
|
||||||
# DISABLED until solr tests consistently pass
|
# DISABLED until solr tests consistently pass
|
||||||
#print(' run tests w/ Java 7...')
|
#print(' run tests w/ Java 7...')
|
||||||
|
@ -693,10 +668,6 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
|
||||||
run('%s; ant clean javadocs' % javaExe('1.7'), '%s/javadocs.log' % unpackPath)
|
run('%s; ant clean javadocs' % javaExe('1.7'), '%s/javadocs.log' % unpackPath)
|
||||||
checkJavadocpathFull('%s/solr/build/docs' % unpackPath, False)
|
checkJavadocpathFull('%s/solr/build/docs' % unpackPath, False)
|
||||||
|
|
||||||
print(' test solr example w/ Java 6...')
|
|
||||||
run('%s; ant clean example' % javaExe('1.6'), '%s/antexample.log' % unpackPath)
|
|
||||||
testSolrExample(unpackPath, JAVA6_HOME, True)
|
|
||||||
|
|
||||||
print(' test solr example w/ Java 7...')
|
print(' test solr example w/ Java 7...')
|
||||||
run('%s; ant clean example' % javaExe('1.7'), '%s/antexample.log' % unpackPath)
|
run('%s; ant clean example' % javaExe('1.7'), '%s/antexample.log' % unpackPath)
|
||||||
testSolrExample(unpackPath, JAVA7_HOME, True)
|
testSolrExample(unpackPath, JAVA7_HOME, True)
|
||||||
|
@ -710,21 +681,11 @@ def verifyUnpacked(project, artifact, unpackPath, version, tmpDir):
|
||||||
checkAllJARs(os.getcwd(), project, version)
|
checkAllJARs(os.getcwd(), project, version)
|
||||||
|
|
||||||
if project == 'lucene':
|
if project == 'lucene':
|
||||||
testDemo(isSrc, version, '1.6')
|
|
||||||
testDemo(isSrc, version, '1.7')
|
testDemo(isSrc, version, '1.7')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
checkSolrWAR('%s/example/webapps/solr.war' % unpackPath, version)
|
checkSolrWAR('%s/example/webapps/solr.war' % unpackPath, version)
|
||||||
|
|
||||||
print(' copying unpacked distribution for Java 6 ...')
|
|
||||||
java6UnpackPath = '%s-java6' %unpackPath
|
|
||||||
if os.path.exists(java6UnpackPath):
|
|
||||||
shutil.rmtree(java6UnpackPath)
|
|
||||||
shutil.copytree(unpackPath, java6UnpackPath)
|
|
||||||
os.chdir(java6UnpackPath)
|
|
||||||
print(' test solr example w/ Java 6...')
|
|
||||||
testSolrExample(java6UnpackPath, JAVA6_HOME, False)
|
|
||||||
|
|
||||||
print(' copying unpacked distribution for Java 7 ...')
|
print(' copying unpacked distribution for Java 7 ...')
|
||||||
java7UnpackPath = '%s-java7' %unpackPath
|
java7UnpackPath = '%s-java7' %unpackPath
|
||||||
if os.path.exists(java7UnpackPath):
|
if os.path.exists(java7UnpackPath):
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
Lucene Build Instructions
|
Lucene Build Instructions
|
||||||
|
|
||||||
Basic steps:
|
Basic steps:
|
||||||
0) Install JDK 1.6 (or greater), Ant 1.8.2+, Ivy 2.2.0
|
0) Install JDK 1.7 (or greater), Ant 1.8.2+, Ivy 2.2.0
|
||||||
1) Download Lucene from Apache and unpack it
|
1) Download Lucene from Apache and unpack it
|
||||||
2) Connect to the top-level of your Lucene installation
|
2) Connect to the top-level of your Lucene installation
|
||||||
3) Install JavaCC (optional)
|
3) Install JavaCC (optional)
|
||||||
4) Run ant
|
4) Run ant
|
||||||
|
|
||||||
Step 0) Set up your development environment (JDK 1.6 or greater,
|
Step 0) Set up your development environment (JDK 1.7 or greater,
|
||||||
Ant 1.8.2+, Ivy 2.2.0)
|
Ant 1.8.2+, Ivy 2.2.0)
|
||||||
|
|
||||||
We'll assume that you know how to get and set up the JDK - if you
|
We'll assume that you know how to get and set up the JDK - if you
|
||||||
don't, then we suggest starting at http://java.sun.com and learning
|
don't, then we suggest starting at http://java.sun.com and learning
|
||||||
more about Java, before returning to this README. Lucene runs with
|
more about Java, before returning to this README. Lucene runs with
|
||||||
JDK 1.6 and later.
|
JDK 1.7 and later.
|
||||||
|
|
||||||
Like many Open Source java projects, Lucene uses Apache Ant for build
|
Like many Open Source java projects, Lucene uses Apache Ant for build
|
||||||
control. Specifically, you MUST use Ant version 1.8.2+.
|
control. Specifically, you MUST use Ant version 1.8.2+.
|
||||||
|
|
|
@ -19,6 +19,11 @@ Changes in backwards compatibility policy
|
||||||
(Nikola Tanković, Uwe Schindler, Chris Male, Mike McCandless,
|
(Nikola Tanković, Uwe Schindler, Chris Male, Mike McCandless,
|
||||||
Robert Muir)
|
Robert Muir)
|
||||||
|
|
||||||
|
New Features
|
||||||
|
|
||||||
|
* LUCENE-4747: Move to Java 7 as minimum Java version.
|
||||||
|
(Robert Muir, Uwe Schindler)
|
||||||
|
|
||||||
======================= Lucene 4.3.0 =======================
|
======================= Lucene 4.3.0 =======================
|
||||||
|
|
||||||
Changes in backwards compatibility policy
|
Changes in backwards compatibility policy
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# System Requirements
|
# System Requirements
|
||||||
|
|
||||||
Apache Lucene runs of Java 6 or greater. When using Java 7, be sure to
|
Apache Lucene runs of Java 7 or greater. When using Java 7, be sure to
|
||||||
install at least Update 1! With all Java versions it is strongly
|
install at least Update 1! With all Java versions it is strongly
|
||||||
recommended to not use experimental `-XX` JVM options. It is also
|
recommended to not use experimental `-XX` JVM options. It is also
|
||||||
recommended to always use the latest update version of your Java VM,
|
recommended to always use the latest update version of your Java VM,
|
||||||
|
|
|
@ -439,7 +439,7 @@
|
||||||
<svn-export-source source.dir="."/>
|
<svn-export-source source.dir="."/>
|
||||||
|
|
||||||
<!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
|
<!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
|
||||||
<delete dir="${svn.export.dir}/tools/javadoc/java6"/>
|
<delete dir="${svn.export.dir}/tools/javadoc/java7"/>
|
||||||
<!-- Exclude clover license files incompatible with the ASL -->
|
<!-- Exclude clover license files incompatible with the ASL -->
|
||||||
<delete dir="${svn.export.dir}/tools/clover"/>
|
<delete dir="${svn.export.dir}/tools/clover"/>
|
||||||
|
|
||||||
|
|
|
@ -143,16 +143,16 @@
|
||||||
|
|
||||||
<property name="javac.deprecation" value="off"/>
|
<property name="javac.deprecation" value="off"/>
|
||||||
<property name="javac.debug" value="on"/>
|
<property name="javac.debug" value="on"/>
|
||||||
<property name="javac.source" value="1.6"/>
|
<property name="javac.source" value="1.7"/>
|
||||||
<property name="javac.target" value="1.6"/>
|
<property name="javac.target" value="1.7"/>
|
||||||
<property name="javac.source.backwards" value="1.6"/>
|
<property name="javac.source.backwards" value="1.7"/>
|
||||||
<property name="javac.target.backwards" value="1.6"/>
|
<property name="javac.target.backwards" value="1.7"/>
|
||||||
<property name="javac.args" value="-Xlint -Xlint:-deprecation -Xlint:-serial -Xlint:-options"/>
|
<property name="javac.args" value="-Xlint -Xlint:-deprecation -Xlint:-serial -Xlint:-options"/>
|
||||||
<property name="bootclasspath" value=""/>
|
<property name="bootclasspath" value=""/>
|
||||||
<property name="javadoc.link" value="http://download.oracle.com/javase/6/docs/api/"/>
|
<property name="javadoc.link" value="http://download.oracle.com/javase/7/docs/api/"/>
|
||||||
<property name="javadoc.link.junit" value="http://junit.sourceforge.net/javadoc/"/>
|
<property name="javadoc.link.junit" value="http://junit.sourceforge.net/javadoc/"/>
|
||||||
<property name="javadoc.packagelist.dir" location="${common.dir}/tools/javadoc"/>
|
<property name="javadoc.packagelist.dir" location="${common.dir}/tools/javadoc"/>
|
||||||
<available file="${javadoc.packagelist.dir}/java6/package-list" property="javadoc.java6.packagelist.exists"/>
|
<available file="${javadoc.packagelist.dir}/java7/package-list" property="javadoc.java7.packagelist.exists"/>
|
||||||
<property name="javadoc.access" value="protected"/>
|
<property name="javadoc.access" value="protected"/>
|
||||||
<property name="javadoc.charset" value="utf-8"/>
|
<property name="javadoc.charset" value="utf-8"/>
|
||||||
<property name="javadoc.dir" location="${common.dir}/build/docs"/>
|
<property name="javadoc.dir" location="${common.dir}/build/docs"/>
|
||||||
|
@ -253,7 +253,7 @@
|
||||||
</propertyset>
|
</propertyset>
|
||||||
|
|
||||||
<patternset id="lucene.local.src.package.patterns"
|
<patternset id="lucene.local.src.package.patterns"
|
||||||
excludes="**/pom.xml,**/*.iml,**/*.jar,build/**,dist/**,benchmark/work/**,benchmark/temp/**,tools/javadoc/java6/**,tools/clover/**"
|
excludes="**/pom.xml,**/*.iml,**/*.jar,build/**,dist/**,benchmark/work/**,benchmark/temp/**,tools/javadoc/java7/**,tools/clover/**"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Default exclude sources and javadoc jars from Ivy fetch to save time and bandwidth -->
|
<!-- Default exclude sources and javadoc jars from Ivy fetch to save time and bandwidth -->
|
||||||
|
@ -282,10 +282,7 @@
|
||||||
<condition property="build.java.runtime" value="1.7">
|
<condition property="build.java.runtime" value="1.7">
|
||||||
<hasmethod classname="java.lang.Throwable" method="getSuppressed"/>
|
<hasmethod classname="java.lang.Throwable" method="getSuppressed"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition property="build.java.runtime" value="1.6">
|
<fail message="Minimum supported Java version is 1.7." unless="build.java.runtime"/>
|
||||||
<hasmethod classname="java.lang.String" method="isEmpty"/>
|
|
||||||
</condition>
|
|
||||||
<fail message="Minimum supported Java version is 1.6." unless="build.java.runtime"/>
|
|
||||||
|
|
||||||
<condition property="documentation-lint.supported">
|
<condition property="documentation-lint.supported">
|
||||||
<and>
|
<and>
|
||||||
|
@ -1662,7 +1659,7 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
||||||
<attribute name="overview" default="${src.dir}/overview.html"/>
|
<attribute name="overview" default="${src.dir}/overview.html"/>
|
||||||
<attribute name="linksource" default="no"/>
|
<attribute name="linksource" default="no"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<antcall target="download-java6-javadoc-packagelist"/>
|
<antcall target="download-java7-javadoc-packagelist"/>
|
||||||
<delete file="@{destdir}/stylesheet.css" failonerror="false"/>
|
<delete file="@{destdir}/stylesheet.css" failonerror="false"/>
|
||||||
<copy todir="@{destdir}" file="${prettify.dir}/prettify.js" overwrite="false" />
|
<copy todir="@{destdir}" file="${prettify.dir}/prettify.js" overwrite="false" />
|
||||||
<record name="@{destdir}/log_javadoc.txt" action="start" append="no"/>
|
<record name="@{destdir}/log_javadoc.txt" action="start" append="no"/>
|
||||||
|
@ -1691,8 +1688,8 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
||||||
description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>
|
description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>
|
||||||
<tag name="lucene.internal"
|
<tag name="lucene.internal"
|
||||||
description="NOTE: This API is for internal purposes only and might change in incompatible ways in the next release."/>
|
description="NOTE: This API is for internal purposes only and might change in incompatible ways in the next release."/>
|
||||||
<link offline="true" packagelistLoc="${javadoc.dir}"/>
|
<link offline="true" packagelistLoc="${javadoc.dir}"/>
|
||||||
<link offline="true" href="${javadoc.link}" packagelistLoc="${javadoc.packagelist.dir}/java6"/>
|
<link offline="true" href="${javadoc.link}" packagelistLoc="${javadoc.packagelist.dir}/java7"/>
|
||||||
<bottom><![CDATA[
|
<bottom><![CDATA[
|
||||||
<i>Copyright © ${year} Apache Software Foundation. All Rights Reserved.</i>
|
<i>Copyright © ${year} Apache Software Foundation. All Rights Reserved.</i>
|
||||||
<script src='{@docRoot}/prettify.js' type='text/javascript'></script>
|
<script src='{@docRoot}/prettify.js' type='text/javascript'></script>
|
||||||
|
@ -1762,10 +1759,10 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
<target name="download-java6-javadoc-packagelist" unless="javadoc.java6.packagelist.exists">
|
<target name="download-java7-javadoc-packagelist" unless="javadoc.java7.packagelist.exists">
|
||||||
<mkdir dir="${javadoc.packagelist.dir}/java6"/>
|
<mkdir dir="${javadoc.packagelist.dir}/java7"/>
|
||||||
<get src="${javadoc.link}/package-list"
|
<get src="${javadoc.link}/package-list"
|
||||||
dest="${javadoc.packagelist.dir}/java6/package-list" ignoreerrors="true"/>
|
dest="${javadoc.packagelist.dir}/java7/package-list" ignoreerrors="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- VALIDATION work -->
|
<!-- VALIDATION work -->
|
||||||
|
|
|
@ -51,12 +51,11 @@ public final class Constants {
|
||||||
public static final String OS_VERSION = System.getProperty("os.version");
|
public static final String OS_VERSION = System.getProperty("os.version");
|
||||||
public static final String JAVA_VENDOR = System.getProperty("java.vendor");
|
public static final String JAVA_VENDOR = System.getProperty("java.vendor");
|
||||||
|
|
||||||
/** @deprecated With Lucene 4.0, we are always on Java 6 */
|
/** @deprecated With Lucene 5.0, we are always on Java 7 */
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final boolean JRE_IS_MINIMUM_JAVA6 =
|
public static final boolean JRE_IS_MINIMUM_JAVA7 =
|
||||||
new Boolean(true).booleanValue(); // prevent inlining in foreign class files
|
new Boolean(true).booleanValue(); // prevent inlining in foreign class files
|
||||||
|
|
||||||
public static final boolean JRE_IS_MINIMUM_JAVA7;
|
|
||||||
public static final boolean JRE_IS_MINIMUM_JAVA8;
|
public static final boolean JRE_IS_MINIMUM_JAVA8;
|
||||||
|
|
||||||
/** True iff running on a 64bit JVM */
|
/** True iff running on a 64bit JVM */
|
||||||
|
@ -87,27 +86,14 @@ public final class Constants {
|
||||||
}
|
}
|
||||||
JRE_IS_64BIT = is64Bit;
|
JRE_IS_64BIT = is64Bit;
|
||||||
|
|
||||||
// this method only exists in Java 7:
|
// this method only exists in Java 8:
|
||||||
boolean v7 = true;
|
boolean v8 = true;
|
||||||
try {
|
try {
|
||||||
Throwable.class.getMethod("getSuppressed");
|
Collections.class.getMethod("emptySortedSet");
|
||||||
} catch (NoSuchMethodException nsme) {
|
} catch (NoSuchMethodException nsme) {
|
||||||
v7 = false;
|
v8 = false;
|
||||||
}
|
|
||||||
JRE_IS_MINIMUM_JAVA7 = v7;
|
|
||||||
|
|
||||||
if (JRE_IS_MINIMUM_JAVA7) {
|
|
||||||
// this method only exists in Java 8:
|
|
||||||
boolean v8 = true;
|
|
||||||
try {
|
|
||||||
Collections.class.getMethod("emptySortedSet");
|
|
||||||
} catch (NoSuchMethodException nsme) {
|
|
||||||
v8 = false;
|
|
||||||
}
|
|
||||||
JRE_IS_MINIMUM_JAVA8 = v8;
|
|
||||||
} else {
|
|
||||||
JRE_IS_MINIMUM_JAVA8 = false;
|
|
||||||
}
|
}
|
||||||
|
JRE_IS_MINIMUM_JAVA8 = v8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this method prevents inlining the final version constant in compiled classes,
|
// this method prevents inlining the final version constant in compiled classes,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#Sun Sep 23 20:55:03 EDT 2012
|
#Sun Sep 23 20:55:03 EDT 2012
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore
|
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
@ -88,4 +88,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=ignore
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=ignore
|
||||||
org.eclipse.jdt.core.compiler.source=1.6
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -17,6 +17,7 @@ java.io
|
||||||
java.lang
|
java.lang
|
||||||
java.lang.annotation
|
java.lang.annotation
|
||||||
java.lang.instrument
|
java.lang.instrument
|
||||||
|
java.lang.invoke
|
||||||
java.lang.management
|
java.lang.management
|
||||||
java.lang.ref
|
java.lang.ref
|
||||||
java.lang.reflect
|
java.lang.reflect
|
||||||
|
@ -27,6 +28,9 @@ java.nio.channels
|
||||||
java.nio.channels.spi
|
java.nio.channels.spi
|
||||||
java.nio.charset
|
java.nio.charset
|
||||||
java.nio.charset.spi
|
java.nio.charset.spi
|
||||||
|
java.nio.file
|
||||||
|
java.nio.file.attribute
|
||||||
|
java.nio.file.spi
|
||||||
java.rmi
|
java.rmi
|
||||||
java.rmi.activation
|
java.rmi.activation
|
||||||
java.rmi.dgc
|
java.rmi.dgc
|
||||||
|
@ -120,6 +124,7 @@ javax.swing.plaf
|
||||||
javax.swing.plaf.basic
|
javax.swing.plaf.basic
|
||||||
javax.swing.plaf.metal
|
javax.swing.plaf.metal
|
||||||
javax.swing.plaf.multi
|
javax.swing.plaf.multi
|
||||||
|
javax.swing.plaf.nimbus
|
||||||
javax.swing.plaf.synth
|
javax.swing.plaf.synth
|
||||||
javax.swing.table
|
javax.swing.table
|
||||||
javax.swing.text
|
javax.swing.text
|
||||||
|
@ -163,6 +168,7 @@ javax.xml.ws.handler.soap
|
||||||
javax.xml.ws.http
|
javax.xml.ws.http
|
||||||
javax.xml.ws.soap
|
javax.xml.ws.soap
|
||||||
javax.xml.ws.spi
|
javax.xml.ws.spi
|
||||||
|
javax.xml.ws.spi.http
|
||||||
javax.xml.ws.wsaddressing
|
javax.xml.ws.wsaddressing
|
||||||
javax.xml.xpath
|
javax.xml.xpath
|
||||||
org.ietf.jgss
|
org.ietf.jgss
|
|
@ -12,7 +12,7 @@ See http://lucene.apache.org/solr for more information.
|
||||||
|
|
||||||
Getting Started
|
Getting Started
|
||||||
---------------
|
---------------
|
||||||
You need a Java 1.6 VM or later installed.
|
You need a Java 1.7 VM or later installed.
|
||||||
In this release, there is an example Solr server including a bundled
|
In this release, there is an example Solr server including a bundled
|
||||||
servlet container in the directory named "example".
|
servlet container in the directory named "example".
|
||||||
See the tutorial at http://lucene.apache.org/solr/tutorial.html
|
See the tutorial at http://lucene.apache.org/solr/tutorial.html
|
||||||
|
|
|
@ -62,10 +62,10 @@ docs/index.html
|
||||||
Instructions for Building Apache Solr from Source
|
Instructions for Building Apache Solr from Source
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
1. Download the Java SE 6 JDK (Java Development Kit) or later from http://java.sun.com/
|
1. Download the Java SE 7 JDK (Java Development Kit) or later from http://java.sun.com/
|
||||||
You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
|
You will need the JDK installed, and the $JAVA_HOME/bin (Windows: %JAVA_HOME%\bin)
|
||||||
folder included on your command path. To test this, issue a "java -version" command
|
folder included on your command path. To test this, issue a "java -version" command
|
||||||
from your shell (command prompt) and verify that the Java version is 1.6 or later.
|
from your shell (command prompt) and verify that the Java version is 1.7 or later.
|
||||||
|
|
||||||
2. Download the Apache Ant binary distribution (1.8.2+) from
|
2. Download the Apache Ant binary distribution (1.8.2+) from
|
||||||
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
|
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# System Requirements
|
# System Requirements
|
||||||
|
|
||||||
Apache Solr runs of Java 6 or greater. When using Java 7, be sure to
|
Apache Solr runs of Java 7 or greater. When using Java 7, be sure to
|
||||||
install at least Update 1! With all Java versions it is strongly
|
install at least Update 1! With all Java versions it is strongly
|
||||||
recommended to not use experimental `-XX` JVM options. It is also
|
recommended to not use experimental `-XX` JVM options. It is also
|
||||||
recommended to always use the latest update version of your Java VM,
|
recommended to always use the latest update version of your Java VM,
|
||||||
|
|
|
@ -409,7 +409,7 @@
|
||||||
<svn-export-source source.dir=".."/>
|
<svn-export-source source.dir=".."/>
|
||||||
|
|
||||||
<!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
|
<!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
|
||||||
<delete dir="${svn.export.dir}/lucene/tools/javadoc/java6"/>
|
<delete dir="${svn.export.dir}/lucene/tools/javadoc/java7"/>
|
||||||
<!-- Exclude clover license files incompatible with the ASL -->
|
<!-- Exclude clover license files incompatible with the ASL -->
|
||||||
<delete dir="${svn.export.dir}/lucene/tools/clover"/>
|
<delete dir="${svn.export.dir}/lucene/tools/clover"/>
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
<property name="fullnamever" value="${fullname}-${version}"/>
|
<property name="fullnamever" value="${fullname}-${version}"/>
|
||||||
<property name="final.name" value="${fullnamever}"/>
|
<property name="final.name" value="${fullnamever}"/>
|
||||||
|
|
||||||
<!-- solr uses 1.6 -->
|
<!-- solr uses 1.7 -->
|
||||||
<property name="javac.source" value="1.6"/>
|
<property name="javac.source" value="1.7"/>
|
||||||
<property name="javac.target" value="1.6"/>
|
<property name="javac.target" value="1.7"/>
|
||||||
<property name="javac.args" value=""/>
|
<property name="javac.args" value=""/>
|
||||||
|
|
||||||
<property name="dest" location="${common-solr.dir}/build" />
|
<property name="dest" location="${common-solr.dir}/build" />
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -631,6 +631,7 @@ public class XPathRecordReader {
|
||||||
EmptyEntityResolver.configureXMLInputFactory(factory);
|
EmptyEntityResolver.configureXMLInputFactory(factory);
|
||||||
factory.setXMLReporter(XMLLOG);
|
factory.setXMLReporter(XMLLOG);
|
||||||
try {
|
try {
|
||||||
|
// nocommit: still true for java7?
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -406,7 +406,7 @@
|
||||||
documentation for more information on pattern and replacement
|
documentation for more information on pattern and replacement
|
||||||
string syntax.
|
string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])"
|
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])"
|
||||||
replacement="" replace="all" />
|
replacement="" replace="all" />
|
||||||
|
|
|
@ -402,7 +402,7 @@
|
||||||
documentation for more information on pattern and replacement
|
documentation for more information on pattern and replacement
|
||||||
string syntax.
|
string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])"
|
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])"
|
||||||
replacement="" replace="all" />
|
replacement="" replace="all" />
|
||||||
|
|
|
@ -91,6 +91,7 @@ public class DocumentAnalysisRequestHandler extends AnalysisRequestHandlerBase {
|
||||||
|
|
||||||
inputFactory = XMLInputFactory.newInstance();
|
inputFactory = XMLInputFactory.newInstance();
|
||||||
try {
|
try {
|
||||||
|
// nocommit: still true in 1.7?
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class XMLLoader extends ContentStreamLoader {
|
||||||
EmptyEntityResolver.configureXMLInputFactory(inputFactory);
|
EmptyEntityResolver.configureXMLInputFactory(inputFactory);
|
||||||
inputFactory.setXMLReporter(xmllog);
|
inputFactory.setXMLReporter(xmllog);
|
||||||
try {
|
try {
|
||||||
|
// nocommit: still true in 1.7?
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
||||||
|
|
|
@ -233,7 +233,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -294,7 +294,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
infomation on pattern and replacement string syntax.
|
infomation on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -614,7 +614,7 @@
|
||||||
See the Java Regular Expression documentation for more
|
See the Java Regular Expression documentation for more
|
||||||
information on pattern and replacement string syntax.
|
information on pattern and replacement string syntax.
|
||||||
|
|
||||||
http://java.sun.com/j2se/1.6.0/docs/api/java/util/regex/package-summary.html
|
http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
|
||||||
-->
|
-->
|
||||||
<filter class="solr.PatternReplaceFilterFactory"
|
<filter class="solr.PatternReplaceFilterFactory"
|
||||||
pattern="([^a-z])" replacement="" replace="all"
|
pattern="([^a-z])" replacement="" replace="all"
|
||||||
|
|
|
@ -54,13 +54,13 @@ To follow along with this tutorial, you will need...
|
||||||
</p>
|
</p>
|
||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<li>Java 1.6 or greater. Some places you can get it are from
|
<li>Java 1.7 or greater. Some places you can get it are from
|
||||||
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Oracle</a>,
|
<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Oracle</a>,
|
||||||
<a href="http://openjdk.java.net/">Open JDK</a>, or
|
<a href="http://openjdk.java.net/">Open JDK</a>, or
|
||||||
<a href="http://www.ibm.com/developerworks/java/jdk/">IBM</a>.
|
<a href="http://www.ibm.com/developerworks/java/jdk/">IBM</a>.
|
||||||
<ul>
|
<ul>
|
||||||
<li>Running <span class="codefrag">java -version</span> at the command
|
<li>Running <span class="codefrag">java -version</span> at the command
|
||||||
line should indicate a version number starting with 1.6.
|
line should indicate a version number starting with 1.7.
|
||||||
</li>
|
</li>
|
||||||
<li>Gnu's GCJ is not supported and does not work with Solr.</li>
|
<li>Gnu's GCJ is not supported and does not work with Solr.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class XMLResponseParser extends ResponseParser
|
||||||
static {
|
static {
|
||||||
factory = XMLInputFactory.newInstance();
|
factory = XMLInputFactory.newInstance();
|
||||||
try {
|
try {
|
||||||
|
// nocommit: still true for 1.7?
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
// XMLStreamReader. Setting the parser-specific "reuse-instance" property to false
|
||||||
|
|
Loading…
Reference in New Issue