Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-4627

In the EXT environment, deploy-fast target should not copy over struts-config.xml, tiles-defs.xml or web.xml

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.3.5, 4.3.6, 4.4.0, 5.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the EXT environment, deploy-fast does a straight copy of all xml files from ext-web/docroot to tomcat

      3 files which should not be copied directly are struts-config.xml, tiles-defs.xml and web.xml

      One possible solution is to limit the fileset to <fileset dir="docroot/html"> and copy the files from WEB-INF individually.

      Here is another solution:

      <target name="deploy-fast">
      <if>
      <equals arg1="${app.server.type}" arg2="tomcat" />
      <then>
      <copy todir="${app.server.portal.dir}">
      <fileset dir="docroot">
      <include name="*/.css" />
      <include name="*/.dtd" />
      <include name="*/.gif" />
      <include name="*/.jar" />
      <include name="*/.jpg" />
      <include name="*/.js" />
      <include name="*/.jsp" />
      <include name="*/.jspf" />
      <include name="*/.png" />
      <include name="*/.tld" />
      <include name="*/.vm" />
      <include name="*/.xml" />
      <exclude name="WEB-INF/struts-config.xml" />
      <exclude name="WEB-INF/tiles-defs.xml" />
      <exclude name="WEB-INF/web.xml" />
      </fileset>
      </copy>
      <copy
      file="docroot/WEB-INF/struts-config.xml"
      tofile="${app.server.portal.dir}/WEB-INF/struts-config-ext.xml"
      />
      <copy
      file="docroot/WEB-INF/tiles-defs.xml"
      tofile="${app.server.portal.dir}/WEB-INF/tiles-defs-ext.xml"
      />
      </then>
      </if>
      </target>

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            edward.shin Edward Shin (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package