Skip to main content

Compiling a File

Compiling a File

The Compile method compiles the source code files specified by name in the incoming JSON array. For example, to compile xyz.mac, POST the following:

https://devsys:52773/api/atelier/v1/INVENTORY/action/compile

with the following JSON message:

["xyz.mac"]

The method returns:

{
  "status": {
    "errors": [],
    "summary": ""
  },
  "console": [
    "",
    "Compilation started on 08/14/2016 15:25:20 with qualifiers 'cuk'",
    "xyz.int is up to date. Compile of this item skipped.",
    "Compilation finished successfully in 0.008s."
  ],
  "result": {
    "content": []
  }
}

For some source code files, such as classes, Compile returns storage information in the returned content.

FeedbackOpens in a new tab