Skip to main content
Participant
January 8, 2010
質問

mxmlc shell script update

  • January 8, 2010
  • 返信数 1.
  • 592 ビュー

Hey, first time playing around with flex i stumbled over a hickup in the mxmlc shell script undex linux.

I could not symlink to the mxmlc script to simplify setting up multiple versions/environment.

The flex SDK I am using is 3.4.1 build 10084.


I modified the shell script to lookup the java binary using JAVA_HOME instead of relying on PATH, and setup the automatic path resolution to resolve absolute url's using readlink.

I also decided to use exec to make sure that file descriptors and signals where directly passed to the executed java process.

I am sure that it isn't perfect, there might be some issues about finding JAVA_BIN under cygwin, but I sure would like to se symlinks resolved properly upstream.

Hope this is useful!

このトピックへの返信は締め切られました。

返信数 1

udoprog作成者
Participant
January 12, 2010

Just encountered a problem, the first readlink must be: 'readlink -f $path' in unices, since readlink (only) just gives you the symbolic link, which would be relative to the actual file.

Fix attached here.