JAR Recipe Nodes in the Explorer
The IDE displays all JAR recipe files as JAR recipe nodes (
)
in the Explorer. Each JAR recipe node expands to reveal a JAR file node (
).
The JAR file node represents the JAR file that the IDE creates from the JAR
recipe. The JAR file node shows the full path to the JAR file.
The JAR recipe node also contains a contents node (
)
with subnodes for each of the files and directories that the JAR recipe contains.
You can right-click any JAR recipe node and choose from the following commands:
- Compile. Compiles the files in your JAR recipe file and creates
the JAR file in the specified location.
- Execute. Runs the JAR file. You can run a JAR file only if a
main class is specified in the manifest.
- Mount JAR. Mounts the JAR file created by the JAR recipe file
in the Explorer. You must compile the JAR recipe file before you can mount
the JAR file.
- Resolve Invalid JAR Recipe Items. Refreshes the location of
invalid JAR recipe contents. If you unmount the filesystem that contains the
files in a JAR recipe, the JAR recipe and its contents become invalid and
display an error badge (
).
To resolve the invalid contents, remount the filesystem and call this command
on the JAR recipe node.
- Properties. Displays a property sheet for the JAR recipe node.
The Properties tab of JAR recipe property sheets contain the following properties:
- Compression Level. Sets the level at which JAR file contents
are compressed. Set this property to zero to disable file compression for
the JAR file.
- Contents. Displays the number of directories and files in the
JAR recipe. Click the ellipsis (...) button in the property to add more files
to the JAR recipe. See The JAR Contents
Property Editor.
- File Filter. Sets the filter that defines which files in the
JAR recipe's directories are included in the JAR file. See Setting
a JAR Content Filter.
- Location. Sets the full path and file name of the JAR file.
- Manifest. Displays the number of main attributes and per-entry sections
in the manifest. Click the ellipsis (...) to edit the manifest or load a manifest
from a text file. See Creating a JAR Manifest.
- Name. Displays the name of the JAR recipe file.
- Template. Specifies whether the JAR recipe can also be used as a
template.
The Execution tab of JAR recipe property sheets also contains the following
properties:
- Arguments. Specifies the arguments the IDE passes to the JAR
file's main class when you run the JAR file.
- Executor. Sets the execution type for the file. You should set this
setting to JAR Execution for JAR recipe files.
Contents subnodes in JAR recipe files also have the following properties:
- File Filter. Sets the filter that defines which files in the
JAR recipe's directories are included in the JAR file.
- Source. Displays the source location of the file or directory.
- Target Directory. Shows the directory in which the chosen content
appears in the JAR file. Leave this setting empty to place files and directories
in their default package structure.
- Target Name. This property is available only on files. Sets the new name of the file
in the JAR file. Leave this setting empty if you want the file to have the
same name in the JAR file as in the source directory.
Legal Notices