On 5/18/16, 8:06 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:
>Hi, > >so I implemented this functionality. There is now a plugin goal that goes >through the dependencies of the current module and creates >manifest/namespace files for each uri it finds and automatically adds >this to the compiler configuration. With this in place I got most of the >examples to compile. I will definitely need some more tweaking, cause I >haven't managed to get a single example to run in the Flashplayer (I am >getting the following error for all of them: VerifyError: Error #1079: >Native methods are not allowed in loaded code.) But at least the compiler >seems to be producing not-empty SWF files. > >The cool thing is, with the current auto-generating of configuration the >complete build config for an example is as simple as this: > ><project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > > <parent> > <groupId>org.apache.flex.flexjs.examples</groupId> > <artifactId>examples-flexjs</artifactId> > <version>0.7.0-SNAPSHOT</version> > </parent> > > <artifactId>DesktopMap</artifactId> > <version>0.7.0-SNAPSHOT</version> > <packaging>swf</packaging> > > <build> > <plugins> > <plugin> > <groupId>org.apache.flex.flexjs.compiler</groupId> > <artifactId>flexjs-maven-plugin</artifactId> > <version>0.7.0-SNAPSHOT</version> > <extensions>true</extensions> > <configuration> > <mainClass>DesktopMap.mxml</mainClass> > </configuration> > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>org.apache.flex.flexjs.framework</groupId> > <artifactId>GoogleMaps</artifactId> > <version>0.7.0-SNAPSHOT</version> > <type>swc</type> > </dependency> > </dependencies> > ></project> > >No hand-written config files are needed. I think this will make a lot of >things a lot easier in the future ... especially for new people. OK, I still worry about how to handle some project in the future that needs to be a bit different, but I guess we'll deal with that when we have a real case. > >I did have to comment out some modules as I was getting the following >errors: > >Ambiguous "MouseEvent" in: >- FlexJSStore >- FlexJSStore_jquery >- FlexWebsiteStatsViewer > >Ambiguous reference to IDataInput: >- StorageExample > >Implicit coercion of a value with static type Event to a possibly >unrelated type Event. in: >- MobileTrader Feels like the set of SWCs still isn't quite right. > >But I think we're looking better every day. Can just keep my fingers >crossed, that my customers will keep postponing project starts so I will >have another few days to work on this full-time :-) Thanks for working on it. -Alex