royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: Trouble migrating app to Royale
Date Sun, 15 Oct 2017 21:38:39 GMT
I’m having trouble with another build script:

    <target name="compile" description="Compiles .as files into .swc">
        <echo message="Compiling libs/${ant.project.name}.swc"/>
        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
        <echo message="FALCON_HOME: ${FALCON_HOME}"/>
        <!-- make JS output folder now so include-file doesn't error -->
        <mkdir dir="${basedir}/target/generated-sources/royale" />

        <compc fork="true"
            output="${basedir}/target/${target.name}">
            <jvmarg line="${compc.jvm.args}"/>
            <load-config filename="${basedir}/src/main/config/compile-as-config.xml" />
            <arg value="+playerglobal.version=${playerglobal.version}" />
            <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
            <arg value="-define=COMPILE::SWF,true" />
            <arg value="-define=COMPILE::JS,false" />
        </compc>
    </target>


And I’m getting this error:

Problem: failed to create task or type compc
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

What changed around this?

> On Oct 15, 2017, at 5:04 PM, Harbs <harbs.lists@gmail.com> wrote:
> 
> We completely rebuilt our build script, and I got my projects to compile. :-)
> 
> I’m not sure why the ant scripts changed so much.
> 
> Once I finish cleaning up, I’m going to try and see if I can get asconfigc to work
correctly.
> 
> One weirdness I saw was that the compiler was expecting playerglobal 11.7 even though
my build script specified 11.1.
> 
> I’m not sure why…
> 
> Harbs
> 
>> On Oct 15, 2017, at 11:03 AM, Harbs <harbs.lists@gmail.com> wrote:
>> 
>> I’m having all kinds of weird errors.
>> 
>> 1:
>> When I try compiling DataBindingExample I get this:
>>   [mxmlc] /Users/harbs/Documents/ApacheRoyale/royale-asjs/examples/royale/DataBindingExample/src/main/royale/DataBindingExample.mxml
>>   [mxmlc] 0.408848181 seconds
>>   [mxmlc] /Users/harbs/Documents/ApacheRoyale/royale-asjs/examples/royale/DataBindingExample/defaults
unable to open '/Users/harbs/Documents/ApacheRoyale/royale-asjs/frameworks/flex-config.xml'.
>>   [mxmlc] defaults (line: -1)
>>   [mxmlc]
>> Renaming royale-config.xml to flex-config.xml allows it to compile successfully.
>> 
>> 2:
>> 
>> I copied the artifacts to my “nightly” folder and I get this when trying to compile
my app:
>> build_example.compilejs:
>>    [echo] Compiling PortedPrintUI.js
>>    [echo] FLEX_HOME: /FlexSDK/FlexJSNightly
>>    [echo] FALCONJX_HOME: /FlexSDK/FlexJSNightly/js
>>    [echo] env GOOG_HOME: ${env.GOOG_HOME}
>>    [echo] GOOG_HOME: /FlexSDK/FlexJSNightly/js/lib/google/closure-library
>>    [java] MXMLJSC
>>    [java] +flexlib=/FlexSDK/FlexJSNightly/frameworks
>>    [java] -debug=true
>>    [java] -define=CONFIG::theme,false
>>    [java] -compiler.mxml.children-as-data
>>    [java] -compiler.binding-value-change-event=org.apache.royale.events.ValueChangeEvent
>>    [java] -compiler.binding-value-change-event-kind=org.apache.royale.events.ValueChangeEvent
>>    [java] -compiler.binding-value-change-event-type=valueChange
>>    [java] -compiler.binding-event-handler-interface=org.apache.royale.events.IEventDispatcher
>>    [java] -compiler.binding-event-handler-class=org.apache.royale.events.EventDispatcher
>>    [java] -compiler.binding-event-handler-event=org.apache.royale.events.Event
>>    [java] +playerglobal.version=11.1
>>    [java] +env.PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheRoyale/frameworks/libs/player
>>    [java] -js-external-library-path+=typedefs
>>    [java] -js-library-path+=lib
>>    [java] -js-output-optimization=skipAsCoercions
>>    [java] -remove-circulars
>>    [java] -html-template=/Users/harbs/Documents/git/PrintUI/printui-flexjs/PortedPrintUI/src/resources/mdl-js-index-template.html
>>    [java] -targets=JSRoyale
>>    [java] -closure-lib=/FlexSDK/FlexJSNightly/js/lib/google/closure-library
>>    [java] /Users/harbs/Documents/git/PrintUI/printui-flexjs/PortedPrintUI/src/PortedPrintUI.mxml
>>    [java] Missing builtin type Object
>>    [java]
>>    [java]
>>    [java] Unable to build SWF /Users/harbs/Documents/git/PrintUI/printui-flexjs/PortedPrintUI/src/PortedPrintUI.js
>> 
>> Harbs
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message