Production vs debug builds

Does IntelliJ support multiple build configures for projects? I'd like to have debug builds for development vs productions builds and even QA builds. How do people usually handle this?

In a previous life I used this type of functionality in Visual C++ to give you an idea where I am coming from. On previous Java projects we started with an ANT build and then moved to IntelliJ. On my current project I started with IntelliJ and decided to forgo the pain of maintaining a separate ANT build.

5 comments

How do people usually handle this?


We use IDEA for development. Production build is done by command line using ANT.

0

How do people usually handle this?


We use IDEA for development. Production build is done
by command line using ANT.


Are you using the ANT files generated by IDEA or are you maintaining separate ones?

0

We use own ANT build files, because
1) we use them since ages (IDEA can generate them only since a short time),
2) we need features which IDEA does not support (e.g. obfuscation, different
release bundles, ...).

0

2) we need features which IDEA does not support (e.g. obfuscation, different release bundles, ...).


Another option is to include the generated file into the "main" build file. Generated file will handle compilation with respect to
module structure of your project (very useful if the project consists of lots of modules), and the "main" file will take care of
deployment issues.


--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

I've been looking for answers to the same question but haven't found much info; insights into how other people handle this would be very useful.

I'm building an EJB app and for integration testing I need to bootstrap an embedded ejb container which requires different configuration files to the production build. I can do this with Ant but I'd like to be able to run my TestNG tests via the IDE.

So would I have to set up the project environment for testing and then use Ant for the production build process, substituting the test configuration files with the production ones? Or is there some way to have separate build configurations in IDEA?

0

Please sign in to leave a comment.