<Step to make the Execution environment of TOOL>


1. Deploy the files

  Please put extract folder in appropriate place.

      *Although you can put those files anywhere you like
       (You may standardize in your project.),
       please deploy lib, conf, template, and bat(shell for Linux)
       under the same directory.
       After you put those files, please setup environment variables.

  Depending on the function to be used, add the dependent library by uncommenting commented
  out line of build.gradle. Uncomment the necessary JDBC driver lines according to the RDB you are using.
  When using JDBC drivers, please check the license terms of each driver.

  Run "copyRuntimeLibs" task of gradle to copy the library needed to run the tool into the lib folder.

  If you are using a JDBC driver that is not registered in the maven central repository,
  place the JDBC driver files obtained from the vendor in the lib/jdbc folder.
  Please refer to "note.txt" in the lib/jdbc folder for the JDBC driver file to be placed.


2. Setup the configuration file

  2.1 Modify mtp-service-config.xml
    Modify the "mtp-service-config.xml" in conf folder.

    (1)Choose RDB
      Change <inherits> setting by your RDB type.
      
      Uncomment the setting for RDB you use and activate it
      at <!-- ■ your rdb setting 1 ■ -->.
      Change the url value depending on your environment.

    (2)Set user to DB
      Set user who has authority to Alter at
      <!-- ■ your rdb setting 1 ■ --> to access to DB.

  2.2 Modify logback.xml
    Modify the "logback.xml" in conf folder as you need and
    update log output setting.


3. Setup the environment variables

  3.1 For the Windows environment (bat file)

     Please modify the environment variables in [tools_env.bat].

        (1)MTP_RESOURCE_PATH
           Please specify the location of iPLAss resource files.
           (relative or absolute path)

        (2)MTP_SOURCE_CLASS_PATH
           This is for the development phase.
           Please specify the compile place folder for each project.

           *If you distribute war file for the test environment,
            you don't have to specify this.


  3.2 For the Linux environment (sh file)

     Please modify the environment variables in [tools_env.sh] file.
     The details is the same as Windows environment.


4. Setup and execute of TOOL

  4.1 For the Windows environment (bat file)

     Please open the batch file you want to execute and setup the variables of "app arguments" in each TOOL.
     The required setting depends on each batch file.
     Please refer the explanation of TOOL.

     After you finished the setup, please execute tenant_gui.bat file.
     Tenant create tool will be opened.

  4.2 For the Linux environment (sh file)

     Please open the shell file you want to execute and setup the variables of "app arguments" in each TOOL.
     The required setting depends on each shell file.
     Please refer the explanation of TOOL.

     After you finished the setup, please execute the .sh file.

