Skip to content

IntelliJ IDEA

tomasz-oponowicz edited this page Sep 3, 2014 · 2 revisions

IntelliJ IDEA (tested with 12 version)

Gradle

Prerequisites
  • gradle is installed;
  • IntelliJ IDEA is installed;
Instructions
  1. Create Flash Builder project files using gradle:

     $ cd <project_workspace>
     $ gradle flashbuilder
     $ gradle exportDependencies
    
  2. Import project:

    1. Click File/Import Project menu;

    2. Choose project workspace;

    3. Click Ok button;

    4. Select Import project from external model option;

    5. Select Flash Builder option;

    6. Click Next button;

    7. Click Finish button;

    8. Add new Flex SDK located at ~/.gradle/gradleFx/sdks/<hash>;

    9. Name new Flex SDK as Flex SDK 4.12.0;

    10. Click Ok button;

  3. Fix project settings:

    1. Click File/Project Structure... menu;

    2. Go to Project section;

    3. In Project SDK field, select Flex SDK 4.12.0;

    4. Go to Modules/DashPlugin/General section;

    5. In field Output file name type dashas.swf;

    6. In field Output folder type <workspace>/site/demo/debug;

    7. Disable Use HTML wrapper option;

    8. Click Ok button;

  4. Add dependencies:

    1. Click File/Project Structure... menu;

    2. Go to Modules/DashPlugin/Dependencies section;

    3. Click Add/New library... button;

    4. Select all *.swc files from <workspace>/lib directory;

    5. Change Linkage of all new libraries to Test;

    6. Click Ok button;

  5. Fix debug configuration:

    1. Click Run/Edit configuration menu;

    2. Remove all configurations;

    3. Add new Flash Remote Debug configuration;

    4. In Build configuration field, select DashPlugin;

    5. Click Ok button;

  6. Add test runner:

    1. Click Run/Edit configuration menu;

    2. Add new FlexUnit configuration;

    3. In Build configuration field, select DashPlugin;

    4. In Test field, select All in Package;

    5. In Launch with field, select Flash Player (please check if a path to the Flash Player Debugger is correct);

    6. Click Ok button;

Clone this wiki locally