Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-57253

The plugin.classpath can't be overrided by the children build.xml file

    Details

      Description

      DESCRIPTION:

      In the pull https://github.com/cgoncas/liferay-portal/pull/147 you can see that the plugin.classpath of dynamic-data-mapping-test-util is:

      [echo] |-- compile classpath for /opt/dev/projects/github/liferay-portal/modules/apps/dynamic-data-mapping/dynamic-data-mapping-test-util
      [echo] | |
      [echo] | |-- /opt/dev/projects/github/liferay-portal/modules/addons/portlet-configuration-icon/portlet-configuration-icon-close/classes
      [echo] | |-- /opt/dev/projects/github/liferay-portal/bundles/tomcat-7.0.62/webapps/ROOT/WEB-INF/classes
      [echo] | |-- ....
      [echo] | |-- /opt/dev/projects/github/liferay-portal/tools/sdk/dependencies/aQute.bnd/lib/biz.aQute.bnd.jar
      [echo] | |-- /opt/dev/projects/github/liferay-portal/tools/sdk/lib/mail.jar

      But if you execute ant clean deploy inside dynamic-data-mapping-test-util you get:

      [echo] |-- compile classpath for /Users/Cristina/Work/Code/liferay-portal/modules/apps/dynamic-data-mapping/dynamic-data-mapping-test-util
      [echo] | |
      [echo] | |-- /...
      [echo] | |-- /Users/Cristina/Work/Code/bundles/osgi/test/portal-test-internal.jar
      [echo] | |-- /Users/Cristina/Work/Code/bundles/osgi/test/portal-test.jar

      In the first case the libs portal-test-internal and portal-test are not in the plugin.classpath

      HOW TO REPRODUCE THE BUG

      1) Add a echo of the the plugin.classpath in build-common.xml

      <pathconvert pathsep="${line.separator}| |-- "
      property="echo.path.compile"
      refid="plugin.classpath">
      </pathconvert>

      <!-- show classpath jars -->
      <echo message="|-- compile classpath for @

      {module.dir}

      "/>
      <echo message="| |"/>
      <echo message="| |-- ${echo.path.compile}"/>

      2) Execute ant clean compile from the folder modules/core
      3) Execute ant clean compile from the folder modules/core/registry-api
      4) You should see that both executions show diferents classpaths for registry-data

        Attachments

          Activity

            People

            • Assignee:
              cristina.gonzalez Cristina Gonzalez
              Reporter:
              cristina.gonzalez Cristina Gonzalez
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 27 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 Alpha 2