It works for me. It looks like your ROYALE_SWF_COMPILER_HOME is pointing to a
different location than mine.
Here’s the output I get:
CoreTest:
check-for-tests:
check-compiler-home:
check-transpiler-home:
check-compiler:
test:
[available] DEPRECATED - <available> used to override an existing property.
[available] Build file should not reuse the same property name for different
values.
clean:
compile:
[echo] Compiling FlexUnitRoyaleApplication.swf
[echo] ROYALE_HOME: /Users/harbs/Documents/ApacheRoyale/royale-asjs
[echo] ROYALE_SWF_COMPILER_HOME:
/Users/harbs/Documents/ApacheRoyale/royale-asjs
[echo] FLEXUNIT_HOME: /Users/harbs/Documents/ApacheRoyale/flex-flexunit
[echo] playerglobal.version: 11.1
[mxmlc] MXMLJSC
[mxmlc] -debug
[mxmlc] -compiler.targets=SWF
[mxmlc] +playerglobal.version=11.1
[mxmlc]
+env.PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/frameworks/libs/player
[mxmlc]
-swf-library-path+=/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/libs
[mxmlc]
-swf-library-path+=/Users/harbs/Documents/ApacheRoyale/flex-flexunit/FlexUnit4/target/flexunit-4.3.0-20140410-as3_4.12.0.swc
[mxmlc]
-swf-library-path+=/Users/harbs/Documents/ApacheRoyale/flex-flexunit/FlexUnit4CIListener/target
[mxmlc]
+royalelib=/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/
[mxmlc]
-output=/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/projects/Core/src/test/royale/FlexUnitRoyaleApplication.swf
[mxmlc] --
[mxmlc]
/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/projects/Core/src/test/royale/FlexUnitRoyaleApplication.mxml
[mxmlc] Loading configuration:
/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/royale-config.xml
> On Nov 15, 2017, at 11:44 AM, Yishay Weiss <[email protected]> wrote:
>
> I’m not sure which -config.xml is being used but the ROYALE_COMPILER_HOME is
> pointing to C:\dev\flexjs\royale-asjs/js
>
>
>
> The tests are run as part of
>
>
>
> C:\dev\flexjs\royale-asjs> ant clean all
>
>
>
> When I try to run the test separately I get
>
>
>
> C:\dev\flexjs\royale-asjs\frameworks\projects\Core\src\test\royale>ant
>
> Buildfile:
> C:\dev\flexjs\royale-asjs\frameworks\projects\Core\src\test\royale\build.xml
>
>
>
> clean:
>
>
>
> compile:
>
> [echo] Compiling FlexUnitRoyaleApplication.swf
>
> [echo] ROYALE_HOME: C:\dev\flexjs\royale-asjs
>
> [echo] ROYALE_SWF_COMPILER_HOME: C:\dev\flexjs\royale-compiler\compiler
>
> [echo] FLEXUNIT_HOME: C:\dev\flexjs\royale-asjs/in/flexunit
>
> [echo] playerglobal.version: 11.1
>
>
>
> BUILD FAILED
>
> C:\dev\flexjs\royale-asjs\frameworks\projects\Core\src\test\royale\build.xml:98:
>
> C:\dev\flexjs\royale-asjs\frameworks\projects\Core\src\test\royale\${ROYALE_COMPILER_HOME}\lib
> does not exist.
>
>
>
> ________________________________
> From: Alex Harui <[email protected]>
> Sent: Tuesday, November 14, 2017 8:22:01 PM
> To: [email protected]
> Subject: Re: Ant Build Problem
>
> The FlexUnit compile is trying to use the Ant tasks instead of directly
> calling the compiler, which is probably worth testing. You can see that
> it picks up the Ant tasks from
>
> <path id="lib.path">
> <fileset dir="${ROYALE_COMPILER_HOME}/lib"
> includes="compiler-royaleTasks.jar"/>
> </path>
>
>
> If ROYALE_COMPILER_HOME is pointing somewhere unexpected, then you might
> be loading a really old compiler that is picking up a really old
> -config.xml that doesn't have COMPILE::SWF in it.
>
> HTH,
> -Alex
>
> On 11/14/17, 10:01 AM, "Yishay Weiss" <[email protected]> wrote:
>
>> The failure is on the compilation of FlexUnitRoyaleApplication.mxml. The
>> rest of royale-asjs seems to compile ok. One thing I noticed is that the
>> compiler is invoked differently.
>>
>> <mxmlc fork="true"
>> file="${basedir}/FlexUnitRoyaleApplication.mxml"
>> output="${basedir}/FlexUnitRoyaleApplication.swf">
>> <jvmarg line="${mxmlc.jvm.args}"/>
>> <arg value="-debug" />
>> <arg value="-compiler.targets=SWF" />
>> <arg value="+playerglobal.version=${playerglobal.version}" />
>> <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}"
>> />
>> <arg
>> value="-swf-library-path+=${ROYALE_HOME}/frameworks/libs" />
>> <arg value="${FLEXUNIT_LIBPATH1}" />
>> <arg value="${FLEXUNIT_LIBPATH2}" />
>> </mxmlc>
>>
>> Versus
>>
>> <java jar="${ROYALE_COMPILER_HOME}/lib/compc.jar" fork="true" >
>> <jvmarg value="-Xmx384m" />
>> <jvmarg value="-Dsun.io.useCanonCaches=false" />
>> <jvmarg value="-Droyalelib=${ROYALE_HOME}/frameworks" />
>> <arg value="+royalelib=${ROYALE_HOME}/frameworks" />
>> <arg value="+playerglobal.version=${playerglobal.version}" />
>> <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
>> <arg value="-compiler.strict-xml=true" />
>> <arg value="-compiler.targets=SWF,JSRoyale" />
>> <arg value="-output=${basedir}/target/${target.name}" />
>> <arg
>> value="-load-config=${basedir}/src/main/config/compile-swf-config.xml" />
>> <arg
>> value="-js-load-config=${ROYALE_HOME}/frameworks/js-config.xml" />
>> <arg
>> value="-js-load-config+=${basedir}/../../js/projects/${ant.project.name}JS
>> /src/main/config/compile-js-config.xml" />
>> </java>
>>
>> From: Alex Harui<mailto:[email protected]>
>> Sent: Tuesday, November 14, 2017 7:35 PM
>> To: [email protected]<mailto:[email protected]>
>> Subject: Re: Ant Build Problem
>>
>> Even if you did, it is still pretty easy for an environment variable or
>> Ant property to get you to use a compiler in another folder, so keep an
>> eye open for that. The Ant scripts usually report what compiler folder
>> they are using.
>>
>> -Alex
>>
>> On 11/14/17, 9:32 AM, "Yishay Weiss" <[email protected]> wrote:
>>
>>> I updated compiler and typedefs as well. Will have a look tomorrow.
>>>
>>>
>>>
>>> ________________________________
>>> From: Alex Harui <[email protected]>
>>> Sent: Tuesday, November 14, 2017 6:25:55 PM
>>> To: [email protected]
>>> Subject: Re: Ant Build Problem
>>>
>>> I haven't seen that. You are working with relatively new test code,
>>> IIRC.
>>> Could be you are using very old compiler?
>>>
>>> HTH,
>>> -Alex
>>>
>>> On 11/14/17, 3:26 AM, "Yishay Weiss" <[email protected]> wrote:
>>>
>>>> [mxmlc]
>>>> C:\dev\flexjs\royale-asjs\frameworks\projects\Core\src\test\royale\flexU
>>>> n
>>>> i
>>>> tTests\KeyboardEventConverterTest.
>>>> as(23): col: 5 Error: Can not resolve config constant: 'SWF'
>>>> [mxmlc]
>>>> [mxmlc] COMPILE::SWF
>>>> [mxmlc] ^
>>>> [mxmlc]
>>>>
>>>> Is anyone else getting it?
>>>>
>>>
>>
>