blob: 6ae5184909fa1d9840bae2f23aae06e12725331b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE.txt file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
<!-- FIXME: change namespace URI? -->
<cas:externextractor xmlns:cas="">
workingDir: specifies the directory that the external command line met extractor will
be run in.
if workingDir is not specified, and if the external command line met extractor honors
the workingDir contract (generating .met file in directory that it is called from), then
the .met file will be generated in /path/to/file's parent directory. Otherwise, if the
external command let met extractor doesn't honor working dir, then all bets
are off.
<exec workingDir="">
<!-- this path can be absolute or relative -->
<!-- you can optionally specify envReplace tag (=true)
to turn on environment variable replacement
<!-- make sure to use character entities if there are any weird
parameters here that would screw up the XML.
args come after providing the file to this met extractor. So, in other
words, we assume that extractorBinPath &gt;file&lt; &lt;args...&gt;
where the first parameter is always the file to extract metadata from,
and the remaining parameters are optional to provide to the underlying
met extractor.
<arg isDataFile="true"/>
<arg isMetFile="true"/>
<!-- you can optionally specify that you would like environment
variable replacement on a particular argument
You can also optionally specify that the argument is a path
and that you would like it to be treated as such using the
isPath="true". If not specified, the path is treated as if
isPath was specified as "false", and String.replaceAll("\\s", "\\\\ ")
is not called. If called, all white spaces are replaced from the path
(using the above regex), and replaced with the literal string
"\ ".
<arg envReplace="true" isPath="true">[HOME]/test boo</arg>