Dashboard > Appistry EAF v3.8 > ... > fabric_pkg > fabric_pkg commands
Log In   View a printable version of the current page.  
  fabric_pkg commands

Options

These options work with the specified fabric_pkg commands.

Option Argument Command Description
-classpath classpath create
check
Some packaging commands allow you to set the classpath for fabric applications that use Java and require classes or jars that are not included with the app, the user will need to specify the -classpath option after the command.
fabric_pkg create <-classpath="..."> <application name>.xml
fabric_pkg create -classpath="../../MyExternalClasses.jar" Hello_World.xml
-fabric-jar fabric.jar location create
check
For fabric applications that use Java, fabric_pkg locates the fabric.jar file using the FABRIC_HOME environment variable. If FABRIC_HOME is not set, or you wish to specify a different location for the fabric jar, you would do the following.
fabric_pkg create <-fabric-jar="..."> <application name>.xml
fabric_pkg create -fabric-jar="../../my_other_fabric_home" Hello_World.xml
-fars-dir far location create
check
When packaging fabric applications that have a dependency on a far archive, any fars named in the app xml must either be in the fars directory (FABRIC_HOME/fars/) or the -fars-dir option should be set to the directory containing the mentioned far files.
fabric_pkg create -fars-dir="../../fars" some_app_that_depends_on_a_far.xml
-verbose none all By default, fabric_pkg create behaves quietly. The -verbose option will instruct fabric_pkg to be verbose when executing.
fabric_pkg create some_app.xml -verbose

Commands

Help

The help command displays information about the Fabric Package utility commands.

fabric_pkg --help

Create

The create command followed by the name of the fabric application's XML file, creates the application package. Create is the default command for fabric package, when followed by a file name, as seen in the second example below. The create command is also used to create fabric archives and uses the same syntax as used for fabric app creation, as seen in the third example. The type of file created by the create command, either .fabric or .far, will be determined by the type the input XML; app XML will produce a .fabric file and far XML will produce a .far file.

fabric_pkg create <application name>.xml
fabric_pkg create Hello_World.xml
fabric_pkg create my_far.xml

Check

The check command validates the contents of the application or far XML file.

fabric_pkg check <application name>.xml
fabric_pkg check Hello_World.xml
fabric_pkg check my_shared_libs_far.xml

Extract

The extract command decompresses and extracts the files in an application package to the local directory.

fabric_pkg extract <application name>.fabric
fabric_pkg extract Hello_World.fabric
fabric_pkg extract my_shared_libs.far

List

The list command displays the contents of the application package.

fabric_pkg list <application name>.fabric
fabric_pkg list Hello_World.fabric
fabric_pkg list my_shared_libs.far

Version

The version command displays the version of the application package.

fabric_pkg version <application name>.fabric
fabric_pkg version Hello_World.fabric
fabric_pkg version my_shared_libs.far