Using ldcpublish

Using ldcpublish#

Command-Line#

ldcpublish <project-file> [-desc:description text] -host:repositoryServer -port:serverPort -app:appName -track:projectTrack -version:versionNumber -user:name -password:password

ldcpublish <project-file> [-desc:description text] -repository:repositoryName -track:projectTrack -version:versionNumber

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

    Publishes proj.ldz as version 6.1 to the track projName.

  • 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.

Success or Failure#

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