Has anyone successfully used the new Flex Ant Tasks?

I’ve set up a project exactly per the directions:

http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks

Yet, I always get “Command not found: mxmlc”.

Oddly enough, the compc target works fine, so I’m pretty sure I have things set up right, and I’ve had others check out my build file and it seems ok. I even re-downloaded the jar to make sure I didn’t have a corrupted file. No luck.

Is this just broken? If someone can verify that they have it working, I’ll keep at it.

This entry was posted in Flash. Bookmark the permalink.

8 Responses to Has anyone successfully used the new Flex Ant Tasks?

  1. Brian Deitte says:

    I noticed this mentioned on the discussion page as a problem when using OS X:

    http://labs.adobe.com/wiki/index.php/Talk:Flex_Ant_Tasks

    (You ask me in person and I answer on your blog. A bit amusing.)

  2. kp says:

    Ha. thanks Brian. Well, it saved you a trip across the hall. 🙂

  3. kp says:

    Well, I’m on XP, not OSX, but I made sure my java_home env variable was set correctly, and added the flex 2 sdk path to my path (the base path, lib, and bin dirs, just to make sure I covered all bases). No joy.

    Good to know about the discussion pages though.

  4. Bjorn says:

    Yeah i got the answer.
    The instructions don’t work.

    Constantiner from Farata Systems hooked me up with a working example.
    http://www.riapriority.com/flex/samples/flex_ant_test.zip

    Once i omitted the classpath attribute from the taskdef tag it worked.

    Regards,

    Bjorn

  5. mylee says:

    Are you defined “FLEX_HOME” property?

    for example

    This property need surely.

  6. mylee says:

    <property name=”FLEX_HOME” value=”C:/flex_sdk_2″ />

  7. To clarify–it appears that the FLEX_HOME property is hardcoded somewhere in the task implementation itself. Even if all your paths are correct, using, say, something like $(flex-sdk.dir}, you’ll get the “command not found” error. So, apparently the FLEX_HOME property must be set exactly as shown.

  8. kim kwang hyoun says:

    thanks. your answer.

Leave a Reply