Author: koji
Date: Sat Dec 29 02:01:18 2012
New Revision: 1426686
URL: http://svn.apache.org/viewvc?rev=1426686&view=rev
Log:
use property for config xml instead of concrete name in demo
Modified:
labs/alike/trunk/build.xml
labs/alike/trunk/demo/ (props changed)
labs/alike/trunk/demo/build.xml
Modified: labs/alike/trunk/build.xml
URL:
http://svn.apache.org/viewvc/labs/alike/trunk/build.xml?rev=1426686&r1=1426685&r2=1426686&view=diff
==============================================================================
--- labs/alike/trunk/build.xml (original)
+++ labs/alike/trunk/build.xml Sat Dec 29 02:01:18 2012
@@ -150,12 +150,13 @@
<!-- ================================================================== -->
<target name="clean" description="clean all">
<delete dir="${cls.dir}"/>
+ <delete dir="${job.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"/>
+ <fileset dir="." includes="*.job"/>
</delete>
</target>
Propchange: labs/alike/trunk/demo/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Dec 29 02:01:18 2012
@@ -9,3 +9,4 @@ result-centroids.txt
solr-demo-data.xml
.input-vectors.crc
hadoop-conf
+desc
Modified: labs/alike/trunk/demo/build.xml
URL:
http://svn.apache.org/viewvc/labs/alike/trunk/demo/build.xml?rev=1426686&r1=1426685&r2=1426686&view=diff
==============================================================================
--- labs/alike/trunk/demo/build.xml (original)
+++ labs/alike/trunk/demo/build.xml Sat Dec 29 02:01:18 2012
@@ -21,6 +21,7 @@
default="piv" basedir="..">
<import file="../build.xml"/>
+ <property name="conf" value="demo-conf.xml"/>
<target name="check-hadoop">
<available file="demo/hadoop-conf" type="dir"
property="hadoop.conf.dir" value="demo/hadoop-conf"/>
@@ -29,7 +30,7 @@
<target name="piv" depends="alike-compile, check-hadoop" description="run
PrepareInputVectors">
<java classname="org.apache.alike.PrepareInputVectors" dir="demo"
fork="true">
<jvmarg line="-Dfile.encoding=UTF-8"/>
- <arg line="demo-conf.xml"/>
+ <arg line="${conf}"/>
<classpath refid="common.path.lib"/>
<classpath path="${cls.dir}"/>
<classpath path="${hadoop.conf.dir}"/>
@@ -39,7 +40,7 @@
<target name="kmeans" depends="alike-compile, check-hadoop"
description="run KMeansLauncher">
<java classname="org.apache.alike.KMeansLauncher" dir="demo"
fork="true">
<jvmarg line="-Dfile.encoding=UTF-8"/>
- <arg line="demo-conf.xml"/>
+ <arg line="${conf}"/>
<classpath refid="common.path.lib"/>
<classpath path="${cls.dir}"/>
<classpath path="${hadoop.conf.dir}"/>
@@ -49,7 +50,7 @@
<target name="clusterdump" depends="alike-compile, check-hadoop"
description="run ClusterDumperLauncher">
<java classname="org.apache.alike.ClusterDumperLauncher" dir="demo"
fork="true">
<jvmarg line="-Dfile.encoding=UTF-8"/>
- <arg line="demo-conf.xml"/>
+ <arg line="${conf}"/>
<classpath refid="common.path.lib"/>
<classpath path="${cls.dir}"/>
<classpath path="${hadoop.conf.dir}"/>
@@ -59,7 +60,7 @@
<target name="qv" depends="alike-compile" description="run
QuantizeVectors">
<java classname="org.apache.alike.QuantizeVectors" dir="demo"
fork="true">
<jvmarg line="-Dfile.encoding=UTF-8"/>
- <arg line="demo-conf.xml"/>
+ <arg line="${conf}"/>
<classpath refid="common.path.lib"/>
<classpath path="${cls.dir}"/>
</java>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]