Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

FU4CIListener build.xml not setting properties?

$
0
0

I am following the Ant Task Setup.  I have flex sdk 3.6.0.X, apache-ant 1.8.2 and the flexunit source 4.1.0.

 

When I run > ant -v clean package

function(){return A.apply(null,[this].concat($A(arguments)))}

Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: C:\projects\FlexUnit4CIListener\build.xml
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
Detected OS: Windows XP
parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
Project base dir set to: C:\projects\FlexUnit4CIListener
parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
Overriding previous definition of reference to ant.projectHelper
parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
[macrodef] creating macro  gpg
[macrodef] creating macro  sonatype-bundle
Overriding previous definition of reference to ant.projectHelper
[property] Loading Environment env.
Property "build.version" has not been set
Property "build.number" has not been set
Property "build.sdk" has not been set
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, report, package, deploy, ]

clean:
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
Build sequence for target(s) `package' is [init, compile, report, package]
Complete build sequence is [init, compile, report, package, clean, deploy, ]

init:
    [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc

compile:
    [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
    [compc] Adobe Compc (Flex Component Compiler)
    [compc] Version 3.6.0 build 16995
    [compc] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
    [compc]
    [compc] command line: Error: configuration variable 'output' value contains unknown token 'build.version'
    [compc]
    [compc] Use 'compc -help' for information about using the command line.

BUILD FAILED
C:\projects\FlexUnit4CIListener\build.xml:50: compc task failed
        at flex.ant.FlexTask.executeInProcess(FlexTask.java:299)
        at flex.ant.FlexTask.execute(FlexTask.java:225)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 1 second


build.version, build.number & build.sdk are properties that are not being set.  I would assume that they should be set internally somehow.  However, if I manually set them via -D switches (with arbitrary values) I get the following:

 

>ant -v clean package -Dbuild.version=1.2.3.4 -Dbuild.number=666 -Dbuild.sdk=4.1

function(){return A.apply(null,[this].concat($A(arguments)))}

Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: C:\projects\FlexUnit4CIListener\build.xml
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
Detected OS: Windows XP
parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
Project base dir set to: C:\projects\FlexUnit4CIListener
parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
Overriding previous definition of reference to ant.projectHelper
parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
[macrodef] creating macro  gpg
[macrodef] creating macro  sonatype-bundle
Overriding previous definition of reference to ant.projectHelper
[property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, report, package, deploy, ]

clean:
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
   [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
   [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
Build sequence for target(s) `package' is [init, compile, report, package]
Complete build sequence is [init, compile, report, package, clean, deploy, ]

init:
    [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
    [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
     [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc

compile:
    [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
    [compc] C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc (11773 bytes)

report:
Skipped because property 'build.report' not set.

package:
     [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\target
     [copy] Copying C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc to C:\projects\FlexUnit4CIListener\target\flexunit-cilistener-1.2.3.4-666-4.1.swc

BUILD SUCCESSFUL
Total time: 4 seconds

I can see where the previous 3 properties are being used in the swc output file name, but now there is a build.report property that is not being set.  How do I know which properties need to be set, and what to set them to?


Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>