$RESOURCES_OUTPUT

Specifies the location to which Uniface compiles objects, and from which objects are read by the Uniface test environment.

$RESOURCES_OUTPUT { = } {Path\}Directory

Arguments

Path\Directory—directory path and name; if a path is omitted, the Directory is placed in the working directory.

Defaults

Assignment file: ide.asn
Section: [SETTINGS]
Default value: none

Description

If $RESOURCES_OUTPUT is specified , the compiled objects are written to the specified path as separate files in the standardized directory structure. This is usually a directory, but it can also be an archive file (.uar).

Note: Specifying a UAR file can carry a performance penalty. In an environment where multiple users write to a shared location, it can cause locking problems. It is usually only useful when preparing an application for deployment.

Redirecting Files

The $RSO path setting can be used to redirect non-standard resource files listed in the [FILES] section. For example:

myfile.txt = $RSO:TXT/*.txt

This assignment resolves the path of myfile.txt via the path specified by $RESOURCES_OUTPUT.

Example: Using $RESOURCES_OUTPUT

; ide.asn
[SETTINGS]
$RESOURCES_OUTPUT = usys:project\RSO		
 

When preparing application files for deployment, it can be useful to compile objects directly to a UAR file. For example:

; ide.asn
[SETTINGS]
$RESOURCES_OUTPUT = usys:project\myapp.uar		

Example: Directing Output to a Remote UAR

If you want to compile to a remote UAR, you need to edit both the ide.asn and userver.asn. For example:

; ide.asn
[PATHS]
$TCP TCP:|remote_host|user|password


[SETTINGS]
$RESOURCES_OUTPUT = $TCP:myapp.uar		
 
userver.asn
[FILES]
myapp.uar path\to\the\myapp.uar

Related Topics