93 lines
3.2 KiB
XML
93 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<project name="thdl-concordancer" default="index-for-solr" basedir=".">
|
|
|
|
<import file="build.xml"/>
|
|
|
|
<property name="lucene-thdl.bin" location="${bin}/lucene-thdl"/>
|
|
<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="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>
|
|
|
|
<!--
|
|
<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>
|
|
-->
|
|
|
|
<!-- archive tasks -->
|
|
<target name="archive-get-metadata">
|
|
<mkdir dir="${archive}"/>
|
|
<get src="${get.title.metadata}" dest="${archive}/title_metadata.xml" verbose="on"/>
|
|
</target>
|
|
|
|
<!--
|
|
<filelist
|
|
id="docfiles"
|
|
dir="${doc.src}">
|
|
<file name="foo.xml"/>
|
|
<file name="bar.xml"/>
|
|
</filelist>
|
|
-->
|
|
|
|
<!-- 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>
|