royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] kennylerma commented on issue #57: Dependency error when extending class and implementing interface from "external" SWC library
Date Sat, 10 Nov 2018 00:45:47 GMT
kennylerma commented on issue #57: Dependency error when extending class and implementing interface
from "external" SWC library
URL: https://github.com/apache/royale-compiler/issues/57#issuecomment-437539707
 
 
   Thanks @aharui.  I have a work-around, but it's not very elegant.  I have a large project
that loads many separate projects from a menu.  It's just like loading SWF files.  Each project
shares the same base classes, so I need to exclude those base classes in each project and
create a separate javascript file to use as the base library for all projects.  This way I
don't load the same classes again and cause conflicts.  I do this by using the --externs argument
for the closure compiler as below in a batch file.  I make a debug build and then use the
closure compiler to combine the js files, but exclude the classes in the extern file.  Perhaps
there could be a way to generate the single js extern file in the compiler when generating
swcs.
   
   ```
   @echo off
   set ARGS=--externs ../../../BaseClasses.js
   set ARGS=%ARGS% --js bin\js-debug\com\test\*.js
   set ARGS=%ARGS% --js bin\js-debug\com\test\test_Main.js
   set ARGS=%ARGS% --dependency_mode=STRICT --entry_point=test_Main
   @echo on
   java -jar %1/js/lib/google/closure-compiler/compiler.jar %ARGS% --compilation_level WHITESPACE_ONLY
--js_output_file=test_Module.js
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message