mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
10.20.2007 c2749f503284eaf9f2ca124128ccc005663a2053
Remove the log files when InstallDS is invoked with the test only argument (and no error occurred).
1 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/tools/InstallDS.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/InstallDS.java
@@ -282,6 +282,14 @@
      return ErrorReturnCode.ERROR_USER_DATA.getReturnCode();
    }
    // If we are on test only mode, delete the log file that does not contain
    // any information.  The test only mode is called several times by the setup
    // script and if we do not remove it we have a lot of empty log files.
    if (argParser.testOnlyArg.isPresent())
    {
      QuickSetupLog.getLogFile().deleteOnExit();
    }
    //  If either the showUsage or testOnly or version arguments were provided,
    // then we're done.
    if (argParser.usageOrVersionDisplayed() ||