Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6260

TestModule should check the path in consistent manner

XMLWordPrintable

      In TestModule.isImmutableModulePath method, it takes a String parameter:

          private static boolean isImmutableModulePath(String path) {
              return path.contains(ILLEGAL_BUILD_DIR) || path.contains(ILLEGAL_DIST_DIR);
          }
      

       

      , which actually comes from settings in the pom.xml, like:

      <configuration>
          <systemPropertyVariables>
              <!-- Override the standard module path that points at the shared module set from the dist -->
              <module.path>${project.build.directory}/wildfly/modules</module.path>
          </systemPropertyVariables>
      </configuration>
      

      which has '/' as the file separatorChar, this has problem in Windows platform that it failed to check which module.path to use in the test suites, it is supposed to use the one 'target/modules', but that may lead to use the '<wildfly-root-src>/build/target/wildfly-xxx/modules' instead, which may affect other tests if the test module fails to get deleted.

       

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: