Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-987

Redundant code in forrest.build.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 0.8
    • None
    • Core operations
    • None
    • Low

    Description

      In forrest.build.xml there is the followoing target:

      <!-- Load properties from Forrest's default skinconf.xml, unless a user's is defined -->
        <target name="load-forrest-props" unless="skinconf.present">
          <xslt in="${forrest.core.webapp}/skinconf.xml"
                 out="${project.temp-dir}/no-doctype-forrest-skinconf.xml"
                 style="${forrest.core.webapp}/resources/stylesheets/strip-doctype.xsl">
            <xmlcatalog refid="fcatalog"/>
          </xslt>
      <!-- Forrest skinconf should have been previously validated in build.xml -->
          <xmlproperty file="${project.temp-dir}/no-doctype-forrest-skinconf.xml"
                       collapseattributes="true"/>
        </target>

      This target is never used in a skin based site (they always have skinconf present from the seed).

      Furthermore, since the core skinconf file no longer exists it breaks the dispatcher based sites, which may not have a skinconf.

      ----

      There may well be other redundant code that needs to be cleared out.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgardler Ross Gardler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: