You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Peter Ent <pe...@adobe.com.INVALID> on 2017/11/07 21:34:57 UTC

[Royale-ASJS] flexTasks

I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this notice:

Could not load definitions from resource flexTasks.tasks. It could not be found.

Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?

—peter

Re: [Royale-ASJS] flexTasks

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Disabling the tests that run FlexUnitRoyaleApplication.swf allow the build
to succeed.


> Shooting in the dark here: FlexUnit has some dependencies on flex. Do you
> have flex-sdk downloaded?
>

This brings me to a second question, which I'll raise in a new thread to
keep this one to the point.

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [Royale-ASJS] flexTasks

Posted by Harbs <ha...@gmail.com>.
You can probably disable the tests. Once I have the JS tests working, we can probably have some kind of switch to pick swf tests, js tests, or both.

Shooting in the dark here: FlexUnit has some dependencies on flex. Do you have flex-sdk downloaded?

Harbs

> On Nov 8, 2017, at 11:39 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> 
> An addition: running
> 'frameworks/projects/Basic/src/test/royale/flexUnitTests/FlexUnitRoyaleApplication.swf'
> starts out with this error: "VerifyError: Error #1014: Class IResponder
> could not be found." to then proceed to the error I mentioned earlier...
> 
> Thanks,
> 
> EdB
> 
> 
> 
> On Wed, Nov 8, 2017 at 10:37 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> 
>> Having some problems with setup as well...
>> 
>> When I follow the clean and rebuild instructions everything is fine until
>> ant on 'royale-asjs' hits an error in one of the apps: "ReferenceError:
>> Error #1065: Variable FlexUnitRoyaleApplication is not defined." and the
>> build times out.
>> 
>> This is the cli output at the point of failure:
>> 
>> <
>> test:
>>    [mkdir] Created dir: /Users/erik/Documents/git/royale-asjs/frameworks/
>> projects/Basic/src/test/royale/out
>> [flexunit] Validating task attributes ...
>> [flexunit] Generating default values ...
>> [flexunit] Using the following settings for the test run:
>> [flexunit] haltonfailure: [false]
>> [flexunit] headless: [false]
>> [flexunit] display: [99]
>> [flexunit] localTrusted: [true]
>> [flexunit] player: [flash]
>> [flexunit] port: [1024]
>> [flexunit] swf: [/Users/erik/Documents/git/royale-asjs/frameworks/
>> projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf]
>> [flexunit] timeout: [90000ms]
>> [flexunit] toDir: [/Users/erik/Documents/git/royale-asjs/frameworks/
>> projects/Basic/src/test/royale/out]
>> [flexunit] Setting up server process ...
>> [flexunit] Starting server ...
>> [flexunit] Opening server socket on port [1024].
>> [flexunit] Waiting for client connection ...
>> [flexunit] Entry [/Users/erik/Documents/git/royale-asjs/frameworks/
>> projects/Basic/src/test/royale] already available in local trust file at
>> [/Users/erik/Library/Preferences/Macromedia/Flash Player/#Security/
>> FlashPlayerTrust/flexUnit.cfg].
>> [flexunit] Executing 'open' with arguments:
>> [flexunit] '/Users/erik/Documents/git/royale-asjs/frameworks/
>> projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf'
>> [flexunit]
>> [flexunit] The ' characters around the executable and arguments are
>> [flexunit] not part of the command.
>> [flexunit]
>> [flexunit]
>> [flexunit] Stopping server ...
>> [flexunit] End of test data reached, sending acknowledgement to player ...
>> [flexunit] Closing client connection ...
>> [flexunit] Closing server on port [1024] ...
>>> 
>> 
>> Ideas?
>> 
>> Thanks,
>> 
>> EdB
>> 
>> 
>> 
>> On Wed, Nov 8, 2017 at 6:31 AM, Alex Harui <ah...@adobe.com.invalid>
>> wrote:
>> 
>>> Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
>>> royale-asjs.
>>> 
>>> I'd recommend running "ant wipe-all" in royale-compiler before running
>>> just "ant" (which now builds everything in royale-compiler).  And in
>>> royale-asjs, run "ant super-clean" before running "ant".
>>> 
>>> HTH,
>>> -Alex
>>> 
>>> On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>>> 
>>>> I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>>>> notice:
>>>> 
>>>> Could not load definitions from resource flexTasks.tasks. It could not be
>>>> found.
>>>> 
>>>> Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>>>> 
>>>> —peter
>>> 
>>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295 <06%2051952295>
>> I. www.ixsoftware.nl
>> 
> 
> 
> 
> -- 
> Ix Multimedia Software
> 
> Jan Luykenstraat 27
> 3521 VB Utrecht
> 
> T. 06-51952295
> I. www.ixsoftware.nl


Re: [Royale-ASJS] flexTasks

Posted by Erik de Bruin <er...@ixsoftware.nl>.
An addition: running
'frameworks/projects/Basic/src/test/royale/flexUnitTests/FlexUnitRoyaleApplication.swf'
starts out with this error: "VerifyError: Error #1014: Class IResponder
could not be found." to then proceed to the error I mentioned earlier...

Thanks,

EdB



On Wed, Nov 8, 2017 at 10:37 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> Having some problems with setup as well...
>
> When I follow the clean and rebuild instructions everything is fine until
> ant on 'royale-asjs' hits an error in one of the apps: "ReferenceError:
> Error #1065: Variable FlexUnitRoyaleApplication is not defined." and the
> build times out.
>
> This is the cli output at the point of failure:
>
> <
> test:
>     [mkdir] Created dir: /Users/erik/Documents/git/royale-asjs/frameworks/
> projects/Basic/src/test/royale/out
>  [flexunit] Validating task attributes ...
>  [flexunit] Generating default values ...
>  [flexunit] Using the following settings for the test run:
>  [flexunit] haltonfailure: [false]
>  [flexunit] headless: [false]
>  [flexunit] display: [99]
>  [flexunit] localTrusted: [true]
>  [flexunit] player: [flash]
>  [flexunit] port: [1024]
>  [flexunit] swf: [/Users/erik/Documents/git/royale-asjs/frameworks/
> projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf]
>  [flexunit] timeout: [90000ms]
>  [flexunit] toDir: [/Users/erik/Documents/git/royale-asjs/frameworks/
> projects/Basic/src/test/royale/out]
>  [flexunit] Setting up server process ...
>  [flexunit] Starting server ...
>  [flexunit] Opening server socket on port [1024].
>  [flexunit] Waiting for client connection ...
>  [flexunit] Entry [/Users/erik/Documents/git/royale-asjs/frameworks/
> projects/Basic/src/test/royale] already available in local trust file at
> [/Users/erik/Library/Preferences/Macromedia/Flash Player/#Security/
> FlashPlayerTrust/flexUnit.cfg].
>  [flexunit] Executing 'open' with arguments:
>  [flexunit] '/Users/erik/Documents/git/royale-asjs/frameworks/
> projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf'
>  [flexunit]
>  [flexunit] The ' characters around the executable and arguments are
>  [flexunit] not part of the command.
>  [flexunit]
>  [flexunit]
>  [flexunit] Stopping server ...
>  [flexunit] End of test data reached, sending acknowledgement to player ...
>  [flexunit] Closing client connection ...
>  [flexunit] Closing server on port [1024] ...
> >
>
> Ideas?
>
> Thanks,
>
> EdB
>
>
>
> On Wed, Nov 8, 2017 at 6:31 AM, Alex Harui <ah...@adobe.com.invalid>
> wrote:
>
>> Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
>> royale-asjs.
>>
>> I'd recommend running "ant wipe-all" in royale-compiler before running
>> just "ant" (which now builds everything in royale-compiler).  And in
>> royale-asjs, run "ant super-clean" before running "ant".
>>
>> HTH,
>> -Alex
>>
>> On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>>
>> >I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>> >notice:
>> >
>> >Could not load definitions from resource flexTasks.tasks. It could not be
>> >found.
>> >
>> >Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>> >
>> >—peter
>>
>>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295 <06%2051952295>
> I. www.ixsoftware.nl
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [Royale-ASJS] flexTasks

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Having some problems with setup as well...

When I follow the clean and rebuild instructions everything is fine until
ant on 'royale-asjs' hits an error in one of the apps: "ReferenceError:
Error #1065: Variable FlexUnitRoyaleApplication is not defined." and the
build times out.

This is the cli output at the point of failure:

<
test:
    [mkdir] Created dir:
/Users/erik/Documents/git/royale-asjs/frameworks/projects/Basic/src/test/royale/out
 [flexunit] Validating task attributes ...
 [flexunit] Generating default values ...
 [flexunit] Using the following settings for the test run:
 [flexunit] haltonfailure: [false]
 [flexunit] headless: [false]
 [flexunit] display: [99]
 [flexunit] localTrusted: [true]
 [flexunit] player: [flash]
 [flexunit] port: [1024]
 [flexunit] swf:
[/Users/erik/Documents/git/royale-asjs/frameworks/projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf]
 [flexunit] timeout: [90000ms]
 [flexunit] toDir:
[/Users/erik/Documents/git/royale-asjs/frameworks/projects/Basic/src/test/royale/out]
 [flexunit] Setting up server process ...
 [flexunit] Starting server ...
 [flexunit] Opening server socket on port [1024].
 [flexunit] Waiting for client connection ...
 [flexunit] Entry
[/Users/erik/Documents/git/royale-asjs/frameworks/projects/Basic/src/test/royale]
already available in local trust file at
[/Users/erik/Library/Preferences/Macromedia/Flash
Player/#Security/FlashPlayerTrust/flexUnit.cfg].
 [flexunit] Executing 'open' with arguments:
 [flexunit]
'/Users/erik/Documents/git/royale-asjs/frameworks/projects/Basic/src/test/royale/FlexUnitRoyaleApplication.swf'
 [flexunit]
 [flexunit] The ' characters around the executable and arguments are
 [flexunit] not part of the command.
 [flexunit]
 [flexunit]
 [flexunit] Stopping server ...
 [flexunit] End of test data reached, sending acknowledgement to player ...
 [flexunit] Closing client connection ...
 [flexunit] Closing server on port [1024] ...
>

Ideas?

Thanks,

EdB



On Wed, Nov 8, 2017 at 6:31 AM, Alex Harui <ah...@adobe.com.invalid> wrote:

> Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
> royale-asjs.
>
> I'd recommend running "ant wipe-all" in royale-compiler before running
> just "ant" (which now builds everything in royale-compiler).  And in
> royale-asjs, run "ant super-clean" before running "ant".
>
> HTH,
> -Alex
>
> On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>
> >I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
> >notice:
> >
> >Could not load definitions from resource flexTasks.tasks. It could not be
> >found.
> >
> >Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
> >
> >—peter
>
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [Royale-ASJS] flexTasks

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Thanks for pushing that.  I had that fix locally and forgot to push it.

-Alex

On 11/7/17, 11:55 PM, "Yishay Weiss" <yi...@hotmail.com> wrote:

>Looks like I was the only one doing ant clean all on royale-asjs. Pushed
>the fix.
>
>
>
>________________________________
>From: Yishay Weiss <yi...@hotmail.com>
>Sent: Wednesday, November 8, 2017 9:18:26 AM
>To: dev@royale.apache.org
>Subject: RE: [Royale-ASJS] flexTasks
>
>After doing that I ran into a problem where the compiler’s main task
>wasn’t found. This change seems to fix it though…
>
>
>
>C:\dev\flexjs\royale-asjs>git diff
>
>diff --git a/build.xml b/build.xml
>
>index e9da17a77..0a9573b66 100644
>
>--- a/build.xml
>
>+++ b/build.xml
>
>@@ -1596,7 +1596,7 @@
>
>             message="This script will now download and compile lots of
>files.  This can take several minutes.   No interaction should be
>required.  Press the enter key to continue."
>
>             />
>
>         <property name="javadoc.zip.uptodate" value="set" /> <!--
>javadoc fails on windows? -->
>
>-        <ant dir="${base.folder.name}/royale-compiler" target="all" />
>
>+        <ant dir="${base.folder.name}/royale-compiler" target="main" />
>
>         <ant dir="${base.folder.name}/royale-typedefs" />
>
>     </target>
>
>
>
>________________________________
>From: Alex Harui <ah...@adobe.com.INVALID>
>Sent: Wednesday, November 8, 2017 7:31:52 AM
>To: dev@royale.apache.org
>Subject: Re: [Royale-ASJS] flexTasks
>
>Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
>royale-asjs.
>
>I'd recommend running "ant wipe-all" in royale-compiler before running
>just "ant" (which now builds everything in royale-compiler).  And in
>royale-asjs, run "ant super-clean" before running "ant".
>
>HTH,
>-Alex
>
>On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>
>>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>>notice:
>>
>>Could not load definitions from resource flexTasks.tasks. It could not be
>>found.
>>
>>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>>
>>—peter
>


RE: [Royale-ASJS] flexTasks

Posted by Yishay Weiss <yi...@hotmail.com>.
Looks like I was the only one doing ant clean all on royale-asjs. Pushed the fix.



________________________________
From: Yishay Weiss <yi...@hotmail.com>
Sent: Wednesday, November 8, 2017 9:18:26 AM
To: dev@royale.apache.org
Subject: RE: [Royale-ASJS] flexTasks

After doing that I ran into a problem where the compiler’s main task wasn’t found. This change seems to fix it though…



C:\dev\flexjs\royale-asjs>git diff

diff --git a/build.xml b/build.xml

index e9da17a77..0a9573b66 100644

--- a/build.xml

+++ b/build.xml

@@ -1596,7 +1596,7 @@

             message="This script will now download and compile lots of files.  This can take several minutes.   No interaction should be required.  Press the enter key to continue."

             />

         <property name="javadoc.zip.uptodate" value="set" /> <!-- javadoc fails on windows? -->

-        <ant dir="${base.folder.name}/royale-compiler" target="all" />

+        <ant dir="${base.folder.name}/royale-compiler" target="main" />

         <ant dir="${base.folder.name}/royale-typedefs" />

     </target>



________________________________
From: Alex Harui <ah...@adobe.com.INVALID>
Sent: Wednesday, November 8, 2017 7:31:52 AM
To: dev@royale.apache.org
Subject: Re: [Royale-ASJS] flexTasks

Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
royale-asjs.

I'd recommend running "ant wipe-all" in royale-compiler before running
just "ant" (which now builds everything in royale-compiler).  And in
royale-asjs, run "ant super-clean" before running "ant".

HTH,
-Alex

On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:

>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>notice:
>
>Could not load definitions from resource flexTasks.tasks. It could not be
>found.
>
>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>
>—peter


RE: [Royale-ASJS] flexTasks

Posted by Yishay Weiss <yi...@hotmail.com>.
After doing that I ran into a problem where the compiler’s main task wasn’t found. This change seems to fix it though…



C:\dev\flexjs\royale-asjs>git diff

diff --git a/build.xml b/build.xml

index e9da17a77..0a9573b66 100644

--- a/build.xml

+++ b/build.xml

@@ -1596,7 +1596,7 @@

             message="This script will now download and compile lots of files.  This can take several minutes.   No interaction should be required.  Press the enter key to continue."

             />

         <property name="javadoc.zip.uptodate" value="set" /> <!-- javadoc fails on windows? -->

-        <ant dir="${base.folder.name}/royale-compiler" target="all" />

+        <ant dir="${base.folder.name}/royale-compiler" target="main" />

         <ant dir="${base.folder.name}/royale-typedefs" />

     </target>



________________________________
From: Alex Harui <ah...@adobe.com.INVALID>
Sent: Wednesday, November 8, 2017 7:31:52 AM
To: dev@royale.apache.org
Subject: Re: [Royale-ASJS] flexTasks

Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
royale-asjs.

I'd recommend running "ant wipe-all" in royale-compiler before running
just "ant" (which now builds everything in royale-compiler).  And in
royale-asjs, run "ant super-clean" before running "ant".

HTH,
-Alex

On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:

>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>notice:
>
>Could not load definitions from resource flexTasks.tasks. It could not be
>found.
>
>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>
>—peter


Re: [Royale-ASJS] flexTasks

Posted by Peter Ent <pe...@adobe.com.INVALID>.
My fault for not setting PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER

compiler builds cleanly now.
thanks.

On 11/8/17, 10:07 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Have you tried setting a FLEX_HOME environment variable? I know it's not
>supposed to be needed anymore, but the past few days have taught me that
>there are dark corners of the framework where it still lurks...
>
>EdB
>
>
>
>On Wed, Nov 8, 2017 at 3:58 PM, Peter Ent <pe...@adobe.com.invalid> wrote:
>
>> I wasn't able to get the compiler to build completely, even disabling
>>the
>> tests:
>>
>> But I was hoping this was far enough along, so I took a chance and built
>> royale-asjs which built without errors after super-clean (BTW, why is it
>> wipe-all for the compiler and super-clean for asks? Be easier to
>>remember
>> if they were the same).
>>
>> typedef.tests:
>>
>> download:
>>
>> prepare:
>>
>> junit-jar-check:
>>
>> junit-jar:
>>
>> main:
>>
>> compile.unit.tests:
>>    [delete] Deleting directory
>> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>>     [mkdir] Created dir:
>> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>>     [javac] Compiling 87 source files to
>> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleAccessors.java:39:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = new
>> JSGoogConfiguration();
>>     [javac]              ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleClass.java:41: warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = new
>> JSGoogConfiguration();
>>     [javac]              ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleExpressions.java:62:
>> warning: [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = config;
>>     [javac]              ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleFile.java:45: warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = new
>> JSGoogConfiguration();
>>     [javac]              ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyalePackage.java:50: warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = config;
>>     [javac]              ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:173:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]
>>                         ((RoyaleJSProject)project).config.
>> setCompilerAllowSubclassOverrides(null
>> , true);
>>     [javac]                      ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:177:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]         project.setTargetSettings(new
>> TargetSettings(((RoyaleJSProject)project).config,
>> (RoyaleJSProject)project));
>>     [javac]                                                       ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:177:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]         project.setTargetSettings(new
>> TargetSettings(((RoyaleJSProject)project).config,
>> (RoyaleJSProject)project));
>>     [javac]
>>                          ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:196:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]
>>                         ((RoyaleJSProject)project).config.
>> setCompilerAllowSubclassOverrides(null
>> , true);
>>     [javac]                      ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:200:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]         project.setTargetSettings(new
>> TargetSettings(((RoyaleJSProject)project).config,
>> (RoyaleJSProject)project));
>>     [javac]                                                       ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:200:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]         project.setTargetSettings(new
>> TargetSettings(((RoyaleJSProject)project).config,
>> (RoyaleJSProject)project));
>>     [javac]
>>                          ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:347:
>>warning:
>> [cast] redundant cast to RoyaleJSProject
>>     [javac]         ((RoyaleJSProject)project).unitTestExterns =
>>externs;
>>     [javac]          ^
>>     [javac]
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
>> java/org/apache/royale
>> 
>>/compiler/internal/codegen/mxml/royale/TestRoyaleMXMLApplication.java:50:
>> warning: [cast] redundant cast to RoyaleJSProject
>>     [javac]             ((RoyaleJSProject)project).config = new
>> JSGoogConfiguration();
>>     [javac]              ^
>>     [javac] 13 warnings
>>
>> extern.tests:
>>     [junit] environment property - FLEX_HOME = null
>>     [junit] environment property - PLAYERGLOBAL_HOME = null
>>     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
>>     [junit] environment property - TLF_HOME = null
>>     [junit] environment property - AIR_HOME = null
>>     [junit] environment property - FLASHPLAYER_DEBUGGER = null
>>     [junit] environment property - ASJS_HOME =
>>/Users/pent/dev/royale-asjs
>>     [junit] environment property - GOOG_HOME = null
>>     [junit] Running
>> org.apache.royale.compiler.internal.codegen.externals.TestAnnotationEnum
>>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>>
>> BUILD FAILED
>> /Users/pent/dev/royale-compiler/build.xml:153: The following error
>> occurred while executing this line:
>> /Users/pent/dev/royale-compiler/compiler-jx/src/test/build.xml:161:
>>Tests
>> failed
>>
>>
>>
>>
>>
>>
>>
>> So then I decided to build DataBindingExample with this result:
>>
>>
>> Buildfile:
>> /Users/pent/dev/royale-asjs/examples/royale/DataBindingExample/build.xml
>>
>> clean:
>>
>> build_example.compile:
>>      [echo] Compiling DataBindingExample.swf
>>      [echo] ROYALE_HOME: /Users/pent/dev/royale-asjs
>>      [echo] ROYALE_COMPILER_HOME: /Users/pent/dev/royale-asjs/js
>>      [echo] GOOG_HOME: /Users/pent/dev/closure-library
>>   [taskdef] Could not load definitions from resource flexTasks.tasks. It
>> could not be found.
>>
>> BUILD FAILED
>> /Users/pent/dev/royale-asjs/examples/build_example.xml:152: Problem:
>> failed to create task or type mxmlc
>> 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.
>>
>>
>>
>> On 11/8/17, 12:31 AM, "Alex Harui" <ah...@adobe.com.INVALID> wrote:
>>
>> >Sync all 3 repos, start with royale-compiler, then royale-typedefs,
>>then
>> >royale-asjs.
>> >
>> >I'd recommend running "ant wipe-all" in royale-compiler before running
>> >just "ant" (which now builds everything in royale-compiler).  And in
>> >royale-asjs, run "ant super-clean" before running "ant".
>> >
>> >HTH,
>> >-Alex
>> >
>> >On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>> >
>> >>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>> >>notice:
>> >>
>> >>Could not load definitions from resource flexTasks.tasks. It could
>>not be
>> >>found.
>> >>
>> >>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>> >>
>> >>‹peter
>> >
>>
>>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. 
>https://na01.safelinks.protection.outlook.com/?url=www.ixsoftware.nl&data=
>02%7C01%7C%7C363413c9706c41b041f908d526ba8eb3%7Cfa7b1b5a7b34438794aed2c178
>decee1%7C0%7C0%7C636457505062127539&sdata=eBcsau%2BLCVIsFjp4HucFQrot8NRJdw
>C1Lwicv0FFGHw%3D&reserved=0


