Java code synchronization

To perform synchronization between model and Java code through command line:

  1. Browse the scripts folder under the VP Suite installation directory.
    The scripts folder inside VP Suite installation directory
    The scripts folder inside VP Suite installation directory
  2. Copy the script file JavaCodeSync and paste to the bin folder of VP Suite installation directory.
    Copy and paste JavaCodeSync from scripts folder to bin folder
    Copy and paste JavaCodeSync from scripts folder to bin folder
  3. Start the command prompt.
  4. Navigate to the bin folder of VP Suite installation directory.
    Navigate to the bin folder of VP Suite in command prompt
    Navigate to the bin folder of VP Suite in command prompt
  5. Execute the script by supplying the required parameters. For example:
    JavaCodeSync -project C:\Demo\Demo.vpp -src C:\Demo\MyProject\src -generate
    Executing JavaCodeSync
    Executing JavaCodeSync
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -src The folder path of the source file
    C:\Demo\Output\src
    -generate | -reverse Action to perform. Include -generate to indicate the update of code from model. Include -reverse to indicate the update of model from code. -generate
    Parameters for JavaCodeSync