SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1395

Multi-module build fails, when Ant option "-buildfile" was specified and current directory isn't a project directory

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: ANT-TASK-1.1
    • Fix Version/s: ANT-TASK-1.2
    • Component/s: Ant Task
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Exception looks as following :

      [sonar:sonar] Apache Ant version 1.8.1 compiled on July 8 2010
      [sonar:sonar] Sonar Ant Task version: 1.1
      [sonar:sonar] Loaded from: file:/home/godin/projects/sonarsource/tests/it-ant/target/sonar-ant-task.jar
      [sonar:sonar] Sonar work directory: /home/godin/projects/sonarsource/tests/it-ant/projects/modules/.sonar
      [sonar:sonar] Sonar server: http://localhost:49446
      [sonar:sonar] Sonar version: 2.12-SNAPSHOT
      
      BUILD FAILED
      /home/godin/projects/sonarsource/tests/it-ant/projects/modules/build.xml:25:
      java.io.FileNotFoundException: /home/godin/projects/sonarsource/tests/it-ant/one/build.xml (No such file or directory)
       at java.io.FileInputStream.open(Native Method)
       at java.io.FileInputStream.<init>(FileInputStream.java:120)
       at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:268)
       at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:177)
       at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
       at org.sonar.ant.Launcher.prepareSubProject(Launcher.java:148)
       at org.sonar.ant.Launcher.defineModules(Launcher.java:137)
       at org.sonar.ant.Launcher.defineProject(Launcher.java:106)
       at org.sonar.ant.Launcher.executeBatch(Launcher.java:181)
       at org.sonar.ant.Launcher.execute(Launcher.java:64)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205)
       at org.sonar.ant.SonarTask.execute(SonarTask.java:189)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
       at org.apache.tools.ant.Task.perform(Task.java:348)
       at org.apache.tools.ant.Target.execute(Target.java:390)
       at org.apache.tools.ant.Target.performTasks(Target.java:411)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
       at org.apache.tools.ant.Main.runBuild(Main.java:801)
       at org.apache.tools.ant.Main.startAnt(Main.java:218)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      
      Total time: 4 seconds
      

        Activity

        Hide
        Evgeny Mandrikov added a comment -

        Fixed in r4508.

        Show
        Evgeny Mandrikov added a comment - Fixed in r4508 .

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Evgeny Mandrikov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: