Jskad/lucene-thdl-build.xml

104 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<project name="lucene-thdl" default="lucene-thdl-jar" basedir=".">
<import file="build.xml"/>
<property name="lucene-thdl.bin" location="${bin}/lucene-thdl"/>
2007-05-15 12:28:43 +00:00
<property name="archive" location="archive"/>
<property name="wylie" location="${archive}/wylie"/>
<property name="unicode" location="${archive}/unicode"/>
<property name="solr" location="${archive}/solr"/>
<property name="styles" location="${archive}/styles"/>
2007-05-15 12:28:43 +00:00
<property name="get.title.metadata" value="http://thdl.org/avarch/mediaflowcat/title_metadata.php"/>
<property name="url.to.transcripts" value="http://www.thdl.org/avarch/transcripts"/>
<property name="url.to.media.high" value="http://www.thdl.org/media/high"/>
<property name="url.to.media.low" value="http://www.thdl.org/media/low"/>
<property name="url.to.media.audio" value="http://www.thdl.org/media/audio"/>
<path id="lucene.classpath">
<fileset id="lucene.extensions" dir="${ext}/apache">
<include name="*.jar"/>
</fileset>
</path>
2007-05-15 12:47:43 +00:00
<!--
<target name="segment-videos">
<fileset dir="${segmentation.instructions.dir}" id="segmentation.instructions">
<include name="**/*.xml"/>
</fileset>
<pathconvert pathsep=" " property="about.to.segment" refid="segmentation.instructions"/>
<java classname="fieldling.quicktime.MovieSegmenter" dir="${segmented.video.dir}" fork="yes">
<arg line="${about.to.segment}"/>
<classpath>
<pathelement location="${bin.dir}"/>
<path refid="classpath"/>
</classpath>
</java>
</target>
-->
<!--
<target name="archive-get-transcripts" depends="archive-compile">
<java classname="org.thdl.archive.GetTranscripts" fork="yes">
<arg value="${archive.metadata.file}"/>
<arg value="${wylie.transcript.dir}"/>
<classpath>
<pathelement location="${bin.dir}"/>
<path refid="classpath"/>
</classpath>
</java>
</target>
<target name="archive-transcripts-to-unicode">
<java classname="net.sf.saxon.Transform" fork="yes">
<arg value="-o"/>
<arg value="${unicode.transcript.dir}"/>
<arg value="${wylie.transcript.dir}"/>
<arg value="${stylesheet.dir}/qdToUnicode.xsl"/>
<classpath>
<pathelement location="${bin.dir}"/>
<path refid="classpath"/>
</classpath>
</java>
</target>
-->
2007-05-15 12:28:43 +00:00
<!-- archive tasks -->
<target name="archive-get-metadata">
<mkdir dir="${archive}"/>
<get src="${get.title.metadata}" dest="${archive}/title_metadata.xml" verbose="on"/>
</target>
<target name="archive-get-transcripts">
<xslt in="${archive}/title_metadata.xml" out="${archive}/titles_as_list.txt" style="${styles}/get-list-of-transcripts.xsl">
<param name="prefix" expression="${url.to.transcripts}/"/>
</xslt>
</target>
2007-05-15 12:47:43 +00:00
<!--
<filelist
id="docfiles"
dir="${doc.src}">
<file name="foo.xml"/>
<file name="bar.xml"/>
</filelist>
<filterreader classname="org.apache.tools.ant.filters.PrefixLines">
<param name="prefix" value="Foo"/>
</filterreader>
2007-05-15 12:47:43 +00:00
-->
<!-- concordance program -->
<target name="lucene-thdl-compile" depends="init">
<mkdir dir="${lucene-thdl.bin}"/>
<javac srcdir="${source}" destdir="${lucene-thdl.bin}" includes="org/thdl/lucene/**.java" debug="on">
<classpath refid="lucene.classpath"/>
</javac>
</target>
<target name="lucene-thdl-jar" depends="lucene-thdl-compile">
<jar destfile="${vanillalib}/lucene-thdl.jar" basedir="${lucene-thdl.bin}/"/>
</target>
</project>