In menu Build, Build Jars you can specify to generate jars. There is also a feature Generate Ant Build. This generates and script with compilation stuff. But the generator is ignoring the Build Jars definitions and they are not generated into ant files. (IDEA 7.0.2)
It would be nice to have them generated.