|
Studio provides a way of adding custom tools to the framework. Tools may be added to the framework as "tool archives".
To import a tool, use the Import Tool button. The class ToolJarReader in com.pramati.studio.config creates the tool configuration information objects given a JAR. The JAR should have a manifest file with all the required entries. Studio registers all the features of the tool immediately and does not need to be restarted when a new tool is added.
The manifest file in the JAR should follow the format given below:
To add the manifest files to an existing JAR, use the command
jar ufm <jar-file-name> <manifest-content-text-file>
where <manifest-content-text-file> is a simple text file comprising all the required contents in MANIFEST.MF, the manifest file.
Once the manifest file is ready, clicking on Import Tool prompts the user for the JAR to be imported. After the JAR is imported into Studio, the tool can be deployed and undeployed.
Example:
To understand the format of the manifest file more clearly, read the sample manifest file. The tool main class ManifestWizard used in the example is a dummy tool.
Name: ManifestWizard
Pramati-Studio-Tool: true
Tool-Class-Path:
Tool-Main-Class: com.pramati.studio.tools.manifestwizard.ManifestPropertiesPanel
Description: Dummy tool for importing in Pramati Studio
Error-Message:
| Pramati Technologies © Copyright |
|