Uploaded image for project: 'Playground'
  1. Playground
  2. PLAY-139

allow maven build on Windows OS without error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.10, 11.1
    • Fix Version/s: 9.10, 10.10, 11.1
    • Component/s: Sources
    • Environment:
      Windows (cmd/batch)
    • Impact type:
      Configuration Change

      Description

      when launching the maven build ( mvn -DskipTests=true install -Paddons,distrib) the build crash on the nuxeo-api-playground whith error message like :

      “[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (gulp-build) on project nuxeo-api-playground: Aing this line:
      [ERROR] C:\Users\tcasanova\GIT\LTS_10.10\addons\nuxeo-api-playground\src\main\dart\build.xml:4: Execute failed: java.io.IOExceptionaddons\nuxeo-api-playground\src\main\dart"): CreateProcess error=2, The system cannot find the file specified
      [ERROR] around Ant part ...<ant antfile="C:\Users\tcasanova\GIT\LTS_10.10\addons\nuxeo-api-playground/src/main/dart/build.xml" dir="></ant>... @ 4:184 in C:\Users\tcasanova\GIT\LTS_10.10\addons\nuxeo-api-playground\target\antrun\build-main.xml”
      

      This is because on windows the pub.bat file is not found by ant even if it’s in the PATH.
      (see https://ant.apache.org/manual/Tasks/exec.html for detail)

      The correction consist on modifying the build.xml file to add condition for s family. :

      see the joind file build.xml to replace under .....\addons\nuxeo-api-playground\src\main\dart

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: