Andrew Borthwick wrote:
Hi,
Are there any command-line utilities to install a PEAR package, or do
you need to write your own as per section 6.2.1 of the UIMA Reference?
Obviously the other choice is to use the Pear Installer, but I am
looking for a command-line solution.
Thanks,
Andrew Borthwick
Currently there are no command-line utilities available to install a
PEAR package. If you need that, you have to write a main method that
calls the
installPackage method below.
public static PackageBrowser installPackage(File installDir, File
pearPackage, boolean verify)
But you are right, such an utility will be helpful. So if you create
one, we are happy if you submit it as patch to our UIMA tools suite.
There is also an command-line argument parser available that maybe helps
you to handle command-line arguments.
org.apache.uima.internal.util.CommandLineParser
For the usage of the parser you can look at the PEAR packager
command-line tooling in the uimaj-tools project.
org.apache.uima.tools.pear.packager.PearPackager
If you have any additional question, please let us know.
-- Michael