Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1221

Unused code segment on tomee-catalina TomcatWebAppBuilder.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.6.0.1, 1.6.0.2, 1.7.0
    • 1.7.0
    • None
    • None
    • N/A

    Description

      The following code segment is unused hence should be removed.
      if (standardContext.getConfigFile() == null) {
      final String s = File.pathSeparator;
      final File contextXmlFile = new File(standardContext.getDocBase() + s + "META-INF" + s + "context.xml");
      if (contextXmlFile.exists())

      { BackportUtil.getAPI().setConfigFile(standardContext, contextXmlFile); standardContext.setOverride(true); }

      }

      Relevant Mail Thread Subject: Why File.pathSeparator used to create the context.xml path - msg#41759

      Attachments

        1. TOMEE-1221-patch.diff
          1 kB
          Chamil Jeewantha

        Activity

          People

            kdchamil Chamil Jeewantha
            kdchamil Chamil Jeewantha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified