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.
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.)
Ha. thanks Brian. Well, it saved you a trip across the hall. 🙂
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.
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
Are you defined “FLEX_HOME” property?
for example
This property need surely.
<property name=”FLEX_HOME” value=”C:/flex_sdk_2″ />
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.
thanks. your answer.