Organizing the FilesOrganize your files in your directory system in a structure corresponding to any package structure used in your java classes, and any organization of files desired. This must also correspond to the file paths specified in the Datatype Descriptor. The root of the relevant directory structure is considered the source directory (sourcedir) in the command below. For example, if your java package name is com.engineous.datatype.material, and the com directory resides at some location in your directory system c:\…\com, the source directory should be c:\…\ Jarring the FilesThe jar file requires a manifest file that specifies summary information of the contents of the jar file. Use the following format for the manifest file: Manifest-Version: 1.0 Name: com/engineous/datatype/material/material.xml Meta-Model: true Replace the values of any item as necessary, specifically making sure to replace the Name item with the path to the XML descriptor file for this datatype (starting at the source directory as defined above). Place this manifest file directly at the top level of the source directory. Type jar at a command prompt to provide usage instructions for the jar command. If the jar command is not found, locate it in your jdk1.6\bin directory, and either add it to your PATH environment variable or type the full path to it when using it. From a command prompt, execute the command jar -cvfm MyNewJar.jar MyManifest.mf -C sourcedirreplacing the desired jar file name, manifest file name, and source directory with the appropriate names. This example creates a jar file MyNewJar.jar with the given manifest, and includes all the files in the sourcedir directory and all of its subdirectories. Publishing Using the Library InterfaceTo publish the component using the Library interface:
For more information on the Library, see Using the Isight Library in the Isight User’s Guide. Publishing Using the Command Line ClientTo publish the component using the Command Line Client, type the following command into a Command Line Interface (on one line, with a space after MyNewJar.jar): fipercmd publish file:MyNewJar.jar type:metamodel You can also type fipercmd to start the Command Line Client in interactive mode. You can then issue the publish command directly. For more information on the Command Line Client, see Using the Command Line Client in the Isight User’s Guide. |