3 Replies Latest reply on Mar 1, 2011 12:31 PM by mlabriola

    FlexUnit4SampleCIProject will not build for me with build.air.xml

    brantner Level 1

      I have I6 of Burrito. I downloaded the FlexUnit4SampleCIProject and followed set-up instrucitons on this page:

      http://docs.flexunit.org/index.php?title=Ant_Task

       

      When I leave in all the default source and run it using:

      ant -v -f build.air.xml clean package

       

      it goes for awhile and then fails with a:

      BUILD FAILED
      /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor

       

      What am I doing wrong? Here is the full log from terminal on my Mac running Snow Leopard with ant 1.8:

       

      admin-MacBookPro:FlexUnit4SampleCIProject brantner$ ant -v -f build.air.xml clean package
      Apache Ant version 1.8.1 compiled on September 21 2010
      Buildfile: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml
      Detected Java version: 1.6 in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      Detected OS: Mac OS X
      parsing buildfile /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml with URI = file:/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject /build.air.xml
      Project base dir set to: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject
      parsing buildfile jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
      [property] Loading Environment env.
      Build sequence for target(s) `clean' is [clean]
      Complete build sequence is [clean, init, compile, test, package, ]

       

      clean:
         [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
         [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
         [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist
         [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
         [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
      Build sequence for target(s) `package' is [init, compile, test, package]
      Complete build sequence is [init, compile, test, package, clean, ]

       

      init:
          [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
          [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
          [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
          [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist

       

      compile:
          [mxmlc] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
          [mxmlc] Required RSLs:
          [mxmlc]     framework_4.5.0.20135.swf with 1 failover.
          [mxmlc]     textLayout_2.0.0.232.swf with 1 failover.
          [mxmlc]     spark_4.5.0.20135.swf with 1 failover.
          [mxmlc]     sparkskins_4.5.0.20135.swf with 1 failover.
          [mxmlc]     mx_4.5.0.20135.swf with 1 failover.
          [mxmlc] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/Main.swf (63438 bytes)

       

      test:
      [flexunit] Validating task attributes ...
      [flexunit] Generating default values ...
      [flexunit] Using the following settings for compilation:
      [flexunit]     FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
      [flexunit]     player: [air]
      [flexunit]     sourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/main/flex"]
      [flexunit]     testSourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/test/flex"]
      [flexunit]     libraries: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/li bs/flexunit-aircilistener-4.1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit- d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0.swc","/Users/brantner/Docu ments/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-core-flex-4 .1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIPr oject/libs/flexunit-uilistener-4.1.0.swc"]
           [null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
           [null] '-jar'
           [null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
           [null] '--version'
           [null]
           [null] The ' characters around the executable and arguments are
           [null] not part of the command.
           [null] Output redirected to property: SDK_VERSION
      [flexunit] Found SDK version: 4
      [flexunit] Created test runner at [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml]
      [flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
      [flexunit] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
      [flexunit] '-Xmx256M'
      [flexunit] '-jar'
      [flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
      [flexunit] '+flexlib'
      [flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks'
      [flexunit] '+configname=air'
      [flexunit] '-output'
      [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf'
      [flexunit] '-source-path'
      [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /main/flex'
      [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /test/flex'
      [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-aircilistener-4.1.0.swc'
      [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-cilistener-4.1.0.swc'
      [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-core-flex-4.1.0.swc'
      [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-uilistener-4.1.0.swc'
      [flexunit] '-headless-server=true'
      [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml'
      [flexunit]
      [flexunit] The ' characters around the executable and arguments are
      [flexunit] not part of the command.
      [flexunit]
           [null] Error redirected to property: MXMLC_ERROR
           [null] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/air-config.xml
           [null] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/TestRunner.swf (491869 bytes)
      [flexunit] Using the following settings for the test run:
      [flexunit]     FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
      [flexunit]     haltonfailure: [false]
      [flexunit]     headless: [false]
      [flexunit]     display: [99]
      [flexunit]     localTrusted: [true]
      [flexunit]     player: [air]
      [flexunit]     port: [1024]
      [flexunit]     swf: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf]
      [flexunit]     timeout: [60000ms]
      [flexunit]     toDir: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/report]
      [flexunit] Setting up server process ...
      [flexunit] Starting server ...
           [null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
           [null] '-jar'
           [null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/adt.jar'
           [null] '-version'
           [null]
           [null] The ' characters around the executable and arguments are
           [null] not part of the command.
           [null] Output redirected to property: AIR_VERSION
      [flexunit] Opening server socket on port [1024].
      [flexunit] Waiting for client connection ...

       

      BUILD FAILED
      /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor
          at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
          at org.flexunit.ant.launcher.commands.player.AdlCommand.prepare(Unknown Source)
          at org.flexunit.ant.launcher.contexts.DefaultContext.start(Unknown Source)
          at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
          at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
          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: 18 seconds
      admin-MacBookPro:FlexUnit4SampleCIProject brantner$

       

      Thanks,

      Brian