Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Added license headers, reformatted xml, added new plugin webui-extensionpoints to get setup easier

Sami Sirencdba936d5c93
diff --git a/contrib/web2/build.xml b/contrib/web2/build.xml
index 6904e3430..611be2d08 100644
--- a/contrib/web2/build.xml
+++ b/contrib/web2/build.xml
@@ -1,322 +1,354 @@
<?xml version="1.0"?>
-<!-- This is a minimal build.xml file to build the
-webapp
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
-->
<project name="nutch-web2">
- <property name="name" value="${ant.project.name}" />
- <property name="root" value="${basedir}" />
- <property name="nutch.root" location="${root}/../../" />
+ <property name="name" value="${ant.project.name}" />
+ <property name="root" value="${basedir}" />
+ <property name="nutch.root" location="${root}/../../" />
- <property name="build.dir" location="target" />
- <property name="build.classes" location="${build.dir}/classes" />
- <property name="build.test" location="${build.dir}/test" />
+ <property name="build.dir" location="target" />
+ <property name="build.classes" location="${build.dir}/classes" />
+ <property name="build.test" location="${build.dir}/test" />
- <property name="src.dir" location="${root}/src/main/java" />
- <property name="src.test" location="${root}/src/main/test" />
- <property name="conf.dir" location="${nutch.root}/conf" />
+ <property name="src.dir" location="${root}/src/main/java" />
+ <property name="src.test" location="${root}/src/main/test" />
+ <property name="conf.dir" location="${nutch.root}/conf" />
- <property name="deploy.dir" location="target" />
+ <property name="deploy.dir" location="target" />
- <property name="docs.src" value="${nutch.root}/src/web"/>
- <property name="web.src.dir" value="${basedir}/src/main/webapp"/>
- <property name="docs.dir" value="${build.dir}/${name}/"/>
- <property name="build.plugins" value="${nutch.root}/build/plugins"/>
- <property name="build.src" value="${build.dir}/jsp-src"/>
+ <property name="docs.src" value="${nutch.root}/src/web" />
+ <property name="web.src.dir" value="${basedir}/src/main/webapp" />
+ <property name="docs.dir" value="${build.dir}/${name}/" />
+ <property name="build.plugins" value="${nutch.root}/build/plugins" />
+ <property name="build.src" value="${build.dir}/jsp-src" />
- <property file="${nutch.root}/default.properties"/>
-
+ <property file="${nutch.root}/default.properties" />
- <property name="web.final.name" value="${name}-${version}" />
- <fileset id="lib.jars" dir="." includes="lib/*.jar" />
+ <property name="web.final.name" value="${name}-${version}" />
- <!--
- Normal classpath
- -->
- <path id="classpath">
- <pathelement location="${build.classes}" />
- <fileset refid="lib.jars" />
- <pathelement location="${nutch.root}/build/classes" />
- <fileset dir="${nutch.root}/lib">
- <include name="**/*.jar" />
- </fileset>
- </path>
+ <fileset id="lib.jars" dir="." includes="lib/*.jar" />
+
+ <!--
+ Normal classpath
+ -->
+ <path id="classpath">
+ <pathelement location="${build.classes}" />
+ <fileset refid="lib.jars" />
+ <pathelement location="${nutch.root}/build/classes" />
+ <fileset dir="${nutch.root}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
<!-- the unit test classpath -->
- <dirname property="plugins.classpath.dir" file="${build.plugins}"/>
+ <dirname property="plugins.classpath.dir" file="${build.plugins}" />
<path id="test.classpath">
<pathelement location="${build.test}" />
- <pathelement location="${conf.dir}"/>
- <pathelement location="${test.src.dir}"/>
- <pathelement location="${plugins.classpath.dir}"/>
- <path refid="classpath"/>
+ <pathelement location="${conf.dir}" />
+ <pathelement location="${test.src.dir}" />
+ <pathelement location="${plugins.classpath.dir}" />
+ <path refid="classpath" />
</path>
-
- <!--
- Init
- -->
- <target name="init">
- <mkdir dir="${build.dir}" />
- <mkdir dir="${build.classes}" />
- <mkdir dir="${build.test}" />
- </target>
-
- <!--
- Compile Java files
- -->
- <target name="compile" depends="init">
- <echo message="Compiling ${name}" />
- <javac encoding="${build.encoding}" srcdir="${src.dir}" includes="**/*.java" destdir="${build.classes}" debug="${javac.debug}" optimize="${javac.optimize}" target="${javac.version}" source="${javac.version}" deprecation="${javac.deprecation}">
- <classpath refid="classpath" />
- </javac>
- </target>
-
- <target name="compile-core">
- <ant target="compile-core" inheritall="false" dir="${nutch.root}" />
- <ant target="compile" />
- </target>
-
- <!--
- Make webapp .jar
- -->
- <target name="jar" depends="compile">
- <jar jarfile="${build.dir}/${web.final.name}.jar">
- <zipfileset dir="${build.classes}"/>
- <!-- localized resources -->
- <zipfileset dir="src/main/resources"/>
- </jar>
- </target>
-
- <!--
- generate the nutch.xml (servlet context) file
- -->
- <target name="generate-context">
- <!-- xmlcatalog definition for xslt task -->
- <xmlcatalog id="docDTDs">
- <dtd publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"
- location="${nutch-root}/xmlcatalog/xhtml1-transitional.dtd"/>
- </xmlcatalog>
- <xslt in="${nutch.root}/conf/nutch-default.xml" out="${build.dir}/nutch.xml" style="${nutch.root}/conf/context.xsl">
- <xmlcatalog refid="docDTDs" />
- <outputproperty name="indent" value="yes" />
- </xslt>
- </target>
+
+ <!--
+ Init
+ -->
+ <target name="init">
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${build.classes}" />
+ <mkdir dir="${build.test}" />
+ </target>
+
+ <!--
+ Compile Java files
+ -->
+ <target name="compile" depends="init">
+ <echo message="Compiling ${name}" />
+ <javac encoding="${build.encoding}" srcdir="${src.dir}"
+ includes="**/*.java" destdir="${build.classes}"
+ debug="${javac.debug}" optimize="${javac.optimize}"
+ target="${javac.version}" source="${javac.version}"
+ deprecation="${javac.deprecation}">
+ <classpath refid="classpath" />
+ </javac>
+ </target>
+
+ <target name="compile-core">
+ <ant target="compile-core" inheritall="false" dir="${nutch.root}" />
+ <ant target="compile" />
+ </target>
+
+ <!--
+ Make webapp .jar
+ -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${build.dir}/${web.final.name}.jar">
+ <zipfileset dir="${build.classes}" />
+ <!-- localized resources -->
+ <zipfileset dir="src/main/resources" />
+ </jar>
+ </target>
+
+ <!--
+ generate the nutch.xml (servlet context) file
+ -->
+ <target name="generate-context">
+ <!-- xmlcatalog definition for xslt task -->
+ <xmlcatalog id="docDTDs">
+ <dtd publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ location="${nutch-root}/xmlcatalog/xhtml1-transitional.dtd" />
+ </xmlcatalog>
+ <xslt in="${nutch.root}/conf/nutch-default.xml"
+ out="${build.dir}/nutch.xml"
+ style="${nutch.root}/conf/context.xsl">
+ <xmlcatalog refid="docDTDs" />
+ <outputproperty name="indent" value="yes" />
+ </xslt>
+ </target>
<target name="compile-plugins" depends="init">
- <ant dir="plugins" target="deploy" inheritAll="false"/>
+ <ant dir="plugins" target="deploy" inheritAll="false" />
+ </target>
+
+ <target name="war" depends="generate-context, generate-pages, jar">
+ <war destfile="${build.dir}/${web.final.name}.war"
+ webxml="src/main/webapp/WEB-INF/web.xml">
+ <fileset dir="${web.src.dir}" excludes="WEB-INF/web.xml" />
+ <zipfileset dir="${docs.src}" includes="include/*.html" />
+ <zipfileset dir="${build.docs}" includes="*/include/*.html" />
+ <fileset dir="${docs.dir}" />
+ <lib dir="${nutch.root}/lib">
+ <include name="lucene-*.jar" />
+ <include name="hadoop-*.jar" />
+ <include name="commons-lang-*.jar" />
+ <include name="commons-cli-*.jar" />
+ <include name="commons-logging-*.jar" />
+ <include name="log4j-*.jar" />
+ <include name="xerces-*.jar" />
+ </lib>
+ <lib dir="${nutch.root}/lib/jetty-ext">
+ <include name="jasper-runtime*.jar" />
+ </lib>
+
+
+ <fileset dir="${nutch.root}/docs" includes="img/**" />
+
+ <!-- webapp .jar -->
+ <lib dir="${build.dir}">
+ <include name="${web.final.name}.jar" />
+ </lib>
+ <lib dir="lib" includes="*.jar" />
+
+ <!-- nutch .jar -->
+ <lib dir="${nutch.root}/build">
+ <include name="*.jar" />
+ </lib>
+ <classes dir="${conf.dir}" excludes="**/*.template" />
+
+ <classes file="${nutch.root}/src/web/log4j.properties" />
+
+ <!--
+ <zipfileset prefix="WEB-INF/classes/plugins" dir="${build.plugins}" >
+ <exclude name="parse-*/**"/>
+ <exclude name="protocol-*/**"/>
+ <exclude name="urlfilter-*/**"/>
+ </zipfileset>
+ -->
+ </war>
</target>
- <target name="war" depends="generate-context, generate-pages, jar">
- <war destfile="${build.dir}/${web.final.name}.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <fileset dir="${web.src.dir}" excludes="WEB-INF/web.xml"/>
- <zipfileset dir="${docs.src}" includes="include/*.html" />
- <zipfileset dir="${build.docs}" includes="*/include/*.html" />
- <fileset dir="${docs.dir}" />
- <lib dir="${nutch.root}/lib">
- <include name="lucene-*.jar" />
- <include name="hadoop-*.jar" />
- <include name="commons-lang-*.jar" />
- <include name="commons-logging-*.jar" />
- <include name="log4j-*.jar" />
- <include name="xerces-*.jar" />
- </lib>
- <lib dir="${nutch.root}/lib/jetty-ext">
- <include name="jasper-runtime*.jar" />
- </lib>
-
-
- <fileset dir="${nutch.root}/docs" includes="img/**"/>
-
- <!-- webapp .jar -->
- <lib dir="${build.dir}">
- <include name="${web.final.name}.jar"/>
- </lib>
- <lib dir="lib" includes="*.jar"/>
-
- <!-- nutch .jar -->
- <lib dir="${nutch.root}/build">
- <include name="*.jar" />
- </lib>
- <classes dir="${conf.dir}" excludes="**/*.template" />
-
- <classes file="${nutch.root}/src/web/log4j.properties"/>
-
- <!--
- <zipfileset prefix="WEB-INF/classes/plugins" dir="${build.plugins}" >
- <exclude name="parse-*/**"/>
- <exclude name="protocol-*/**"/>
- <exclude name="urlfilter-*/**"/>
- </zipfileset>
- -->
- </war>
- </target>
-
- <!--
- Deploy to ${deploy.dir}
- -->
- <target name="deploy" depends="war">
- <mkdir dir="${deploy.dir}" />
- <copy file="${build.dir}/${web.final.name}.war" todir="${deploy.dir}" failonerror="false" />
- </target>
-
- <taskdef classname="org.apache.jasper.JspC" name="jsp-compile" >
- <classpath refid="classpath"/>
+ <!--
+ Deploy to ${deploy.dir}
+ -->
+ <target name="deploy" depends="war">
+ <mkdir dir="${deploy.dir}" />
+ <copy file="${build.dir}/${web.final.name}.war"
+ todir="${deploy.dir}" failonerror="false" />
+ </target>
+
+ <taskdef classname="org.apache.jasper.JspC" name="jsp-compile">
+ <classpath refid="classpath" />
</taskdef>
- <!--
- Compile test code
- -->
- <target name="compile-test" depends="compile">
- <javac encoding="${build.encoding}" srcdir="${src.test}" includes="**/*.java" destdir="${build.test}" debug="${javac.debug}" optimize="${javac.optimize}" target="${javac.version}" source="${javac.version}" deprecation="${javac.deprecation}">
- <classpath refid="test.classpath" />
- </javac>
- </target>
-
- <!--
- Run unit tests
- -->
- <target name="test" depends="compile-test">
- <junit printsummary="yes" haltonfailure="no" fork="yes" errorProperty="tests.failed" failureProperty="tests.failed">
- <sysproperty key="test.data" value="${build.test}/data" />
- <sysproperty key="test.input" value="${root}/data" />
- <classpath refid="test.classpath" />
- <formatter type="plain" />
- <batchtest todir="${build.test}" unless="testcase">
- <fileset dir="${src.test}" includes="**/Test*.java" excludes="**/${test.exclude}.java" />
- </batchtest>
- <batchtest todir="${build.test}" if="testcase">
- <fileset dir="${src.test}" includes="**/${testcase}.java" />
- </batchtest>
- </junit>
-
- <fail if="tests.failed">Tests failed!</fail>
-
- </target>
-
- <!--
- Clean. Delete the build files, and their directories
- -->
- <target name="clean">
- <delete dir="${build.dir}" />
- <delete dir="${deploy.dir}" />
- </target>
+ <!--
+ Compile test code
+ -->
+ <target name="compile-test" depends="compile">
+ <javac encoding="${build.encoding}" srcdir="${src.test}"
+ includes="**/*.java" destdir="${build.test}"
+ debug="${javac.debug}" optimize="${javac.optimize}"
+ target="${javac.version}" source="${javac.version}"
+ deprecation="${javac.deprecation}">
+ <classpath refid="test.classpath" />
+ </javac>
+ </target>
+
+ <!--
+ Run unit tests
+ -->
+ <target name="test" depends="compile-test">
+ <junit printsummary="yes" haltonfailure="no" fork="yes"
+ errorProperty="tests.failed" failureProperty="tests.failed">
+ <sysproperty key="test.data" value="${build.test}/data" />
+ <sysproperty key="test.input" value="${root}/data" />
+ <classpath refid="test.classpath" />
+ <formatter type="plain" />
+ <batchtest todir="${build.test}" unless="testcase">
+ <fileset dir="${src.test}" includes="**/Test*.java"
+ excludes="**/${test.exclude}.java" />
+ </batchtest>
+ <batchtest todir="${build.test}" if="testcase">
+ <fileset dir="${src.test}" includes="**/${testcase}.java" />
+ </batchtest>
+ </junit>
+
+ <fail if="tests.failed">Tests failed!</fail>
+
+ </target>
+
+ <!--
+ Clean. Delete the build files, and their directories
+ -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${deploy.dir}" />
+ </target>
<target name="generate-locale" if="doc.locale">
- <echo message="Generating docs for locale=${doc.locale}"/>
+ <echo message="Generating docs for locale=${doc.locale}" />
- <mkdir dir="${build.docs}/${doc.locale}/include"/>
+ <mkdir dir="${build.docs}/${doc.locale}/include" />
<xslt in="${docs.src}/include/${doc.locale}/header.xml"
- out="${build.docs}/${doc.locale}/include/header.html"
- style="res/nutch-header.xsl">
- <xmlcatalog refid="docDTDs"/>
+ out="${build.docs}/${doc.locale}/include/header.html"
+ style="res/nutch-header.xsl">
+ <xmlcatalog refid="docDTDs" />
</xslt>
<dependset>
- <srcfileset dir="${docs.src}/include/${doc.locale}" includes="*.xml"/>
- <srcfileset dir="${docs.src}/style" includes="*.xsl"/>
- <targetfileset dir="${docs.dir}/${doc.locale}" includes="*.html"/>
- </dependset>
-
-<!-- <copy file="${docs.src}/style/nutch-page.xsl"
- todir="${build.docs}/${doc.locale}"
- preservelastmodified="true"/>
--->
+ <srcfileset dir="${docs.src}/include/${doc.locale}"
+ includes="*.xml" />
+ <srcfileset dir="${docs.src}/style" includes="*.xsl" />
+ <targetfileset dir="${docs.dir}/${doc.locale}" includes="*.html" />
+ </dependset>
+
+ <!-- <copy file="${docs.src}/style/nutch-page.xsl"
+ todir="${build.docs}/${doc.locale}"
+ preservelastmodified="true"/>
+ -->
<xslt basedir="${docs.src}/pages/${doc.locale}"
- destdir="${docs.dir}/${doc.locale}"
- includes="*.xml"
- style="res/nutch-page.xsl">
- <xmlcatalog refid="docDTDs"/>
+ destdir="${docs.dir}/${doc.locale}" includes="*.xml"
+ style="res/nutch-page.xsl">
+ <xmlcatalog refid="docDTDs" />
</xslt>
</target>
<target name="generate-pages" depends="init">
- <mkdir dir="${build.docs}/include"/>
+ <mkdir dir="${build.docs}/include" />
<copy todir="${build.docs}/include">
- <fileset dir="${docs.src}/include"/>
+ <fileset dir="${docs.src}/include" />
</copy>
<antcall target="generate-locale">
- <param name="doc.locale" value="ca"/>
+ <param name="doc.locale" value="ca" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="de"/>
+ <param name="doc.locale" value="de" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="en"/>
+ <param name="doc.locale" value="en" />
</antcall>
-
+
<antcall target="generate-locale">
- <param name="doc.locale" value="es"/>
+ <param name="doc.locale" value="es" />
</antcall>
-
+
<antcall target="generate-locale">
- <param name="doc.locale" value="fi"/>
+ <param name="doc.locale" value="fi" />
</antcall>
-
+
<antcall target="generate-locale">
- <param name="doc.locale" value="fr"/>
+ <param name="doc.locale" value="fr" />
</antcall>
-
+
<antcall target="generate-locale">
- <param name="doc.locale" value="hu"/>
+ <param name="doc.locale" value="hu" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="it"/>
+ <param name="doc.locale" value="it" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="jp"/>
+ <param name="doc.locale" value="jp" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="ms"/>
+ <param name="doc.locale" value="ms" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="nl"/>
+ <param name="doc.locale" value="nl" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="pl"/>
+ <param name="doc.locale" value="pl" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="pt"/>
+ <param name="doc.locale" value="pt" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="sh"/>
+ <param name="doc.locale" value="sh" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="sr"/>
+ <param name="doc.locale" value="sr" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="sv"/>
+ <param name="doc.locale" value="sv" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="th"/>
+ <param name="doc.locale" value="th" />
</antcall>
<antcall target="generate-locale">
- <param name="doc.locale" value="zh"/>
+ <param name="doc.locale" value="zh" />
</antcall>
<fixcrlf srcdir="${docs.dir}" eol="lf" encoding="utf-8"
- includes="**/*.html"/>
+ includes="**/*.html" />
+
+ <replace dir="${docs.dir}" token="help.html" value="help.do"
+ includes="**/*.html" />
+ <replace dir="${docs.dir}" token="about.html" value="about.do"
+ includes="**/*.html" />
+ <replace dir="${docs.dir}" token="search.jsp" value="search.do"
+ includes="**/*.html" />
+ <replace dir="${docs.dir}" token="../" value=""
+ includes="**/*.html" />
- <replace dir="${docs.dir}" token="help.html" value="help.do" includes="**/*.html"/>
- <replace dir="${docs.dir}" token="about.html" value="about.do" includes="**/*.html"/>
- <replace dir="${docs.dir}" token="search.jsp" value="search.do" includes="**/*.html"/>
- <replace dir="${docs.dir}" token="../" value="" includes="**/*.html"/>
-
</target>
-
+
</project>
diff --git a/contrib/web2/plugins/build-plugin.xml b/contrib/web2/plugins/build-plugin.xml
index b4f0760ef..6111f62ae 100755
--- a/contrib/web2/plugins/build-plugin.xml
+++ b/contrib/web2/plugins/build-plugin.xml
@@ -1,7 +1,21 @@
<?xml version="1.0"?>
-
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!-- Imported by plugin build.xml files to define default targets. -->
-
<project>
<property name="name" value="${ant.project.name}"/>
diff --git a/contrib/web2/plugins/build.xml b/contrib/web2/plugins/build.xml
index be68d2f6e..c4ef08484 100755
--- a/contrib/web2/plugins/build.xml
+++ b/contrib/web2/plugins/build.xml
@@ -1,5 +1,20 @@
<?xml version="1.0"?>
-
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="Nutch" default="deploy-core" basedir=".">
<target name="deploy-core">
@@ -11,6 +26,7 @@
<!-- Build & deploy all the plugin jars. -->
<!-- ====================================================== -->
<target name="deploy">
+ <ant dir="webui-extensionpoints" target="deploy"/>
<ant dir="web-caching-oscache" target="deploy"/>
<ant dir="web-more" target="deploy"/>
<ant dir="web-resources" target="deploy"/>
@@ -35,6 +51,7 @@
<!-- Clean all of the plugins. -->
<!-- ====================================================== -->
<target name="clean">
+ <ant dir="webui-extensionpoints" target="clean"/>
<ant dir="web-caching-oscache" target="clean"/>
<ant dir="web-resources" target="clean"/>
<ant dir="web-more" target="clean"/>
diff --git a/contrib/web2/plugins/web-caching-oscache/build.xml b/contrib/web2/plugins/web-caching-oscache/build.xml
index dd2405a47..5b39e7196 100644
--- a/contrib/web2/plugins/web-caching-oscache/build.xml
+++ b/contrib/web2/plugins/web-caching-oscache/build.xml
@@ -1,19 +1,34 @@
<?xml version="1.0"?>
-
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-caching-oscache" default="jar-core">
- <import file="../build-plugin.xml"/>
- <property name="nutch.root" location="${root}/../../../../"/>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+
+ <target name="init-plugin">
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
- <target name="init-plugin">
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
-
</project>
diff --git a/contrib/web2/plugins/web-caching-oscache/plugin.xml b/contrib/web2/plugins/web-caching-oscache/plugin.xml
index 29940b1d9..c2b638416 100644
--- a/contrib/web2/plugins/web-caching-oscache/plugin.xml
+++ b/contrib/web2/plugins/web-caching-oscache/plugin.xml
@@ -1,27 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-caching-oscache"
- name="Search result caching"
- version="1.0.0"
- provider-name="apache.org">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-caching-oscache" name="Search result caching"
+ version="1.0.0" provider-name="apache.org">
- <runtime>
- <library name="web-caching-oscache.jar">
- <export name="*"/>
- </library>
+ <runtime>
+ <library name="web-caching-oscache.jar">
+ <export name="*" />
+ </library>
- <library name="oscache-2.1.jar"/>
- </runtime>
+ <library name="oscache-2.1.jar" />
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-caching-oscache"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-caching-oscache"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-clustering/build.xml b/contrib/web2/plugins/web-clustering/build.xml
index 5cf2780ae..81b94d3dc 100644
--- a/contrib/web2/plugins/web-clustering/build.xml
+++ b/contrib/web2/plugins/web-clustering/build.xml
@@ -1,19 +1,35 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-clustering" default="jar-core">
- <import file="../build-plugin.xml" />
- <property name="nutch.root" location="${root}/../../../../" />
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*" />
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*" />
- </copy>
- </target>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
</project>
diff --git a/contrib/web2/plugins/web-clustering/plugin.xml b/contrib/web2/plugins/web-clustering/plugin.xml
index 88225eee6..eda5f8852 100644
--- a/contrib/web2/plugins/web-clustering/plugin.xml
+++ b/contrib/web2/plugins/web-clustering/plugin.xml
@@ -1,45 +1,58 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-clustering"
- name="Clustering web interface extension"
- version="1.0.0"
- provider-name="apache.org">
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-clustering" name="Clustering web interface extension"
+ version="1.0.0" provider-name="apache.org">
- <runtime>
- <library name="web-clustering.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-clustering.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- <!--
- Following is not a proper requirement, should really require
- generic clustering plugin not any specific impplementation
-
- (TODO: remove generic clustergin stuff from core and move it
- into a plugin?)
-
- -->
- <import plugin="clustering-carrot2"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ <!--
+ Following is not a proper requirement, should really require
+ generic clustering plugin not any specific impplementation
+
+ (TODO: remove generic clustergin stuff from core and move it
+ into a plugin?)
+
+ -->
+ <import plugin="clustering-carrot2" />
+ </requires>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Clustering extension for Web UI"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-clustering"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
- <extension-point
- id="org.apache.nutch.webapp.extension.PreSearchExtensionPoint"
- name="Pre search extension"/>
-
- <extension id="org.apache.nutch.webapp.extension.PreSearchExtensionPoint"
- name="Clustering extension for Web UI"
- point="org.apache.nutch.webapp.extension.PreSearchExtensionPoint">
- <implementation id="web-clustering-presearch"
- class="org.apache.nutch.clustering.ClusteringPresearchExtension"
- />
- </extension>
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Clustering extension for Web UI"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-clustering"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
+
+ <extension-point
+ id="org.apache.nutch.webapp.extension.PreSearchExtensionPoint"
+ name="Pre search extension" />
+
+ <extension
+ id="org.apache.nutch.webapp.extension.PreSearchExtensionPoint"
+ name="Clustering extension for Web UI"
+ point="org.apache.nutch.webapp.extension.PreSearchExtensionPoint">
+ <implementation id="web-clustering-presearch"
+ class="org.apache.nutch.clustering.ClusteringPresearchExtension" />
+ </extension>
</plugin>
diff --git a/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster-checkbox.jsp b/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster-checkbox.jsp
index da38bf9b7..7e4e0c47f 100644
--- a/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster-checkbox.jsp
+++ b/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster-checkbox.jsp
@@ -1,4 +1,20 @@
<%@ page session="false"%>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<c:choose>
diff --git a/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster.jsp b/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster.jsp
index a9cdc72fd..1cf0e01ba 100644
--- a/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster.jsp
+++ b/contrib/web2/plugins/web-clustering/src/web/web-clustering/cluster.jsp
@@ -1,4 +1,20 @@
<%@ page session="false"%>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
diff --git a/contrib/web2/plugins/web-keymatch/build.xml b/contrib/web2/plugins/web-keymatch/build.xml
index b61835d05..bf18f0498 100644
--- a/contrib/web2/plugins/web-keymatch/build.xml
+++ b/contrib/web2/plugins/web-keymatch/build.xml
@@ -1,19 +1,35 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-keymatch" default="jar-core">
- <import file="../build-plugin.xml" />
- <property name="nutch.root" location="${root}/../../../../" />
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
</project>
diff --git a/contrib/web2/plugins/web-keymatch/keymatches.xml b/contrib/web2/plugins/web-keymatch/keymatches.xml
index f75ae2a06..5dbc3dcb3 100644
--- a/contrib/web2/plugins/web-keymatch/keymatches.xml
+++ b/contrib/web2/plugins/web-keymatch/keymatches.xml
@@ -1,23 +1,39 @@
<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<keymatches>
- <keymatch type="keyword">
- <term>mapred</term>
- <url>http://lucene.apache.org/hafoop/</url>
- <title>Try Hadoop today!</title>
- </keymatch>
- <keymatch type="phrase">
- <term>search engine</term>
- <url>http://lucene.apache.org/nutch/</url>
- <title>Try nutch!</title>
- </keymatch>
- <keymatch type="exact">
- <term>apache search engine</term>
- <url>http://lucene.apache.org/nutch/</url>
- <title>Try apache nutch!</title>
- </keymatch>
- <keymatch type="exact">
- <term>kw1 kw2 kw3 kw4</term>
- <url>url/</url>
- <title>title</title>
- </keymatch>
+ <keymatch type="keyword">
+ <term>mapred</term>
+ <url>http://lucene.apache.org/hafoop/</url>
+ <title>Try Hadoop today!</title>
+ </keymatch>
+ <keymatch type="phrase">
+ <term>search engine</term>
+ <url>http://lucene.apache.org/nutch/</url>
+ <title>Try nutch!</title>
+ </keymatch>
+ <keymatch type="exact">
+ <term>apache search engine</term>
+ <url>http://lucene.apache.org/nutch/</url>
+ <title>Try apache nutch!</title>
+ </keymatch>
+ <keymatch type="exact">
+ <term>kw1 kw2 kw3 kw4</term>
+ <url>url/</url>
+ <title>title</title>
+ </keymatch>
</keymatches>
\ No newline at end of file
diff --git a/contrib/web2/plugins/web-keymatch/plugin.xml b/contrib/web2/plugins/web-keymatch/plugin.xml
index a40d45674..1edec5361 100644
--- a/contrib/web2/plugins/web-keymatch/plugin.xml
+++ b/contrib/web2/plugins/web-keymatch/plugin.xml
@@ -1,25 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-keymatch"
- name="KeyMatcher for promoting urls"
- version="1.0.0"
- provider-name="apache.org">
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-keymatch" name="KeyMatcher for promoting urls"
+ version="1.0.0" provider-name="apache.org">
- <runtime>
- <library name="web-keymatch.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-keymatch.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-keymatch"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-keymatch"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-keymatch/src/web/web-keymatch/keymatch.jsp b/contrib/web2/plugins/web-keymatch/src/web/web-keymatch/keymatch.jsp
index 4de71fa66..988528c83 100644
--- a/contrib/web2/plugins/web-keymatch/src/web/web-keymatch/keymatch.jsp
+++ b/contrib/web2/plugins/web-keymatch/src/web/web-keymatch/keymatch.jsp
@@ -1,4 +1,20 @@
<%@ page session="false"%>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
diff --git a/contrib/web2/plugins/web-more/build.xml b/contrib/web2/plugins/web-more/build.xml
index f84932ad0..f2fff27c7 100644
--- a/contrib/web2/plugins/web-more/build.xml
+++ b/contrib/web2/plugins/web-more/build.xml
@@ -1,19 +1,34 @@
-<?xml version="1.0"?>
-
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-more" default="jar-core">
- <import file="../build-plugin.xml"/>
- <property name="nutch.root" location="${root}/../../../../"/>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+
+ <target name="init-plugin">
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
- <target name="init-plugin">
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
-
</project>
diff --git a/contrib/web2/plugins/web-more/plugin.xml b/contrib/web2/plugins/web-more/plugin.xml
index a7df7610d..86b9edb37 100644
--- a/contrib/web2/plugins/web-more/plugin.xml
+++ b/contrib/web2/plugins/web-more/plugin.xml
@@ -1,25 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-more"
- name="diplay information from index-more plgin"
- version="1.0.0"
- provider-name="apache.org">
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-more" name="diplay information from index-more plgin"
+ version="1.0.0" provider-name="apache.org">
- <runtime>
- <library name="web-more.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-more.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-more"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-more"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-more/src/web/more.jsp b/contrib/web2/plugins/web-more/src/web/more.jsp
index 9e9e8ca29..857ac6374 100644
--- a/contrib/web2/plugins/web-more/src/web/more.jsp
+++ b/contrib/web2/plugins/web-more/src/web/more.jsp
@@ -1,27 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
- xmlns:c="/tags/jstl-c" xmlns:tiles="/tags/struts-tiles"
- xmlns:fmt="/tags/jstl-fmt">
- <jsp:directive.page session="false" />
- <c:if
- test="${contentType!=null || contentLength!=null ||lastModified!=null }">
- <c:if test="${contentLength!=null}">
- <fmt:message key="search.contentType">
- <fmt:param value="${contentType}" />
- </fmt:message>
- </c:if>
- <c:if test="${contentLength!=null}">
- <fmt:message key="search.contentLength">
- <fmt:param value="${contentLength}" />
- </fmt:message>
- </c:if>
- <c:if test="${contentLength!=null}">
- <fmt:message key="search.lastModified">
- <fmt:param>
- <fmt:formatDate value="${lastModified}" />
- </fmt:param>
- </fmt:message>
- </c:if>
- <br />
- </c:if>
+ xmlns:c="/tags/jstl-c" xmlns:tiles="/tags/struts-tiles"
+ xmlns:fmt="/tags/jstl-fmt">
+ <jsp:directive.page session="false" />
+ <c:if
+ test="${contentType!=null || contentLength!=null ||lastModified!=null }">
+ <c:if test="${contentLength!=null}">
+ <fmt:message key="search.contentType">
+ <fmt:param value="${contentType}" />
+ </fmt:message>
+ </c:if>
+ <c:if test="${contentLength!=null}">
+ <fmt:message key="search.contentLength">
+ <fmt:param value="${contentLength}" />
+ </fmt:message>
+ </c:if>
+ <c:if test="${contentLength!=null}">
+ <fmt:message key="search.lastModified">
+ <fmt:param>
+ <fmt:formatDate value="${lastModified}" />
+ </fmt:param>
+ </fmt:message>
+ </c:if>
+ <br />
+ </c:if>
</jsp:root>
diff --git a/contrib/web2/plugins/web-query-propose-ontology/build.xml b/contrib/web2/plugins/web-query-propose-ontology/build.xml
index ae8bcac3b..e9f01ce8d 100644
--- a/contrib/web2/plugins/web-query-propose-ontology/build.xml
+++ b/contrib/web2/plugins/web-query-propose-ontology/build.xml
@@ -1,19 +1,35 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-query-propose-ontology" default="jar-core">
- <import file="../build-plugin.xml" />
- <property name="nutch.root" location="${root}/../../../../" />
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
</project>
diff --git a/contrib/web2/plugins/web-query-propose-ontology/plugin.xml b/contrib/web2/plugins/web-query-propose-ontology/plugin.xml
index 32ce21edd..5f06d75a0 100644
--- a/contrib/web2/plugins/web-query-propose-ontology/plugin.xml
+++ b/contrib/web2/plugins/web-query-propose-ontology/plugin.xml
@@ -1,26 +1,39 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-query-propose-ontology"
- name="Ontology query proposer"
- version="1.0.0"
- provider-name="apache.org">
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-query-propose-ontology" name="Ontology query proposer"
+ version="1.0.0" provider-name="apache.org">
- <runtime>
- <library name="web-query-propose-ontology.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-query-propose-ontology.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- <import plugin="ontology"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ <import plugin="ontology" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-query-propose-ontology"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-query-propose-ontology"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-query-propose-spellcheck/build.xml b/contrib/web2/plugins/web-query-propose-spellcheck/build.xml
index 8e7a9bc75..b447c88bd 100644
--- a/contrib/web2/plugins/web-query-propose-spellcheck/build.xml
+++ b/contrib/web2/plugins/web-query-propose-spellcheck/build.xml
@@ -1,19 +1,35 @@
<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-query-propose-spellcheck" default="jar-core">
- <import file="../build-plugin.xml" />
- <property name="nutch.root" location="${root}/../../../../" />
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
</project>
\ No newline at end of file
diff --git a/contrib/web2/plugins/web-query-propose-spellcheck/plugin.xml b/contrib/web2/plugins/web-query-propose-spellcheck/plugin.xml
index 8313658b3..4246f52ad 100644
--- a/contrib/web2/plugins/web-query-propose-spellcheck/plugin.xml
+++ b/contrib/web2/plugins/web-query-propose-spellcheck/plugin.xml
@@ -1,25 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-query-propose-spellcheck"
- name="Spellcheck query proposer"
- version="1.0.0"
- provider-name="apache.org">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-query-propose-spellcheck"
+ name="Spellcheck query proposer" version="1.0.0"
+ provider-name="apache.org">
- <runtime>
- <library name="web-query-propose-spellcheck.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-query-propose-spellcheck.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-query-propose-spellcheck"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-query-propose-spellcheck"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-resources/build.xml b/contrib/web2/plugins/web-resources/build.xml
index df276ed1b..18a18ed22 100644
--- a/contrib/web2/plugins/web-resources/build.xml
+++ b/contrib/web2/plugins/web-resources/build.xml
@@ -1,24 +1,39 @@
-<?xml version="1.0"?>
-
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-resources" default="jar-core">
- <import file="../build-plugin.xml" />
- <property name="nutch.root" location="${root}/../../../../" />
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
+
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*"/>
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*"/>
- </copy>
- </target>
-
</project>
diff --git a/contrib/web2/plugins/web-resources/plugin.xml b/contrib/web2/plugins/web-resources/plugin.xml
index e117b2879..454ef1e61 100644
--- a/contrib/web2/plugins/web-resources/plugin.xml
+++ b/contrib/web2/plugins/web-resources/plugin.xml
@@ -1,25 +1,38 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="web-resources"
- name="Resources plugin"
- version="1.0.0"
- provider-name="apache.org">
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="web-resources" name="Resources plugin" version="1.0.0"
+ provider-name="apache.org">
- <runtime>
- <library name="web-resources.jar">
- <export name="*"/>
- </library>
- </runtime>
+ <runtime>
+ <library name="web-resources.jar">
+ <export name="*" />
+ </library>
+ </runtime>
- <requires>
- <import plugin="nutch-extensionpoints"/>
- </requires>
+ <requires>
+ <import plugin="webui-extensionpoints" />
+ </requires>
+
+ <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch ui extension point"
+ point="org.apache.nutch.webapp.extension.UIExtensionPoint">
+ <implementation id="web-resources"
+ class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation" />
+ </extension>
- <extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
- name="Nutch ui extension point"
- point="org.apache.nutch.webapp.extension.UIExtensionPoint">
- <implementation id="web-resources"
- class="org.apache.nutch.webapp.extension.UIExtension.VoidImplementation"/>
- </extension>
-
</plugin>
diff --git a/contrib/web2/plugins/web-subcollection/build.xml b/contrib/web2/plugins/web-subcollection/build.xml
index 77961bc60..009507e27 100644
--- a/contrib/web2/plugins/web-subcollection/build.xml
+++ b/contrib/web2/plugins/web-subcollection/build.xml
@@ -1,9 +1,24 @@
-<?xml version="1.0"?>
-
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project name="web-subcollection" default="jar-core">
- <import file="../build-plugin.xml"/>
- <property name="nutch.root" location="${root}/../../../../"/>
+ <import file="../build-plugin.xml" />
+ <property name="nutch.root" location="${root}/../../../../" />
<!-- Add compilation dependencies to classpath -->
<path id="plugin.deps">
@@ -11,20 +26,20 @@
<include name="**/subcollection/*.jar" />
</fileset>
</path>
-
- <target name="init-plugin">
- <echo>Copying resources templates</echo>
- <copy todir="${build.classes}/resources">
- <fileset dir="${resources.dir}" includes="**/*" />
- </copy>
- <echo>Copying UI configuration</echo>
- <copy todir="${build.classes}">
- <fileset dir="src/conf" includes="**/*" />
- </copy>
- <echo>Copying UI templates</echo>
- <copy todir="${deploy.dir}/web">
- <fileset dir="src/web" includes="**/*" />
- </copy>
- </target>
-
+
+ <target name="init-plugin">
+ <echo>Copying resources templates</echo>
+ <copy todir="${build.classes}/resources">
+ <fileset dir="${resources.dir}" includes="**/*" />
+ </copy>
+ <echo>Copying UI configuration</echo>
+ <copy todir="${build.classes}">
+ <fileset dir="src/conf" includes="**/*" />
+ </copy>
+ <echo>Copying UI templates</echo>
+ <copy todir="${deploy.dir}/web">
+ <fileset dir="src/web" includes="**/*" />
+ </copy>
+ </target>
+
</project>
diff --git a/contrib/web2/plugins/web-subcollection/plugin.xml b/contrib/web2/plugins/web-subcollection/plugin.xml
index abe8c64f3..12b53a4bb 100644
--- a/contrib/web2/plugins/web-subcollection/plugin.xml
+++ b/contrib/web2/plugins/web-subcollection/plugin.xml
@@ -1,4 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<plugin id="web-subcollection" name="subcollection ui enhancements"
version="1.0.0" provider-name="apache.org">
<runtime>
@@ -7,7 +23,7 @@
</library>
</runtime>
<requires>
- <import plugin="nutch-extensionpoints" />
+ <import plugin="webui-extensionpoints" />
<import plugin="subcollection" />
</requires>
<extension id="org.apache.nutch.webapp.extension.UIExtensionPoint"
diff --git a/contrib/web2/plugins/webui-extensionpoints/build.xml b/contrib/web2/plugins/webui-extensionpoints/build.xml
new file mode 100644
index 000000000..2a049dfc7
--- /dev/null
+++ b/contrib/web2/plugins/webui-extensionpoints/build.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="webui-extensionpoints" default="jar">
+
+ <import file="../build-plugin.xml" />
+
+ <!--
+ ! Override the compile and jar targets,
+ ! since there is nothing to compile here.
+ ! -->
+ <target name="compile" depends="init" />
+
+ <!--target name="jar" depends="compile"/-->
+
+</project>
diff --git a/contrib/web2/plugins/webui-extensionpoints/plugin.xml b/contrib/web2/plugins/webui-extensionpoints/plugin.xml
new file mode 100644
index 000000000..2c7f585b2
--- /dev/null
+++ b/contrib/web2/plugins/webui-extensionpoints/plugin.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<plugin id="webui-extensionpoints" name="Nutch web ui extension points"
+ version="0.8.0" provider-name="apache.org">
+
+ <extension-point
+ id="org.apache.nutch.webapp.extension.UIExtensionPoint"
+ name="Nutch web ui component" />
+
+ <extension-point
+ id="org.apache.nutch.webapp.extension.PreSearchExtensionPoint"
+ name="PreSearch Extension Point" />
+ <extension-point
+ id="org.apache.nutch.webapp.extension.PostSearchExtensionPoint"
+ name="PostSearch Extension Point" />
+
+ <extension-point
+ id="org.apache.nutch.webapp.extension.SearchExtensionPoint"
+ name="Search Extension Point" />
+
+</plugin>
diff --git a/contrib/web2/res/nutch-header.xsl b/contrib/web2/res/nutch-header.xsl
index 61116613b..049b330e9 100644
--- a/contrib/web2/res/nutch-header.xsl
+++ b/contrib/web2/res/nutch-header.xsl
@@ -1,4 +1,20 @@
<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!-- XSLT stylesheet that generates localized versions of the page header. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="header-menu">
diff --git a/contrib/web2/res/nutch-page.xsl b/contrib/web2/res/nutch-page.xsl
index 9e03efe37..15dc5f0ae 100644
--- a/contrib/web2/res/nutch-page.xsl
+++ b/contrib/web2/res/nutch-page.xsl
@@ -1,4 +1,20 @@
<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!-- XSLT stylesheet that adds Nutch style, header, and footer
elements. This is used by Ant to generate static html pages. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
index ff21409c2..bd8005794 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
#This is the default resource file for nutch ui localization.
#If you create a new localized version of resources, please use
#this as the base
@@ -100,4 +115,4 @@ preferences.submit=Save and return to search
#subcollection
subcollection.info=Limit your search to:
-subcollection.none=Do not limit
\ No newline at end of file
+subcollection.none=Do not limit
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_ca.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_ca.properties
index c9ff450d6..68f7028c2 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_ca.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_ca.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
search.title = resultats de cerca
search.search = Cerca
search.hits = Coincid�ncies <b>{0}-{1}</b> (d'un total de {2} documents coincidents):
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_de.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_de.properties
index ba00b28dd..2e97bb01e 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_de.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_de.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=de
anchors.title = Verweise
anchors.anchors = Herzeigende Link-Texte:
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_en.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_en.properties
index 28977959f..8b1cbbec3 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_en.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_en.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
#This is the default resource file for nutch ui localization.
#If you create a new localized version of resources, please use
#this as the base
@@ -96,4 +111,4 @@ preferences.numResults=Number of Results
preferences.numResults.info=
#text on save button
-preferences.submit=Save and return to search
\ No newline at end of file
+preferences.submit=Save and return to search
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_es.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_es.properties
index c2b1d1d24..cd02b76d7 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_es.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_es.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=es
search.title = resultados de la búsqueda
search.search = Buscar
@@ -7,4 +22,4 @@ search.explain = explicar
search.anchors = anchors
search.next = Siguiente
search.clustering = clustering
-search.viewAsText = View as Plain Text
\ No newline at end of file
+search.viewAsText = View as Plain Text
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_fi.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_fi.properties
index b21d05a0b..cebd8fb98 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_fi.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_fi.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=fi
anchors.title=linkit
anchors.anchors=sivulle johtavien linkkien tekstit:
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_fr.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_fr.properties
index 249cf1bf1..9a90a3d5e 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_fr.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_fr.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=fr
search.title = R�sultats de recherche
search.search = Recherche
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_hu.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_hu.properties
index ce5668930..7748f4106 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_hu.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_hu.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=hu
search.title = keres�s eredm�nye
search.search = Keres�s
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_ms.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_ms.properties
index 4d1339afe..0aa804db0 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_ms.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_ms.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=ms
search.title = hasil carian
search.carian = Carian
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_nl.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_nl.properties
index 16b7b3e20..1716c2891 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_nl.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_nl.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=nl
search.title = zoekresultaten
search.search = Zoek
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_pl.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_pl.properties
index 56c0e43da..a7a5cd290 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_pl.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_pl.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=pl
anchors.title = odno\u015bniki
anchors.anchors = tekst przychodz\u0105cego odno\u015bnika:
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_pt.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_pt.properties
index 5e221b5ce..7c9c9a4d1 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_pt.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_pt.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=pt
search.title = resultados da pesquisa
search.search = Localizar
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sh.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sh.properties
index 9eb2618ba..0b8d713c7 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sh.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sh.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=sh
search.title = rezulati pretra\u017eivanja
search.help = pomo\u0107
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sr.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sr.properties
index eb0cddf29..700d44cf0 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sr.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sr.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=sr
search.title = \u0440\u0435\u0437\u0443\u043B\u0430\u0442\u0438 \u043F\u0440\u0435\u0442\u0440\u0430\u0436\u0438\u0432\u0430\u045A\u0430
search.help = \u043F\u043E\u043C\u043E\u045B
@@ -11,4 +26,3 @@ search.moreFrom = \u043E\u0441\u0442\u0430\u043B\u0438 \u0440\u0435\u0437\u0443\
search.showAllHits = \u043F\u0440\u0438\u043A\u0430\u0436\u0438 \u0441\u0432\u0435 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0435
search.clustering = clustering
search.viewAsText = \u041F\u0440\u0438\u043A\u0430\u0436\u0438 \u0441\u0430\u043C\u043E \u0442\u0435\u043A\u0441\u0442
-
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sv.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sv.properties
index 1e86b42eb..6cc532e05 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_sv.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_sv.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=sv
search.title = s�kresultat
search.search = S�k
@@ -9,4 +24,4 @@ search.next = n
search.moreFrom = mer fr�n
search.showAllHits = visa alla tr�ffar
search.clustering = klustring
-search.viewAsText = View as Plain Text
\ No newline at end of file
+search.viewAsText = View as Plain Text
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_th.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_th.properties
index 3599dd802..456def908 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_th.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_th.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=th
search.title = \u0e1c\u0e25\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32
search.search = \u0e04\u0e49\u0e19\u0e2b\u0e32
diff --git a/contrib/web2/src/main/resources/org/nutch/jsp/resources_zh.properties b/contrib/web2/src/main/resources/org/nutch/jsp/resources_zh.properties
index 481c1a4cf..fa44aea2f 100644
--- a/contrib/web2/src/main/resources/org/nutch/jsp/resources_zh.properties
+++ b/contrib/web2/src/main/resources/org/nutch/jsp/resources_zh.properties
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
lang=zh
search.title = \u67e5\u8be2\u7ed3\u679c
search.search = \u641c\u7d22
diff --git a/contrib/web2/src/main/webapp/index.jsp b/contrib/web2/src/main/webapp/index.jsp
index db9ab25d6..4705488af 100644
--- a/contrib/web2/src/main/webapp/index.jsp
+++ b/contrib/web2/src/main/webapp/index.jsp
@@ -1,5 +1,20 @@
-<%@ page
- session="false"
-%><%
+<%@ page session="false"%>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%
response.sendRedirect("search.do");
%>