Under the application project folder, several files comprise the basic structure of a Junos Space application. For example, the project folder for the HelloWorld reference application is shown below. Note that the following listing shows only the most relevant files in the application project, not all files.
HelloWorld/
build/
build.xml
build-schemas.xml
image_operation.xml
package.sh
config/
app.template.spec
Cleanup_JSHellowWorld.sh
dto.properties
InstallScript.pl
mysql-HellowWorld-ds.xml
spec.properties
urls.xml
EarContent/
META-INF/
app-info/
HelloWorld-app-info.xml
app-info.xsd
sockets.xml
urls.xml
app-settings/
App-settings.xml
app-settings-configurator.xsd
paradigm/
HelloWorld-module.xml
xxx-module.xsd
application.xml
jboss-app.xml
mapping/
rest-mapping.xml
In the subdirectory build/
:
build.xml
build-schemas.xml
image_operation.zip
package.sh
For more information on these build files, see Generating a Build Script.
In the subdirectory config/
:
mysql-<app>-ds.xml
app-templates.spec
installScript.pl
urls.xml
In the subdirectory EarContent/META-INF/app-info/
:
<app>-app-info.xml
app-info.xsd
sockets.xml
urls.xml
<GLOBAL>
<ALLOW>
[URL]
[URL]
...
</ALLOW>
<BLOCK>
[URL]
[URL]
...
</BLOCK>
<GLOBAL>
In the subdirectory EarContent/META-INF/app-settings/
:
App-settings.xml
app-settings-configurator.xsd
The App-settings.xml file contains configurable settings for the user interface elements and attributes for your application, which are defined in the app-settings-configurator.xsd schema definition file. For more information on both files, see Using the App-Settings.xml Editor.
In the subdirectory EarContent/META-INF/paradigm/
:
<earName>-module.xml
xxx-module.xsd
The module.xml file defines a wide range of application information that affects a user's interaction with the application, such as the workspaces, tasks, and user interface gadgets the application presents to a user. The settings in module.xml are defined by the module.xsd XML Schema Definition file. For more information about module.xml, see Understanding the Module.xml Editor and Using the Module.xml Editor.
In the subdirectory EarContent/META-INF/
:
application.xml
jboss-app.xml
In the subdirectory mapping/
:
rest-mapping.xml