incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1178268 [3/3] - in /incubator/lcf/integration/solr-4.x/trunk: .gitignore .hgignore CHANGES.txt DEPENDENCIES.txt DISCLAIMER.txt LICENSE.txt NOTICE.txt README.txt build.xml dev-tools/ lucene/ mcf/ modules/ solr/
Date Sun, 02 Oct 2011 22:48:34 GMT
Added: incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt?rev=1178268&view=auto
==============================================================================
--- incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt (added)
+++ incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt Sun Oct  2 22:48:34 2011
@@ -0,0 +1,5 @@
+Apache Solr-4.x ManifoldCF Plugin
+Copyright 2010-2011 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).

Propchange: incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/integration/solr-4.x/trunk/NOTICE.txt
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: incubator/lcf/integration/solr-4.x/trunk/README.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/integration/solr-4.x/trunk/README.txt?rev=1178268&r1=1178267&r2=1178268&view=diff
==============================================================================
--- incubator/lcf/integration/solr-4.x/trunk/README.txt (original)
+++ incubator/lcf/integration/solr-4.x/trunk/README.txt Sun Oct  2 22:48:34 2011
@@ -1,14 +1,80 @@
-Apache Lucene/Solr
+# 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.
+
+
+Instructions for Building Apache Solr 4.x ManifoldCF Plugin from Source
+-------------------------------------------------------------------
+
+1. Download the Java SE 6 JDK (Java Development Kit), or greater, from http://java.sun.com.
+   You will need the JDK installed, and the %JAVA_HOME%\bin directory included
+   on your command path.  To test this, issue a "java -version" command from your
+   shell and verify that the Java version is 1.6 or greater.
+
+2. Download the Apache Ant binary distribution (1.7.0 or greater) from http://ant.apache.org.
+   You will need Ant installed and the %ANT_HOME%\bin directory included on your
+   command path.  To test this, issue a "ant -version" command from your
+   shell and verify that Ant is available.
+
+3. In a shell, change to the root directory of the source (where you find the outermost
+   build.xml file), and type "ant" for directions.
+
+
+Some Files Included In Apache Solr 4.x ManifoldCF Plugin Distributions
+------------------------------------------------------------------
+
+dist/apache-solr-mcf*.jar
+  The Apache Solr 4.x ManifoldCF plugin jar.
+
+Licensing
+---------
+
+Apache Solr-4.x ManifoldCF Plugin is licensed under the
+Apache License 2.0. See the files called LICENSE.txt and NOTICE.txt
+for more information.
+
+Cryptographic Software Notice
+-----------------------------
+
+This distribution may include software that has been designed for use
+with cryptographic software. The country in which you currently reside
+may have restrictions on the import, possession, use, and/or re-export
+to another country, of encryption software. BEFORE using any encryption
+software, please check your country's laws, regulations and policies
+concerning the import, possession, or use, and re-export of encryption
+software, to see if this is permitted. See <http://www.wassenaar.org/>
+for more information.
+
+The U.S. Government Department of Commerce, Bureau of Industry and
+Security (BIS), has classified this software as Export Commodity
+Control Number (ECCN) 5D002.C.1, which includes information security
+software using or performing cryptographic functions with asymmetric
+algorithms. The form and manner of this Apache Software Foundation
+distribution makes it eligible for export under the License Exception
+ENC Technology Software Unrestricted (TSU) exception (see the BIS
+Export Administration Regulations, Section 740.13) for both object
+code and source code.
+
+The following provides more details on the included software that
+may be subject to export controls on cryptographic software:
+
+  The ManifoldCF plugin for Apache Solr 4.x does not include any
+  implementation or usage of cryptographic software at this time.
+  
+Contact
+-------
+
+  o For general information visit the main project site at
+    http://incubator.apache.org/connectors
 
-lucene/ is a search engine library
-solr/ is a search engine server that uses lucene
-modules/ is shared code
-
-To compile the sources run 'ant compile'
-To run all the tests run 'ant test'
-To setup your ide run 'ant idea' or 'ant eclipse'
-For Maven info, see dev-tools/maven/README.maven.
-
-For more information on how to contribute see:
-http://wiki.apache.org/lucene-java/HowToContribute
-http://wiki.apache.org/solr/HowToContribute

