[Yanel-commits] rev 26558 -
public/yanel/contributions/projects/yanel-minimal
michi at wyona.com
michi at wyona.com
Tue Aug 7 10:09:36 CEST 2007
Author: michi
Date: 2007-08-07 10:09:35 +0200 (Tue, 07 Aug 2007)
New Revision: 26558
Modified:
public/yanel/contributions/projects/yanel-minimal/build.xml
Log:
nutch as alternative added
Modified: public/yanel/contributions/projects/yanel-minimal/build.xml
===================================================================
--- public/yanel/contributions/projects/yanel-minimal/build.xml 2007-08-07 08:08:23 UTC (rev 26557)
+++ public/yanel/contributions/projects/yanel-minimal/build.xml 2007-08-07 08:09:35 UTC (rev 26558)
@@ -9,7 +9,8 @@
<import file="dependencies.xml"/>
<target name="init" depends="dependencies">
- <property name="build.dir" value="build"/>
+ <dirname property="root.dir" file="${ant.file}"/>
+ <property name="build.dir" value="${root.dir}/build"/>
<mkdir dir="${build.dir}"/>
<property name="webapps.dir" value="${build.dir}/webapps"/>
<mkdir dir="${webapps.dir}"/>
@@ -54,19 +55,37 @@
</target>
<target name="build-resources" description="Build resources">
+ <!-- Node resource -->
<ant target="compile" antfile="resource-types/file/build.xml" inheritAll="false">
<property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
</ant>
<ant target="copy-dependencies" antfile="resource-types/file/build.xml" inheritAll="false">
<property value="${build.dir}" name="build.dir"/>
- <property value="yanel" name="servlet.context.prefix"/>
+ <property value="${project.name}" name="servlet.context.prefix"/>
<property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
</ant>
<copy todir="${webapps.dir}/${project.name}/WEB-INF/lib">
<fileset dir="resource-types/file/build/lib"/>
</copy>
+
+ <!-- Nutch resource -->
+<!--
+ <ant target="compile" antfile="resource-types/nutch/build.xml" inheritAll="false">
+ <property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
+ </ant>
+
+ <ant target="copy-dependencies" antfile="resource-types/nutch/build.xml" inheritAll="false">
+ <property value="${build.dir}" name="build.dir"/>
+ <property value="${project.name}" name="servlet.context.prefix"/>
+ <property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
+ </ant>
+
+ <copy todir="${webapps.dir}/${project.name}/WEB-INF/lib">
+ <fileset dir="resource-types/nutch/build/lib"/>
+ </copy>
+-->
</target>
<target name="war" description="Build war file" depends="build-webapp">
@@ -74,10 +93,19 @@
</target>
<target name="clean" description="clean" depends="init">
+ <delete dir="${build.dir}"/>
+
+ <!-- Node resource -->
<ant target="clean" antfile="resource-types/file/build.xml" inheritAll="false">
<property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
</ant>
- <delete dir="${build.dir}"/>
+
+ <!-- Nutch resource -->
+<!--
+ <ant target="clean" antfile="resource-types/nutch/build.xml" inheritAll="false">
+ <property value="${yanel.version}-r${yanel.revision}" name="yanel.source.version"/>
+ </ant>
+-->
</target>
</project>
More information about the Yanel-commits
mailing list