Compiling a Flex project
Has any one been successful in compiling a flex project from within IDEA, not using Ant?
In the console, I end up with:
com.jetbrains.intellij[54505]: OUT:Adobe Flex Compiler SHell (fcsh)
com.jetbrains.intellij[54505]: Version 3.1.0 build 2710
com.jetbrains.intellij[54505]: Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
com.jetbrains.intellij[54505]: OUT:
com.jetbrains.intellij[54505]: OUT:(fcsh)
com.jetbrains.intellij[54505]: IN:mxmlc -load-config+=null -output=/Users/osi/Sites/es4/LobbyDemo.swf
com.jetbrains.intellij[54505]: OUT:fcsh: Assigned 1 as the compile target id
com.jetbrains.intellij[54505]: OUT:
com.jetbrains.intellij[54505]: OUT:Loading configuration file /Users/osi/code/flex_sdk_3/frameworks/flex-config.xml
com.jetbrains.intellij[54505]: OUT:(fcsh)
com.jetbrains.intellij[54505]: ERR:command line: Error: unable to open 'null'
com.jetbrains.intellij[54505]: IN:compile 1
com.jetbrains.intellij[54505]: OUT:fcsh: Target 1 not found
com.jetbrains.intellij[54505]: (fcsh)
com.jetbrains.intellij[54505]: IN:clear 1
com.jetbrains.intellij[54505]: OUT:fcsh: Target 1 not found
com.jetbrains.intellij[54505]: OUT:
com.jetbrains.intellij[54505]: (fcsh)
I have defined a compiler configuration file in the settings pane, but it does not appear to be used.
请先登录再写评论。
Hi,
Do you have your flex compiler config out of project base dir?
peter royal wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I generated a flex compiler config via:
mxmlc -dump-config
if my project basedir was 'foo', the config was 'foo/foo-config.xm'
in the configuration pane, however, the fully-qualified path to the config was there.. it wasn't a relative pathname.
(really, when compiling an application, the compiler configuration should ideally be optional. to compile from the command-line all i need is:
mxmlc -output /Users/osi/Sites/foo/foo.swf src/Foo.mxml
)
It is ok to have fully qualified config name in settings.
However, due to flex compiler shell limitation with fully qualified
pathes I need to pass relative path to flex config (and null indicates
there is no relative path from project base directory)
As to optionality of flex compiler config, I agree with you, it will be
that way.
peter royal wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
aha! that might be it.. my directory structure is:
- project-root
- something
-- flex stuff
so relative to the project root, its ../something/flex stuff
however, the module root for the flex module is 'flex stuff', so it is safely relative to that.
Edited by: peter royal on Oct 17, 2008 12:35 PM