Class MatcherCLIFromFile
java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
de.uni_mannheim.informatik.dws.melt.matching_base.external.cli.MatcherCLI
de.uni_mannheim.informatik.dws.melt.matching_base.external.cli.MatcherCLIFromFile
- All Implemented Interfaces:
IMatcher<URL,
,URL, URL> eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
,eu.sealsproject.platform.res.tool.api.IPlugin
,eu.sealsproject.platform.res.tool.api.IToolBridge
Read the file "external/external_command.txt" and start an external process. The whole content of the file is used and newlines are ignored.
For replacements in this string have a look at
MatcherCLI.getCommand()
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
The command which should be executed as one string (containing potentially multiple arguments).The line is splitted by whitespace but quotations are respected.Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.external.cli.MatcherCLI
isUsingStdOut, match, match
Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
align, align, canExecute, getType
Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.sealsproject.platform.res.tool.api.IPlugin
getId, getVersion
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
filePath
-
-
Constructor Details
-
MatcherCLIFromFile
public MatcherCLIFromFile()
-
-
Method Details
-
getCommand
Description copied from class:MatcherCLI
The command which should be executed as one string (containing potentially multiple arguments).The line is splitted by whitespace but quotations are respected. An argument line can contain scopes (scopes are only printed if all variables in a scope can be replaced). The following varaibles are replaced:- ${source} with source URI
- ${target} with target URI
- ${inputAlignment} with inputAlignment URI
- ${parameters} with parameters URI
- system properties like ${line.separator} or ${file.separator} ${java.io.tmpdir}
- environment variables like ${PATH}
- JVM arguments like ${Xmx} which is replaced by e.g. -Xmx10G
ExternalProcess.addSubstitutionForSystemProperties()
,ExternalProcess.addSubstitutionForEnvironmentVariables()
andExternalProcess.addSubstitutionForJVMArguments()
. The String can also contain scopes which are created with $[...]. The scope is only printed if all variables in the scope can be replaced. This is good for named arguments like: $[-i ${inputAlignment}] then only -i is printed if the input alignment is set.- Specified by:
getCommand
in classMatcherCLI
- Returns:
- the string which represents the command to execute.
- Throws:
IOException
-