Auto Recompile Flex

When I'm working on a Flex project I want to just save and then go to my browser and hit reload.  But a regular Flex project in IntelliJ doesn't seem to support this.  I can't find a way to automatically recompile the project on save.  Any ideas?

4 comments
Comment actions Permalink

Autocompilation on save or on frame deactivation is not implemented in IDEA neither in Flex nor in any other language. I'm not sure that this is very useful option for Flex because compilation usually takes minutes (for projects that are bigger than HelloWorld, of course). Automatic compilation triggering could falsely affect overall computer performance whereas pressing Ctrl+F9 when you need to make project is very quick and easy thing.
One more trick if you upload compiled swf on server and then launch Flex run configuration with URL. It is possible to configure project so that pressing Ctrl+F10 compiles project and updates already deployed application. More information here (and my last 2 comments there): http://blogs.jetbrains.com/idea/2009/10/update-a-running-javaee-application/

0
Comment actions Permalink

Hello James,

When I'm working on a Flex project I want to just save and then go to
my browser and hit reload.  But a regular Flex project in IntelliJ
doesn't seem to support this.  I can't find a way to automatically
recompile the project on save.  Any ideas?


In IntelliJ IDEA, files are saved automatically, and compilation is invoked
manually. You can reassign the Ctrl-S key to perform compilation for you,
if you find this convenient. :)

You can also try the Eclipse Mode plugin: http://plugins.intellij.net/plugin/?idea&id=3822

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I remapped Ctrl-S.  Works great!  Thanks!

BTW: Doesn't IntelliJ use the Flex Compiler Shell which I think does incremental compilation?  If so then compiling on each save should be fairly fast.

0
Comment actions Permalink

File | Settings | Compiler | Flex Compiler page allows to choose what tool to use for Flex compilation. By default it is fcsh.

0

Please sign in to leave a comment.