Problem using new editor variables
Posted: Sun Nov 02, 2014 10:54 pm
Hi there,
I'm trying to reference some TEI resources from the TEI add-on in an Ant task, using the new variables. My scenario parameters include this:
and I've also tried:
based on the folder name of the TEI plugin. I've also tried quoting both these values. This looks like this in the xpr file:
When I then try to do this in my Ant build file:
I get this error:
E [ANT Validator] Cannot find /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml imported from /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/buildODD.xml
I other words, it looks as though the ${teiPlugin} variable is not being expanded in the @file attribute, and in any case it's being evaluated relative to the location of the ant build file. Any idea what I might be doing wrong here?
All help appreciated,
Martin
I'm trying to reference some TEI resources from the TEI add-on in an Ant task, using the new variables. My scenario parameters include this:
Code: Select all
teiPlugin: ${frameworkDir(TEI P5)}
Code: Select all
teiPlugin ${frameworkDir(tei)}
Code: Select all
<antParameter>
<field name="name">
<String>teiPlugin</String>
</field>
<field name="description">
<String>TEI plugin location</String>
</field>
<field name="value">
<String>${frameworkDir("tei")}</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>5</Integer>
</field>
<field name="isPredefined">
<Boolean>false</Boolean>
</field>
<field name="possibleValues">
<null/>
</field>
</antParameter>
Code: Select all
<import file="${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml"/>
E [ANT Validator] Cannot find /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml imported from /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/buildODD.xml
I other words, it looks as though the ${teiPlugin} variable is not being expanded in the @file attribute, and in any case it's being evaluated relative to the location of the ant build file. Any idea what I might be doing wrong here?
All help appreciated,
Martin