I want to generate a build.xml file for my XText projects to create the jars for them. I tried to do it by File -> Export -> Generate Ant Build files. When I try to run this command to produce build.xml, I get a cycle detection saying "There is a build cycle in the source ...." and the cycle is src -> src-gen -> src. Ant buildfile will not compile your source until this is fixed.
I read about creating a file called customBuildCallbacks.xml in the grammar plug-in to resolve the src -> src-gen -> src cyclic dependency issue (http://www.eclipse.org/forums/index.php/t/198855), but not sure how to use it. If I use the customBuildCallbacks.xml then should I be generating Ant script using File -> Export -> Generate Ant Build files or PDE Tools -> Create Ant Build File?
What is way out to get rid of src -> src-gen -> src cycle and generate the build.xml for XText projects?