Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-539

Double quotes in fork call / long classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4.3
    • 2.6
    • classloading
    • None
    • Windows XP SP3

    Description

      We use a customized TestSuite for our test cases, it works fine when executed in the IDE (Eclipse), but when i run mvn test then the test fails with a nondescript
      [INFO] [surefire:test]
      [INFO] Surefire report directory: ...
      [ERROR] There are test failures.

      The config in pom.xml is
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.4.3</version>
      <configuration>
      <argLine>-Xms500M -Xmx500M -Xmn250M</argLine>
      <useManifestOnlyJar>false</useManifestOnlyJar>
      <includes>
      testClasses after here....

      When i tried it from the commandline with the debug option i saw a big block of text when then fork call happend, as mentioned in the documentation the classpath was very long. Although this might be the root of the problem i also noticed that the statement had double quotes which might not work

      Forking command line: cmd.exe /X /C "C:\Programme\Java\jdk1.5.0_16\jre\bin\java -Xms500M -Xmx500M -Xmn250M -classpath "C:\...." org.apache.maven.surefire.booter.SurefireBooter tempFiles"

      I cut out the long classpath and the file names after SurefireBooter but i think you see what i mean

      It's no big deal as it runs fine on Linux and on Windows you can always execute it from the IDE.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            pkleindl Patrik Kleindl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: