Setting up the development environment
- Pull the project from the mercurial repository
- Download the IntelliJ Plugin development kit. The development kit contains updated plugin examples and a patched version of JFlex.
- Download the JDK 1.5 build of IntelliJ IDEA to build MacOS X compatible plugins on Windows or Linux
- IntelliJ IDEA SDK
- Define a new IntelliJ IDEA SDK and point it to the JDK 1.5 build of IntelliJ IDEA you downloaded and extracted before
- Add the idea.jar from the JDK 1.5 build of IntelliJ IDEA to the newly created IDEA SDK classpath. You will need it for the parser/PSI related classes
- Make sure the path to the META-INF point to //"fan4idea\plugin\src\main\resources"// (fan4idea module --> Plugin deployment)
Setting up the Fan compiler for tests
- Read http://www.fandev.org/doc/docTools/Bootstrap.html for setting up a compiler build environment
- Respect the layout:
- /dev (Whatever root folder for Fan dev)
- /rel (The latest zip distrib of Fan)
- /fan-1.0 (the check out fan sources "hg clone http://hg.fandev.org/repos/fan-1.0"
- /fan4idea (the check out plugin sources "hg clone http://hg.jfrog.org/hg/fan4idea"
- /dev (Whatever root folder for Fan dev)
- ATTENTION: I did a Mac OS setup that uses a more Linux like env, and here are the tricky parts:
- Edit the /dev/rel/lib/sys.props with (don't forget the slash at the end):
- fan.build.devHome=/dev/fan/
- fan.build.jdkHome=/opt/java/1.6.0/
- Create an environment with:
- export FAN_HOME=/dev/fan
- export FAN_SUBSTITUTE=/dev/rel
- Make the build.fan files executables:
- Edit the /dev/rel/lib/sys.props with (don't forget the slash at the end):
Labels: