Altova MobileTogether Server Advanced Edition

Syntax and description

The deploy command deploys a MobileTogether package (.mtp file) to MobileTogether Server. When a MobileTogether package is created in MobileTogether Designer, the deployment path can be specified in the package, but does not need to be. The arguments and options of the deploy command described below take this into account.

 

mobiletogetherserver deploy [options] Package [Path]

 

Package specifies the path to the MobileTogether package that you want to deploy.

Path (optional) specifies the location on the server where you want to deploy the package. If this argument is specified on the command line and the package already contains a deployment path, then the path supplied on the command line is used and the deployment path in the package is ignored. If this argument is not supplied and the package contains no deployment path, then an error message about this is displayed.

If a package having the same name already exists at the deployment location and you want to overwrite it, use the force option (see below). If you do not use force in this situation, an error will be displayed, indicating that a package already exists at the specified deployment location.

You can specify the input parameters that will be used in actions of the project's OnServerDeploy event (see the MobileTogether Designer documentation).

 

Note:The server must be stopped before this command is executed.

 

 

Example

Examples of the deploy command:

 

mobiletogetherserver deploy "C:\temp\ParcelDelivery.mtp"

mobiletogetherserver deploy --force "C:\temp\ParcelDelivery.mtp"

mobiletogetherserver deploy "C:\temp\ParcelDelivery.mtp" "/public/ParcelDelivery"

mobiletogetherserver deploy --force "C:\temp\ParcelDelivery.mtp" "/public/ParcelDelivery"

mobiletogetherserver deploy --force --force_solutionfile=datalib\cust-NY.sqlite --force_solutionfile=datalib\cust-MA.sqlite "C:\temp\ParcelDelivery.mtp"

mobiletogetherserver deploy --force --input_parameters="P1=5089; MyP2='space separated words'; SomeP3=JoinedWords" "C:\temp\ParcelDelivery.mtp"

 

 

Options

Options are listed in short form (if available) and long form. You can use one or two dashes for both short and long forms. An option may or may not take a value. If it takes a value, it is written like this: --option=value. Values can be specified without quotes except in two cases: (i) when the value string contains spaces, or (ii) when explicitly stated in the description of the option that quotes are required. If an option takes a Boolean value and no value is specified, then the option's default value is TRUE. Use the --h, --help option to display information about the command.

 

 

 

© 2018-2024 Altova GmbH