Compiling a Flex project

Hi, I have used FlexBuilder for several years but would love to use IntelliJ for my flex projects. I have set up a flex library project in IntelliJ 8.1.2, and when I try to compile I get this error:

"Error: nothing was specified to be included in the library"

In FlexBuilder there is a way to explicitly select which classes should be included in the compiled library. I'm sure there's a way to do this in IntelliJ too, I'm just not seeing it. Any ideas?

4 comments
Comment actions Permalink

All *.mxml and *.as files from source roots of your Flex module are automatically added to the compiled library. Please make sure that source folder(s) are configured correctly at Project Structure (Ctrl+Alt+Shift+S) | Modules | Sources

0
Comment actions Permalink

Thanks, but I believe I have included my flex source. Attached is a screenshot ....



Attachment(s):
intellij1.JPG
0
Comment actions Permalink

Module content roots and source folders are different things in IDEA. Now you have only content root configured. Just select c:\wami\Flex20\Common\src folder in the tree and press 'Sources' button with blue folder-icon. By the way module usually contains not only sources but also some auxiliary files. So module content root is usually not the same as source folder. Before choosing source folder I recommend you to remove your current content root (c:\wami\Flex20\Common\src), add c:\wami\Flex20\Common as content root; then mark folder c:\wami\Flex20\Common\src as a source folder.

0
Comment actions Permalink

Thank you! That solved the problem.

0

Please sign in to leave a comment.