Sunday, July 23, 2006

Flex 2 Compiler (mxmlc) on OS X - No Spaces in Filenames

The Mac version of mxmlc that ships with the Flex 2 SDK does not support spaces in filenames, or so it seems. This is inconvenient to say the least, since the default name of your hard drive on OS X systems is "Macintosh HD". If you have a space in your filename, mxmlc can't find the file - it thinks that the full path to the file is the part after the last space. I'm presently seeking a workaround, but no amount of escape sequences or quotes seems to help.

Was this post helpful to you? If so, please consider making a small donation to keep this blog going.

4 Comments:

Anonymous Anonymous said...

bin\mxmlc is just a sh script, so you can look at it and edit it. That's probably where the bug is. Looking at it right now, I'd suggest changing the VMARGS line in the file to have quotes around FLEX_HOME (ie, '$FLEX_HOME').

6:34 PM  
Anonymous Anonymous said...

you could just cd into the directory where your .as file is located then reference it just using its name, Ive been developing using Flex 2 on the mac for many months with complete success in this fashion.

1:40 AM  
Blogger tom said...

Thanks for the tip Brian! I'm not a shell scripter by any stretch of the imagination, but I was able to get this working by modifying the last line in the file from:

java $VMARGS -jar $FLEX_HOME/lib/mxmlc.jar $*

to:

java $VMARGS -jar $FLEX_HOME/lib/mxmlc.jar "$*"

7:15 PM  
Anonymous Anonymous said...

ガレージ
中京競馬場
ペニス増大
まつげエクステ講習
夫 浮気
妻浮気
ストーカー 調査
体験入店銀座
結婚式二次会
アダルトグッズ
フェイシャル 麻布十番
英語 勉強
税理士 東京
電報
結婚式
まつげエクステ
カップリングパーティー
素行調査
興信所
興信所
高収入 アルバイト
高収入 アルバイト
競馬予想
電話占い
カップリングパーティー
結婚式 ウェルカムボード
株式情報

8:11 AM  

Post a Comment

<< Home