added ant-contrib so we can use the foreach task within our build files, which i am using within the lucene build file
This commit is contained in:
parent
f8a97cce4e
commit
f804001124
3 changed files with 16 additions and 9 deletions
|
@ -3,14 +3,11 @@
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
<xsl:output method="text" encoding="utf-8"/>
|
<xsl:output method="text" encoding="utf-8"/>
|
||||||
|
|
||||||
<xsl:param name="prefix" select="''"/>
|
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates select="//transcript"/>
|
<xsl:apply-templates select="//transcript"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="transcript">
|
<xsl:template match="transcript">
|
||||||
<xsl:value-of select="$prefix"/><xsl:value-of select="."/><xsl:text>
|
<xsl:value-of select="."/><xsl:text> </xsl:text>
|
||||||
</xsl:text>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
BIN
extensions/to-be-installed-with-ant/ant-contrib.jar
Normal file
BIN
extensions/to-be-installed-with-ant/ant-contrib.jar
Normal file
Binary file not shown.
|
@ -1,9 +1,14 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<project name="lucene-thdl" default="lucene-thdl-jar" basedir=".">
|
<project name="lucene-thdl" default="lucene-thdl-jar" basedir=".">
|
||||||
|
|
||||||
<import file="build.xml"/>
|
<import file="build.xml"/>
|
||||||
|
|
||||||
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="${ext}/to-be-installed-with-ant/ant-contrib.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</taskdef>
|
||||||
|
|
||||||
<property name="lucene-thdl.bin" location="${bin}/lucene-thdl"/>
|
<property name="lucene-thdl.bin" location="${bin}/lucene-thdl"/>
|
||||||
<property name="archive" location="archive"/>
|
<property name="archive" location="archive"/>
|
||||||
<property name="wylie" location="${archive}/wylie"/>
|
<property name="wylie" location="${archive}/wylie"/>
|
||||||
|
@ -71,9 +76,14 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="archive-get-transcripts">
|
<target name="archive-get-transcripts">
|
||||||
<xslt in="${archive}/title_metadata.xml" out="${archive}/titles_as_list.txt" style="${styles}/get-list-of-transcripts.xsl">
|
<mkdir dir="${wylie}"/>
|
||||||
<param name="prefix" expression="${url.to.transcripts}/"/>
|
<xslt in="${archive}/title_metadata.xml" out="${archive}/titles_as_list.txt" style="${styles}/get-list-of-transcripts.xsl"/>
|
||||||
</xslt>
|
<loadfile property="transcript-list" srcFile="${archive}/titles_as_list.txt"/>
|
||||||
|
<foreach list="${transcript-list}" delimiter=" " param="filename" target="archive-get-one-transcript"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="archive-get-one-transcript">
|
||||||
|
<get src="${url.to.transcripts}/${filename}" dest="${wylie}/${filename}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in a new issue