My first case of success… or something like that!

This weekend I work on my first case of success to flex-mojos…

But, what can I compile?

I decide as first challenger compile this little project:
http://opensource.adobe.com/svn/opensource/flex/sdk/

Was a great experience. First, I did a normal user compilation. Download cygwin, ant and did what Adobe’s site saw me to do. In the end I got this:

BUILD SUCCESSFULTotal time: 1 minute 44 seconds

So I start to work.

First I create a main mojo and try to compile framework.swc….
One shot, two shots, ten shots, some plugin refactor, some java.lang.OutOfMemoryError: Java heap space and gotcha, I did, got my first framework-3.0-SNAPSHOT.swc and release second alpha on plugin repository.

Them, main mojo starts to get modules, framework + locales, rpc, airframework…
All done. Time to run a full flex SDK’s compilation, now with maven.

[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESSFUL[INFO] ————————————————————————[INFO] Total time: 46 seconds[INFO] Finished at: Sat Mar 22 13:40:35 BRT 2008[INFO] Final Memory: 29M/381M[INFO] ————————————————————————

Same machine.
Same conditions.
Half time.
And no cygwin is required.

I like those results =D

Moved by this, I open this issue on adobe bugs database, suggesting the flex-mojos as an option to windows users.

But, I found something disturbing. The digest codes generate by maven are not equals to digest codes generate by ant. I don’t like this.

I try those SWCs and works fine. Why this difference?

Wanna see with your own eyes? Apply this patch.

VELO

3 Responses to “My first case of success… or something like that!”

  1. I’m intrigued…

    Are you using the new Java Compiler API just released with Flex 3? How close is this to being usable in the real world?

  2. I had trouble getting the patch file to work.

    flexsdk logan$ patch -p0 < flex-sdk-maven-support.patch
    patching file frameworks/projects/airframework/bundles/en_US/pom.xml
    patch: **** write error : No such file or directory

    I also notice you are using the flex sdk swcs as maven dependencies, unlike Israfil that just points to the installed SDK directory.

    Is there a specific win using the repo for those as opposed to pointing the the SDK?

  3. Hi,

    Jeremy,

    Yes, I’m using Flex Oem Compiler. http://livedocs.adobe.com/flex/3/compilerAPI_flex3.pdf

    Looks very stable. I had compile several projects, and no problems for now.

    And the best, is fast, very fast.

    Logan,

    I create this patch using eclipse patch feature.

    You are using some native tool for linux, right? Is this tool available to windows or cygwin?

    Can you post me the command syntax to generate a patch using it?

    VELO

Discussion Area - Leave a Comment