Before dual, the "main" swc was compiled for SWF and contained JS files compiled for JS. The compiler would open Core.swc, for example, see UIBase extended Sprite and think UIBase had a blendMode property, even though the UIBase.js in the SWC didn't have a blendMode property.
Then we built "JS" swcs that were compiled for JS and didn't contain any JS files. They were designed to propagate JS-only APIs to downstream SWCs. So, for example, the compiler opens CoreJS.swc and sees that UIBase has a positioner property. With dual, there is no "main" SWC anymore. The "SWF" SWC is just like the former "main" SWC, but now the JS swc also contains JS files. When compiling for a JS target, the compiler should now be told to open CoreJS.swc instead of Core.swc so it sees that UIBase does not have a blendMode property and report that error at compile time. Now some SWCs will not consume or export platform-specific APIs, so the "SWF" SWC can be the "main" SWC. For backward-compatibility with earlier FlexJS releases, I had originally defaulted -library-path to the SWF SWCs, then I decided to tilt towards JS by setting up flex-config.xml to put the JS swcs on the library-path and put the SWF SWCs on swf-library-path. Maven works the opposite way: no classifier means SWF SWCs, the "js" classifier is for JS SWCs. So, if we go with "addition" instead of "override", I think that means that Maven should have a "swf" classifier as well, so no classifier means a SWC without platform-specific inputs or outputs. But I think the biggest impact is that where folks had been using library-path as a default and js-library-path or swf-library-path as an override will now have to mess with their builds. I guess I'll start coding it up that way and see how much work it is. Thoughts? -Alex On 5/6/17, 8:46 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote: >Seems to me that swf-library-path and js-library-path should be in >addition >to the shared library-path instead of overwriting it. > >- Josh > >On May 6, 2017 8:06 AM, "Alex Harui" <aha...@adobe.com> wrote: > >> It could be that the default libraries may now be specified via >> swf-library-path and js-library-path instead of just -library-path. >>Other >> libraries that are specified via just -library-path are not included >> because swf-library-path and/or js-library-path are considered >>overrides, >> instead of additional platform libraries. Maybe that needs to change. >> >> Try specifying your library on -js-library-path and see if it picks it >>up. >> >> Thoughts? >> -Alex >> >> On 5/6/17, 7:46 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote: >> >> >Hi Alex, >> > >> >Not sure whether it is related, but I have also problem with some >> >additional >> >library. I'm using -library-path. (look into the pom.xml) [1] >> > >> >I'm preparing maven build for PureMVCDemo from Prashant - previously it >> >was >> >working (at least 2 weeks ago) - currently it's failing with [2]. Since >> >project was configured with VSCode I give a shot and try to build it in >> >that >> >way. I just downloaded fresh FlexJS through installer - add paths to >> >VSCode >> >and run build - got exact same results as in Maven. >> > >> >[1] >> >https://na01.safelinks.protection.outlook.com/?url= >> https%3A%2F%2F1drv.ms%2 >> >Fu%2Fs!ApVpLyjpHDC2zVVgcTLtPzyDQ4EC&data=02%7C01%7C% >> 7Cdfc76bb8a0544b45b818 >> >08d49490714d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% >> 7C6362967954844865 >> >51&sdata=aSz1tpq9FfhVZNdIooi9aRDP3eYWf1%2F%2FieRZ2W0VGZY%3D&reserved=0 >> >[2] >> >https://na01.safelinks.protection.outlook.com/?url= >> https%3A%2F%2Fpaste.apa >> >che.org%2F4mpc&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490 >> 714d%7Cfa7b1b >> >5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551& >> sdata=s5msa1lHB9jb >> >o08n8fGnHhYaCJba9bTVPDZwKWf4VvM%3D&reserved=0 >> > >> >Piotr >> > >> > >> > >> > >> >----- >> >Apache Flex PMC >> >piotrzarzyck...@gmail.com >> >-- >> >View this message in context: >> >https://na01.safelinks.protection.outlook.com/?url= >> http%3A%2F%2Fapache-fle >> >x-development.2333347.n4.nabble.com%2Fflexjs-of-new- >> how-use-the-js-swc-tp6 >> >1506p61508.html&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490 >> 714d%7Cfa7b1 >> >b5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551& >> sdata=dEBxLlNpfQa >> >SQoCYdk317pWzaErh%2BtiCTKdkYC8C9mg%3D&reserved=0 >> >Sent from the Apache Flex Development mailing list archive at >>Nabble.com. >> >>