Modified: incubator/lcf/integration/solr-4.x/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/integration/solr-4.x/trunk/build.xml?rev=1178268&r1=1178267&r2=1178268&view=diff
==============================================================================
--- incubator/lcf/integration/solr-4.x/trunk/build.xml (original)
+++ incubator/lcf/integration/solr-4.x/trunk/build.xml Sun Oct  2 22:48:34 2011
@@ -1,117 +1,120 @@
-<?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="lucene-solr" default="test" basedir=".">
-  <target name="test" description="Test both Lucene and Solr" depends="validate">
-    <sequential>
-      <subant target="test" inheritall="false" failonerror="true">
-        <fileset dir="lucene" includes="build.xml" />
-        <fileset dir="modules" includes="build.xml" />
-        <fileset dir="solr" includes="build.xml" />
-      </subant>
-    </sequential>
-  </target>
-  <target name="validate" description="Validate dependencies, licenses, etc.">
-    <sequential><subant target="validate" inheritall="false" failonerror="true">
-        <fileset dir="lucene" includes="build.xml" />
-        <fileset dir="modules" includes="build.xml" />
-        <fileset dir="solr" includes="build.xml" />
-      </subant></sequential>
-  </target>
-  <target name="compile" description="Compile Lucene and Solr">
-    <sequential>
-
-      <subant target="compile" inheritall="false" failonerror="true">
-        <fileset dir="lucene" includes="build.xml" />
-        <fileset dir="modules" includes="build.xml" />
-        <fileset dir="solr" includes="build.xml" />
-      </subant>
-    </sequential>
-  </target>
-
-  <property name="version" value="4.0-SNAPSHOT"/>
-  <target name="get-maven-poms" 
-          description="Copy Maven POMs from dev-tools/maven/ to their target locations">
-    <copy todir="." overwrite="true">
-      <fileset dir="${basedir}/dev-tools/maven"/>
-      <filterset begintoken="@" endtoken="@">
-        <filter token="version" value="${version}"/>
-      </filterset>
-      <globmapper from="*.template" to="*"/>
+ 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="mcf-solr-4.x-plugin" default="help">
+
+  <target name="clean">
+    <delete dir="solr"/>
+    <delete dir="dist"/>
+  </target>
+  
+  <target name="download-solr">
+    <mkdir dir="solr" />
+    <exec dir="solr" executable="svn" failifexecutionfails="true">
+      <arg value="checkout" />
+      <arg value="http://svn.apache.org/repos/asf/lucene/dev/trunk" />
+      <arg value="." />
+    </exec>
+  </target>
+  
+  <target name="copy-sources" depends="download-solr">
+    <mkdir dir="solr/solr/contrib/mcf"/>
+    <copy todir="solr/solr/contrib/mcf">
+      <fileset dir="mcf">
+        <include name="**/*"/>
+      </fileset>
     </copy>
   </target>
-
-  <target name="generate-maven-artifacts" description="Generate Maven Artifacts for Lucene
and Solr">
-    <property name="maven.dist.dir"  location="dist/maven" />
-    <mkdir dir="${maven.dist.dir}" />
-
-    <sequential>
-      <subant target="generate-maven-artifacts" inheritall="false" failonerror="true">
-        <property name="maven.dist.dir"  location="${maven.dist.dir}" />
-        <fileset dir="lucene" includes="build.xml" />
-        <fileset dir="modules" includes="build.xml" />
-        <fileset dir="solr" includes="build.xml" />
-      </subant>
-    </sequential>
-  </target>
-
-  <target name="eclipse" description="Setup Eclipse configuration">
-    <copy file="dev-tools/eclipse/dot.project" tofile=".project" overwrite="false"/>
-    <copy file="dev-tools/eclipse/dot.classpath" tofile=".classpath" overwrite="true"/>
-    <mkdir dir=".settings"/>
-    <copy file="dev-tools/eclipse/resources.prefs" 
-          tofile=".settings/org.eclipse.core.resources.prefs" overwrite="true"/>
-    <echo>
-      SUCCESS: You must right-click your project and choose Refresh
-      Please note, your project must use a Java 6 JRE
-    </echo>
+  
+  <target name="compile" depends="copy-sources">
+    <ant dir="solr/solr/contrib/mcf" target="default"/>
+  </target>
+  
+  <target name="test" depends="copy-sources">
+    <ant dir="solr/solr/contrib/mcf" target="test"/>
+  </target>
+  
+  <target name="deliver" depends="compile">
+    <mkdir dir="dist"/>
+    <copy todir="dist">
+      <fileset dir="solr/solr/build/contrib/solr-mcf">
+        <include name="*.jar"/>
+      </fileset>
+    </copy>
   </target>
 
-  <target name="idea" description="Setup IntelliJ IDEA configuration">
-    <copy todir=".">
-      <fileset dir="dev-tools/idea"/>
-    </copy>
-    <echo>
-      To complete IntelliJ IDEA setup, you must manually configure
-      Project Structure | Project | Project SDK.
+  <target name="build" depends="deliver"/>
+
+  <target name="set-version">
+      <property name="release-version" value="0.1-incubating-dev"/>
+  </target>
+    
+  <target name="create-source-zip" depends="set-version">
+      <zip destfile="apache-solr-4.x-manifoldcf-plugin-${release-version}-src.zip" update="false">
+        <zipfileset dir="." prefix="apache-solr-4.x-manifoldcf-plugin-${release-version}">
+          <exclude name="/solr/"/>
+          <exclude name="/dist/"/>
+          <exclude name="/apache-solr-4.x-manifoldcf-plugin-*"/>
+        </zipfileset>
+      </zip>
+    </target>
+    
+  <target name="create-source-tar" depends="set-version">
+      <tar destfile="apache-solr-4.x-manifoldcf-plugin-${release-version}-src.tar.gz"
compression="gzip" longfile="gnu">
+        <tarfileset dir="." prefix="apache-solr-4.x-manifoldcf-plugin-${release-version}">
+          <exclude name="/solr/"/>
+          <exclude name="/dist/"/>
+          <exclude name="/apache-solr-4.x-manifoldcf-plugin-*"/>
+        </tarfileset>
+      </tar>
+  </target>
+
+  <target name="help">
+    <echo level="info">
+Apache Solr 4.x ManifoldCF Plugin build file.  Use this file to
+build the plugin distributables and run the tests.
+
+Useful targets are:
+
+clean   - Clean the build area
+build   - Build jar under the 'dist' directory
+test    - Run the tests
+
+Prerequisites: This build requires Subversion (svn) to be
+installed, and svn internet access to the Apache repository.
+It also requires Java jdk1.6.0 or above.
     </echo>
   </target>
-  <target name="clean-idea"
-          description="Removes all IntelliJ IDEA configuration files">
-    <delete dir=".idea" failonerror="true"/>
-    <delete failonerror="true">
-      <fileset dir="." includes="*.iml,*.ipr,*.iws"/>
-      <fileset dir="solr" includes="**/*.iml"/>
-      <fileset dir="lucene" includes="**/*.iml"/>
-      <fileset dir="modules" includes="**/*.iml"/>
-    </delete>
-  </target>
-
-  <target name="clean" description="Clean Lucene and Solr">
-    <delete dir="dist" />
-    <sequential>
-      <subant target="clean" inheritall="false" failonerror="true">
-        <fileset dir="lucene" includes="build.xml" />
-        <fileset dir="modules" includes="build.xml" />
-        <fileset dir="solr" includes="build.xml" />
-      </subant>
-    </sequential>
+  
+  <target name="-taskdef">
+      <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">
+        <classpath>
+          <fileset dir="." includes="rat*.jar"/>
+        </classpath>
+      </typedef>
+  </target>
+  <target name="rat-sources" depends="-taskdef"
+      description="runs the tasks over src/java excluding the license directory">
+      <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
+        <fileset dir="src/">
+          <exclude name="solr/"/>
+          <exclude name="dist/"/>
+        </fileset>
+      </rat:report>
   </target>
 
 </project>



Mime
View raw message