Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section outlines explains how to update a used projects project using a command line. 


To update a used projects project from the command-line interface

...

  1. Move the properties file the properties file to the plugin directory <modeling tool installation directory>/plugins/com.nomagic.magicdraw.twcusageupdater.
  2. Open the command-line interface.
  3. Go to the the <modeling tool installation directory>/plugins/com.nomagic.magicdraw.twcusageupdater directory  directory containing the executive executable file for the used projects project update. 

Note
titleExecutive Executable file

The executive Depending on your operating system, the executable file is the corresponding .sh or .bat file depending on your operating system.


To update a used projects project using a single properties file, type

...

Type the following command in the command line:

  • On Windows:
update.bat -properties sample.properties
  • On OS X or Linux Linux:
 ./update.sh -properties sample.properties


To update a used projects project using multiple properties files, type

...

Type the following command in the command line:

  • On Windows:
update.bat -properties first.properties second.properties third.properties

...

./update.sh -properties first.properties second.properties third.properties

Project configuration directory

If you use a non-default configuration directory (e.g. change it by using special properties in the <modeling tool>.properties file), you need to update the plugin as well. Otherwise, the plugin searches for settings in the default directory instead of the configuration directory that is actually in use. This results in unexpected failures.

To avoid failures, add identical properties for changing the configuration directory in the update script:

  • On Windows:
  1. Go to the update.bat file.
  2. Change the command line at the end of the file to the following:

"%fullPath%/bin/java" -Xmx4000M -Xss1024K -Dlocalconfig.location=userhome -cp %CLASS_PATH% %*

  • On OS X or Linux:
  1. Go to the update.sh file.
  2. Change the VM_OPTIONS line to the following:

VM_OPTIONS="-Xmx1900M -Xss1024K -Dlocalconfig.location=userhome"

Note

This example is applicable if the modeling tool uses the property "-Dlocalconfig.location=userhome".