Oracle GlassFish Server 3.0.1 Scripting Framework Guide

asadmin CLI for Jython

The asadmin deploy command enables you to set several deployment-specific properties for Jython applications. Table 3–1 lists these properties.

Table 3–1 Jython Deployment Properties

Property 

Default Value 

Possible Value 

Description 

jython.home

None 

Path to a directory 

Path to a Jython installation. Required. 

jython.mediaRoot

None 

Path to a directory 

Optional parameter containing the path to the location, for server to serve the static files. 

jython.frameworkRoot

None 

Path to a directory 

Optional parameter containing the path of the framework being used. Currently supports Django. 

jython.applicationType

None 

String representing application type such as Django 

Optional parameter to specify the framework, including non-Django applications. 

Use the following command syntax to set these properties:


asadmin deploy --property property=value

For example, you can set the jython.frameworkRoot property to the Django directory as follows:


asadmin deploy --property jython.frameworkRoot=django-install

These values are persistent in the domain.xml file.