Create a new Ant-based project on disk.
It will initially be only minimally configured - just a skeleton project.xml .
It will be marked as modified.
In order to fill in various details of it, call normal methods on the returned
helper object, then save the project when you are done.
(You can use
ProjectManager to find the project object to be saved.)
No build-impl.xml will be created immediately; once you save the project
changes, it will be created. If you wish to create a top-level build.xml
use
GeneratedFilesHelper.generateBuildScriptFromStylesheet after
(or while) saving the project.
Acquires write access. But you are advised to acquire a write lock for
the entire operation of creating, configuring, and saving the new project,
and creating its initial build.xml .
Parameters: directory - the main project directory to create it in(see AntProjectHelper.getProjectDirectory) Parameters: type - a unique project type identifier (see AntBasedProjectType.getType) an associated helper object throws: IOException - if there is a problem physically creating the project throws: IllegalArgumentException - if the project type does not match a registeredAnt-based project type factory or if the directoryis already recognized as some kind of project or if thenew project on disk is recognized by some other factory |