Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-641

Compile fails using forked compiler when directory contains spaces

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 1.0-M3
    • None
    • buildsystem
    • None
    • Windoze, but generic env applies

    Description

      Using forked compiler in <ant:javac> causes compile to fail. The following is encountered during the build of j2ee-builder/maven.xml.
      /***********************
      setupEar:
      [javac] Compiling 20 source files to C:\Documents and Settings\Geronimo Team\My
      Documents\test\geronimo\modules\j2ee-builder\target\test-ear14\test-ejb-jar
      [javac] javac: invalid flag: C:\Documents
      [javac] Usage: javac <options> <source files>
      *************/

      The maven file:
      <ant:javac srcdir="${ear.src.base.dir}/test-ejb-jar"
      destdir="${ear.target.base.dir}/test-ejb-jar"
      source="${maven.compile.source}"
      target="${maven.compile.target}"
      debug="on"
      fork="true">
      <!--
      changing fork="false" works
      //I generally use paths without spaces in windows, but I found this error because I was test compiling it in "documents and settings"
      -->

      Comment by Brett Porter [07/May/04 08:54 PM]
      looks like we need to wait for the Ant upgrade in future versions of Maven

      This is an issue with maven. See http://jira.codehaus.org/browse/MPJAVA-4

      Attachments

        Activity

          People

            jdillon Jason Dillon
            waimun Waimun Yeow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: