You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ko...@apache.org on 2012/12/11 14:42:04 UTC
svn commit: r1420154 - in /labs/alike/trunk: ./ README.txt build.properties
build.xml demo/solrhome/collection1/ ivy.xml pom.xml src/java/ src/main/
src/test/java/ src/test/resources/
Author: koji
Date: Tue Dec 11 13:42:02 2012
New Revision: 1420154
URL: http://svn.apache.org/viewvc?rev=1420154&view=rev
Log:
use ivy instead of maven
Added:
labs/alike/trunk/build.properties
labs/alike/trunk/build.xml
labs/alike/trunk/ivy.xml
labs/alike/trunk/src/java/
- copied from r1419966, labs/alike/trunk/src/main/java/
Removed:
labs/alike/trunk/pom.xml
labs/alike/trunk/src/main/
labs/alike/trunk/src/test/java/
labs/alike/trunk/src/test/resources/
Modified:
labs/alike/trunk/ (props changed)
labs/alike/trunk/README.txt
labs/alike/trunk/demo/solrhome/collection1/ (props changed)
Propchange: labs/alike/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Dec 11 13:42:02 2012
@@ -2,3 +2,5 @@
.project
.settings
target
+classes
+lib
Modified: labs/alike/trunk/README.txt
URL: http://svn.apache.org/viewvc/labs/alike/trunk/README.txt?rev=1420154&r1=1420153&r2=1420154&view=diff
==============================================================================
--- labs/alike/trunk/README.txt (original)
+++ labs/alike/trunk/README.txt Tue Dec 11 13:42:02 2012
@@ -27,4 +27,4 @@ is the first wall to use alike, sharing
to community!
The rest of alike dependencies, such as Mahout and Lucene, are available for download via
-Maven central repository.
+ivy:retrieve ant task.
Added: labs/alike/trunk/build.properties
URL: http://svn.apache.org/viewvc/labs/alike/trunk/build.properties?rev=1420154&view=auto
==============================================================================
--- labs/alike/trunk/build.properties (added)
+++ labs/alike/trunk/build.properties Tue Dec 11 13:42:02 2012
@@ -0,0 +1,21 @@
+PRODUCT_NAME = apache-alike
+PRODUCT_VERSION = 0.1
+
+src.dir = src
+lib.dir = lib
+cls.dir = classes
+javadoc.dir = api
+test.cls.dir = test-classes
+test.result.dir = test-result
+tools.dir = tools
+prettify.dir = ${tools.dir}/prettify
+samples.dir = samples
+d3.js = d3.v2.min.js
+product.jar = ${PRODUCT_NAME}-${PRODUCT_VERSION}.jar
+
+compile.encoding = UTF-8
+compile.debug = true
+compile.deprecation = ON
+compile.target = 1.6
+
+svn.exe = svn
Added: labs/alike/trunk/build.xml
URL: http://svn.apache.org/viewvc/labs/alike/trunk/build.xml?rev=1420154&view=auto
==============================================================================
--- labs/alike/trunk/build.xml (added)
+++ labs/alike/trunk/build.xml Tue Dec 11 13:42:02 2012
@@ -0,0 +1,166 @@
+<?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.
+-->
+<project name="apache-alike" xmlns:ivy="antlib:org.apache.ivy.ant"
+ default="alike-compile" basedir=".">
+
+ <property file="build.properties"/>
+
+ <path id="common.path.lib">
+ <fileset dir="${lib.dir}" includes="*.jar"/>
+ </path>
+
+ <!-- ================================================================== -->
+ <!-- = BUILD ALIKE = -->
+ <!-- ================================================================== -->
+ <target name="resolve" description="retrieve dependencies with ivy">
+ <ivy:retrieve/>
+ </target>
+
+ <target name="alike-compile" depends="resolve" description="compile alike">
+ <mkdir dir="${cls.dir}"/>
+ <javac srcdir="${src.dir}/java"
+ destdir="${cls.dir}"
+ encoding="${compile.encoding}"
+ deprecation="${compile.deprecation}"
+ target="${compile.target}"
+ debug="${compile.debug}">
+ <classpath refid="common.path.lib"/>
+ </javac>
+ </target>
+
+ <target name="alike-javadoc" description="build alike javadoc">
+ <property name="javadoc.link.java" value="http://docs.oracle.com/javase/jp/6/api/"/>
+ <property name="javadoc.link.lucene.core" value="http://lucene.apache.org/core/4_0_0/core/"/>
+ <delete dir="${javadoc.dir}"/>
+ <mkdir dir="${javadoc.dir}"/>
+ <copy todir="${javadoc.dir}/prettify">
+ <fileset dir="${prettify.dir}"/>
+ </copy>
+ <javadoc
+ overview="src/java/overview.html"
+ sourcepath="${src.dir}/java"
+ packagenames="org.apache.alike.*"
+ failonerror="true"
+ destdir="${javadoc.dir}"
+ access="protected"
+ encoding="${compile.encoding}"
+ docencoding="${compile.encoding}"
+ charset="${compile.encoding}"
+ additionalparam="-J-Dfile.encoding=${compile.encoding}"
+ author="true"
+ version="true"
+ use="true"
+ locale="en"
+ source="${compile.target}"
+ windowtitle="${PRODUCT_NAME} ${PRODUCT_VERSION} API"
+ doctitle="${PRODUCT_NAME} ${PRODUCT_VERSION} API"
+ stylesheetfile="${javadoc.dir}/prettify/stylesheet+prettify.css"
+ bottom="Copyright &copy; 2012 <a href="http://apache.org/">Apache Software Foundation</a> All Rights Reserved.">
+ <classpath refid="common.path.lib"/>
+ <link href="${javadoc.link.java}"/>
+ <link href="${javadoc.link.lucene.core}"/>
+ <tag name="rh.solr.schema" description="schema.xml sample"/>
+ <tag name="rh.solr.solrconfig" description="solrconfig.xml sample"/>
+ <tag name="rh.warning" description="WARNING"/>
+ <header><![CDATA[
+<a href="http://labs.apache.org/labs.html">Apache alike Copyright (c) 2012 Apache Software Foundation</a>
+<script src="{@docRoot}/prettify/prettify.js" type="text/javascript"></script>
+<script language="JavaScript">window.onload=function(){windowTitle();prettyPrint();}</script>
+ ]]></header>
+ </javadoc>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- = TEST ALIKE = -->
+ <!-- ================================================================== -->
+ <target name="test" depends="test-compile" description="test alike">
+ <mkdir dir="${test.result.dir}"/>
+ <junit printsummary="on"
+ haltonfailure="no"
+ errorProperty="tests.failed"
+ failureProperty="tests.failed"
+ dir="${src.dir}/test">
+ <classpath refid="common.path.lib"/>
+ <classpath path="${cls.dir}"/>
+ <classpath path="${test.cls.dir}"/>
+ <classpath path="${src.dir}/test"/>
+ <formatter type="brief" usefile="false" if="junit.details"/>
+ <formatter type="plain"/>
+ <batchtest fork="yes" todir="${test.result.dir}" unless="testcase">
+ <fileset dir="${src.dir}/test" includes="**/*Test.java"/>
+ </batchtest>
+ <batchtest fork="yes" todir="${test.result.dir}" if="testcase">
+ <fileset dir="${src.dir}/test" includes="**/${testcase}.java"/>
+ </batchtest>
+ </junit>
+ <fail if="tests.failed">***** Tests failed! *****</fail>
+ </target>
+
+ <target name="test-compile" depends="alike-compile" description="compile alike tests">
+ <mkdir dir="${test.cls.dir}"/>
+ <javac srcdir="${src.dir}/test"
+ destdir="${test.cls.dir}"
+ encoding="${compile.encoding}"
+ deprecation="${compile.deprecation}"
+ target="${compile.target}"
+ debug="${compile.debug}">
+ <classpath refid="common.path.lib"/>
+ <classpath path="${cls.dir}"/>
+ </javac>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- = LAUNCH TOOLS = -->
+ <!-- ================================================================== -->
+ <target name="run-clustering" depends="alike-compile" description="run Clustering">
+ <java classname="org.apache.alike.Clustering" fork="true">
+ <jvmarg line="-Dfile.encoding=UTF-8"/>
+ <arg line="conf.properties"/>
+ <classpath refid="common.path.lib"/>
+ <classpath path="${cls.dir}"/>
+ </java>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- = CLEANING = -->
+ <!-- ================================================================== -->
+ <target name="clean" description="clean all">
+ <delete dir="${cls.dir}"/>
+ <delete dir="${test.cls.dir}"/>
+ <delete dir="${javadoc.dir}"/>
+ <delete dir="${test.result.dir}"/>
+ <delete>
+ <fileset dir="." includes="**/*~" defaultexcludes="no"/>
+ <fileset dir="." includes="*.jar"/>
+ </delete>
+ </target>
+
+ <target name="clean-lib" description="clean libs downloaded by ivy">
+ <delete dir="${lib.dir}"/>
+ </target>
+
+ <target name="clean-eclipse" description="delete Eclipse files, .project, .classpath and bin/">
+ <delete dir="bin"/>
+ <delete>
+ <fileset dir="." includes=".project,.classpath"/>
+ </delete>
+ </target>
+
+</project>
Propchange: labs/alike/trunk/demo/solrhome/collection1/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Dec 11 13:42:02 2012
@@ -0,0 +1 @@
+data
Added: labs/alike/trunk/ivy.xml
URL: http://svn.apache.org/viewvc/labs/alike/trunk/ivy.xml?rev=1420154&view=auto
==============================================================================
--- labs/alike/trunk/ivy.xml (added)
+++ labs/alike/trunk/ivy.xml Tue Dec 11 13:42:02 2012
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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.
+-->
+<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
+ <info
+ organisation=""
+ module=""
+ status="integration">
+ </info>
+ <dependencies>
+ <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.4"/>
+ <dependency org="org.apache.mahout" name="mahout-core" rev="0.7"/>
+ <dependency org="org.slf4j" name="slf4j-jcl" rev="1.6.1"/>
+ </dependencies>
+</ivy-module>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org