Re: [Royale-ASJS] flexTasks

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Have you tried setting a FLEX_HOME environment variable? I know it's not
supposed to be needed anymore, but the past few days have taught me that
there are dark corners of the framework where it still lurks...

EdB



On Wed, Nov 8, 2017 at 3:58 PM, Peter Ent <pe...@adobe.com.invalid> wrote:

> I wasn't able to get the compiler to build completely, even disabling the
> tests:
>
> But I was hoping this was far enough along, so I took a chance and built
> royale-asjs which built without errors after super-clean (BTW, why is it
> wipe-all for the compiler and super-clean for asks? Be easier to remember
> if they were the same).
>
> typedef.tests:
>
> download:
>
> prepare:
>
> junit-jar-check:
>
> junit-jar:
>
> main:
>
> compile.unit.tests:
>    [delete] Deleting directory
> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>     [mkdir] Created dir:
> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>     [javac] Compiling 87 source files to
> /Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleAccessors.java:39: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = new
> JSGoogConfiguration();
>     [javac]              ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleClass.java:41: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = new
> JSGoogConfiguration();
>     [javac]              ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleExpressions.java:62:
> warning: [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = config;
>     [javac]              ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleFile.java:45: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = new
> JSGoogConfiguration();
>     [javac]              ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyalePackage.java:50: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = config;
>     [javac]              ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:173: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]
>                         ((RoyaleJSProject)project).config.
> setCompilerAllowSubclassOverrides(null
> , true);
>     [javac]                      ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:177: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]         project.setTargetSettings(new
> TargetSettings(((RoyaleJSProject)project).config,
> (RoyaleJSProject)project));
>     [javac]                                                       ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:177: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]         project.setTargetSettings(new
> TargetSettings(((RoyaleJSProject)project).config,
> (RoyaleJSProject)project));
>     [javac]
>                          ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:196: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]
>                         ((RoyaleJSProject)project).config.
> setCompilerAllowSubclassOverrides(null
> , true);
>     [javac]                      ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:200: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]         project.setTargetSettings(new
> TargetSettings(((RoyaleJSProject)project).config,
> (RoyaleJSProject)project));
>     [javac]                                                       ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:200: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]         project.setTargetSettings(new
> TargetSettings(((RoyaleJSProject)project).config,
> (RoyaleJSProject)project));
>     [javac]
>                          ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/js/royale/TestRoyaleProject.java:347: warning:
> [cast] redundant cast to RoyaleJSProject
>     [javac]         ((RoyaleJSProject)project).unitTestExterns = externs;
>     [javac]          ^
>     [javac]
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/
> java/org/apache/royale
> /compiler/internal/codegen/mxml/royale/TestRoyaleMXMLApplication.java:50:
> warning: [cast] redundant cast to RoyaleJSProject
>     [javac]             ((RoyaleJSProject)project).config = new
> JSGoogConfiguration();
>     [javac]              ^
>     [javac] 13 warnings
>
> extern.tests:
>     [junit] environment property - FLEX_HOME = null
>     [junit] environment property - PLAYERGLOBAL_HOME = null
>     [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
>     [junit] environment property - TLF_HOME = null
>     [junit] environment property - AIR_HOME = null
>     [junit] environment property - FLASHPLAYER_DEBUGGER = null
>     [junit] environment property - ASJS_HOME = /Users/pent/dev/royale-asjs
>     [junit] environment property - GOOG_HOME = null
>     [junit] Running
> org.apache.royale.compiler.internal.codegen.externals.TestAnnotationEnum
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>
> BUILD FAILED
> /Users/pent/dev/royale-compiler/build.xml:153: The following error
> occurred while executing this line:
> /Users/pent/dev/royale-compiler/compiler-jx/src/test/build.xml:161: Tests
> failed
>
>
>
>
>
>
>
> So then I decided to build DataBindingExample with this result:
>
>
> Buildfile:
> /Users/pent/dev/royale-asjs/examples/royale/DataBindingExample/build.xml
>
> clean:
>
> build_example.compile:
>      [echo] Compiling DataBindingExample.swf
>      [echo] ROYALE_HOME: /Users/pent/dev/royale-asjs
>      [echo] ROYALE_COMPILER_HOME: /Users/pent/dev/royale-asjs/js
>      [echo] GOOG_HOME: /Users/pent/dev/closure-library
>   [taskdef] Could not load definitions from resource flexTasks.tasks. It
> could not be found.
>
> BUILD FAILED
> /Users/pent/dev/royale-asjs/examples/build_example.xml:152: Problem:
> failed to create task or type mxmlc
> 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.
>
>
>
> On 11/8/17, 12:31 AM, "Alex Harui" <ah...@adobe.com.INVALID> wrote:
>
> >Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
> >royale-asjs.
> >
> >I'd recommend running "ant wipe-all" in royale-compiler before running
> >just "ant" (which now builds everything in royale-compiler).  And in
> >royale-asjs, run "ant super-clean" before running "ant".
> >
> >HTH,
> >-Alex
> >
> >On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
> >
> >>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
> >>notice:
> >>
> >>Could not load definitions from resource flexTasks.tasks. It could not be
> >>found.
> >>
> >>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
> >>
> >>‹peter
> >
>
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [Royale-ASJS] flexTasks

Posted by Peter Ent <pe...@adobe.com.INVALID>.
I wasn't able to get the compiler to build completely, even disabling the
tests:

But I was hoping this was far enough along, so I took a chance and built
royale-asjs which built without errors after super-clean (BTW, why is it
wipe-all for the compiler and super-clean for asks? Be easier to remember
if they were the same).

typedef.tests:

download:

prepare:

junit-jar-check:

junit-jar:

main:

compile.unit.tests:
   [delete] Deleting directory
/Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
    [mkdir] Created dir:
/Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
    [javac] Compiling 87 source files to
/Users/pent/dev/royale-compiler/compiler-jx/target/test-classes
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleAccessors.java:39: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = new
JSGoogConfiguration();
    [javac]     	 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleClass.java:41: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = new
JSGoogConfiguration();
    [javac]     	 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java:62:
warning: [cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = config;
    [javac]     	 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleFile.java:45: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = new
JSGoogConfiguration();
    [javac]     	 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyalePackage.java:50: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = config;
    [javac]     	 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:173: warning:
[cast] redundant cast to RoyaleJSProject
    [javac] 
			((RoyaleJSProject)project).config.setCompilerAllowSubclassOverrides(null
, true);
    [javac] 			 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:177: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]         project.setTargetSettings(new
TargetSettings(((RoyaleJSProject)project).config,
(RoyaleJSProject)project));
    [javac]                                                       ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:177: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]         project.setTargetSettings(new
TargetSettings(((RoyaleJSProject)project).config,
(RoyaleJSProject)project));
    [javac]        
                         ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:196: warning:
[cast] redundant cast to RoyaleJSProject
    [javac] 
			((RoyaleJSProject)project).config.setCompilerAllowSubclassOverrides(null
, true);
    [javac] 			 ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:200: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]         project.setTargetSettings(new
TargetSettings(((RoyaleJSProject)project).config,
(RoyaleJSProject)project));
    [javac]                                                       ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:200: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]         project.setTargetSettings(new
TargetSettings(((RoyaleJSProject)project).config,
(RoyaleJSProject)project));
    [javac]        
                         ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/js/royale/TestRoyaleProject.java:347: warning:
[cast] redundant cast to RoyaleJSProject
    [javac]         ((RoyaleJSProject)project).unitTestExterns = externs;
    [javac]          ^
    [javac] 
/Users/pent/dev/royale-compiler/compiler-jx/src/test/java/org/apache/royale
/compiler/internal/codegen/mxml/royale/TestRoyaleMXMLApplication.java:50:
warning: [cast] redundant cast to RoyaleJSProject
    [javac]     	((RoyaleJSProject)project).config = new
JSGoogConfiguration();
    [javac]     	 ^
    [javac] 13 warnings

extern.tests:
    [junit] environment property - FLEX_HOME = null
    [junit] environment property - PLAYERGLOBAL_HOME = null
    [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
    [junit] environment property - TLF_HOME = null
    [junit] environment property - AIR_HOME = null
    [junit] environment property - FLASHPLAYER_DEBUGGER = null
    [junit] environment property - ASJS_HOME = /Users/pent/dev/royale-asjs
    [junit] environment property - GOOG_HOME = null
    [junit] Running
org.apache.royale.compiler.internal.codegen.externals.TestAnnotationEnum
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

BUILD FAILED
/Users/pent/dev/royale-compiler/build.xml:153: The following error
occurred while executing this line:
/Users/pent/dev/royale-compiler/compiler-jx/src/test/build.xml:161: Tests
failed







So then I decided to build DataBindingExample with this result:


Buildfile: 
/Users/pent/dev/royale-asjs/examples/royale/DataBindingExample/build.xml

clean:

build_example.compile:
     [echo] Compiling DataBindingExample.swf
     [echo] ROYALE_HOME: /Users/pent/dev/royale-asjs
     [echo] ROYALE_COMPILER_HOME: /Users/pent/dev/royale-asjs/js
     [echo] GOOG_HOME: /Users/pent/dev/closure-library
  [taskdef] Could not load definitions from resource flexTasks.tasks. It
could not be found.

BUILD FAILED
/Users/pent/dev/royale-asjs/examples/build_example.xml:152: Problem:
failed to create task or type mxmlc
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.



On 11/8/17, 12:31 AM, "Alex Harui" <ah...@adobe.com.INVALID> wrote:

>Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
>royale-asjs.
>
>I'd recommend running "ant wipe-all" in royale-compiler before running
>just "ant" (which now builds everything in royale-compiler).  And in
>royale-asjs, run "ant super-clean" before running "ant".
>
>HTH,
>-Alex
>
>On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:
>
>>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>>notice:
>>
>>Could not load definitions from resource flexTasks.tasks. It could not be
>>found.
>>
>>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>>
>>‹peter
>


Re: [Royale-ASJS] flexTasks

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Sync all 3 repos, start with royale-compiler, then royale-typedefs, then
royale-asjs.

I'd recommend running "ant wipe-all" in royale-compiler before running
just "ant" (which now builds everything in royale-compiler).  And in
royale-asjs, run "ant super-clean" before running "ant".

HTH,
-Alex

On 11/7/17, 1:34 PM, "Peter Ent" <pe...@adobe.com.INVALID> wrote:

>I sync'd the repo (develop branch) and rebuilt asjs. I'm seeing this
>notice:
>
>Could not load definitions from resource flexTasks.tasks. It could not be
>found.
>
>Wouldn't "flexTasks.tasks" get renamed to "royaleTasks.tasks" ?
>
>—peter