Project Creation from an ant BUILD.XML

Is there a way to configure IDEA to look at the root build.xml for a project, and to create the entire project skeleton from this? A properly constructed build.xml will contain all the relevant information regarding classpaths, etc. to create a project. There is to real reason to require that a developer go and add all of this information via the IDEA interface, as nice as it is.

2 comments

Hello ToddG,

Is there a way to configure IDEA to look at the root build.xml for a
project, and to create the entire project skeleton from this? A
properly constructed build.xml will contain all the relevant
information regarding classpaths, etc. to create a project. There is
to real reason to require that a developer go and add all of this
information via the IDEA interface, as nice as it is.


There is no such way because there is no standard structure of Ant build
files. While the information may be there, it can be structured in whatever
weird form, and there is no easy way to map it to an IntelliJ IDEA project
structure.

Maven files, on the other hand, are much better structured, so we're going
to allow storing classpath configuration in Maven POM files in the next version
of IntelliJ IDEA.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Dmitry Jemerov wrote on 24/04/07 20:23:

There is no such way because there is no standard structure of Ant build
files. While the information may be there, it can be structured in
whatever weird form, and there is no easy way to map it to an IntelliJ
IDEA project structure.


One way of doing a basic job would be to convert 's into relevant idea library definitions, and take any src attribute of ]]> as a
source path. Beyond that there wouldn't be much you could probably extract.

I suppose you could take the dest attribute of javac as an output path
thou..

0

Please sign in to leave a comment.