Using ldcpublish

Using ldcpublish#

Command-Line#

ldcpublish [-script]:<Script> <ProjectFile> [-save]:<Filename used to save LDM file> -track:<Project> [-desc]:<Snapshot Description> -version:<Snapshot Version> -date:<Snapshot Date> [-url]:<Repository URL> [-repository]:<Repository Name>

   -script:<Script>
      Run script with the given name
   -cmd:<Command>
      Run Groovy API commands
   -save:<Filename used to save LDM file>
      Save LDM file after execution.
   -repository:<Repository Name>
      Repository Name
   -url:<Repository URL>
      Repository URL
   -user:<User>
      User
   -password:<Password>
      Password
   -track:<Project>
      Project
   -desc:<Snapshot Description>
      Snapshot Description
   -version:<Snapshot Version>
      Snapshot Version
   -date:MM/dd/yy (07/31/25)|MM/dd/yyyy (07/31/2025)|yyyy-MM-dd (2025-07-31)|yyyy-MM-ddThh:mm:ss (2025-07-31T11:50:32)
      Snapshot Date

Note

The second example (above) is using a saved repostiory configuration. When the configuration contains a username and password, this is used by ldcpublish.

Publishes a new snapshot (a Lattix project) to the repository.

Examples#

ldcpublish proj.ldz -url:http://serverName:port/LattixWeb -track:projName -version:6.1 -user:your-name -password:your-password -date:2025-07-28

Publishes proj.ldz as version 6.1 to the track projName, with the date 2025-07-28 (July 28, 2025)

ldcpublish proj.ldz -repository:TestRepository -track:projName -version:4.2.1 -user:your-name -password:your-password

Publishes proj.ldz as version 4.2.1 to the track projName. Note that to use this command, you must have set up a TestRepository using Lattix LDM to point to the server, port and app.

ldcpublish proj.ldz -repository:TestRepository -track:projName -version:V1.0 -user:your-name -password:your-password

Publishes proj.ldz as version V1.0 to the track projName.

ldcpublish proj.ldz -repository:TestRepository -track:projName -version:LATEST -user:your-name -password:your-password

Publishes proj.ldz using the latest version in the repository to the track projName.

ldcpublish proj.ldz -url:http://serverName:port/LattixWeb -track:projName -version:LATEST -user:your-name -password:your-password

Publishes proj.ldz using the latest version in the repository to the track projName.

Various formats are supported for the date:

  • MM/dd/yy (07/31/25)

  • MM/dd/yyyy (07/31/2025)

  • yyyy-MM-dd (2025-07-31)

  • yyyy-MM-ddThh:mm:ss (2025-07-31T11:50:32)

Success or Failure#

Return success or failure to the calling script, where failure is the inability to complete its processing.