a5w_publish2 Function
Syntax
L a5w_publish2(opsIn as C)
L a5w_publish2(opsIn as P)
Arguments
- opsInCharacter Pointer
You can either pass in a dot variable or a JSON string to the function.
The dot variable (or the JSON string) can define the following properties:
- projName
the name of the Web Project you want to publish. If you leave this blank the last selected project is used.
- profile
name of the publishing profile to use. If you leave this blank "Local Webroot" is used.
- publish_type
1 = all files in project, 2 = selected files (specified by the 'files' property). Note: if you set to 1, the 'flagPublishSupportFiles' property is set to .t.
- files
CR-LF delimited list of files to publish. Must set publish_type to 2. File names are relative. e.g. 'MyUXComponent.a5wcmp'.
- flagOptimizePublishing
default to .t. - specifies if the publishing history should be checked to see if the file has been previously published. If .t., then only files that have not been published since they were last changed are published.
- flagPublishDatabaseALB
default to .f. 'Workspace' SQL reports are stored in the Workspace files (.alb, .alm, .alx). If you are using Workspace SQL reports (as opposed to Project reports), you can specify if the Workspace SQL reports should be published.
- flagPublishSecurityTables
default to .f. - Specify if security tables (containing user and group settings) should be published.
- flagPublishSupportFiles
default .t. - only applies if publish_type is 2. Support files include CSS and Javascript files.
- flagCreateAex
default .f. - if you have global functions defined as L = default .f.
Returns
- ResultLogical
Returns .t. if successful, otherwise .f.
Description
A wrapper around the a5w_publish() function to make it easier for create command line programs that automate publishing. Call a5w_publish2("help") to get help on the options.