Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4335

null file is created in bin directory when starting standalone.bat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 8.0.0.CR1, 8.0.0.Final
    • 8.0.0.Beta3
    • Scripts
    • None

    Description

      When starting standalone.bat on Windows, a file named "null" is created in the bin directory.

      Looking at the standalone.bat file, I find this new line which was added:

      rem Remove the gc.log file from the -version check
      del /F /Q "%JBOSS_LOG_DIR%\gc.log" > null 2>&1

      But, this is a typo. What it's trying to do is suppress the output of the del command. In unix, you'd redirect it to /dev/null. In Windows, you're supposed to redirect it to nul (with one L), as in this example line from slightly earlier in the standalone.bat file:

      move /y "%JBOSS_LOG_DIR%\gc.log" "%JBOSS_LOG_DIR%\backupgc.log" > nul 2>&1

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: