Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-1712

Skip ".svn" subdirectories when searching for JAR files during ofbiz startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Trunk
    • Release Branch 4.0, Trunk
    • framework
    • None
    • n/a

    Description

      During ofbiz startup, it looks for jar files in the /ofb/framework/base/lib.
      I noticed that when it is iterating through this subdirectory, it looks into the ".svn" subdirectory as well. This sub directory should be skipped.

      The files affected are shown below. I don't know why "CVS" string exists in the code. Perhaps its legacy code from way back.

      /ofbiz/framework/base/src/base/org/ofbiz/base/container/ComponentContainer.java, line 182
      change...
      if (componentPath.isDirectory() && !sub.equals("CVS")) {
      to...
      if (componentPath.isDirectory() && !sub.equals("CVS") && !sub.equals(".svn")) {

      /ofbiz/framework/base/src/start/org/base/start/Start.java, line 174:
      change...
      if (file.isDirectory() && !"CVS".equals(fileName) && recurse) {
      to...
      if (file.isDirectory() && !"CVS".equals(fileName) && !".svn".equals(fileName) && recurse) {

      ofbiz-trunk/framework/shark/webapp/shark/repository - showRepository.ftl
      There's an occurrence of "CVS" string as well. But I do not know Freemarker macros.

      Attachments

        1. start_filter_svn.patch
          2 kB
          Ray Barlow

        Activity

          People

            jleroux Jacques Le Roux
            buzlite Wai Tam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: