org.schmant.plugin.intellij.java
Class IntelliJJavaModuleCreatorPlugin
java.lang.Object
org.schmant.plugin.intellij.java.IntelliJJavaModuleCreatorPlugin
- All Implemented Interfaces:
- Plugin, IntelliJModuleCreatorPlugin
public class IntelliJJavaModuleCreatorPlugin
- extends Object
- implements IntelliJModuleCreatorPlugin
This implementation of the IntelliJModuleCreatorPlugin
knows how to
create Java modules.
- Since:
- 0.8
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntelliJJavaModuleCreatorPlugin
public IntelliJJavaModuleCreatorPlugin()
createImlFileParser
protected ImlFileParser createImlFileParser()
- This method is called by this object's constructor to create a
ImlFileParser
instance. It can be overridden by subclasses to
create another ImlFileParser
implementation.
- Returns:
- An
ImlFileParserImpl
createModule
public Project createModule(IntelliJWorkspace wos,
DirectoryView moduleDir,
NamedReadableFile imlFile,
Map<String,List<JavaProjectClasspathEntry>> projectLibs,
IntelliJWorkspaceSettings settings)
throws IOException
- This method delegates to this object's
ImlFileParser
to create
the Project
.
- Specified by:
createModule
in interface IntelliJModuleCreatorPlugin
- Parameters:
wos
- The workspace object.moduleDir
- The module root directory. Not locked when this method
is called unless locked by the build script.imlFile
- The .iml
file. Not locked when this method is
called unless locked by the build script.projectLibs
- The project libraries. May be null
settings
- Workspace settings. May be null
.
- Returns:
- A project, if the plugin was able to create one from the provided
information, otherwise
null
. If this method returns null
,
the caller will go on and try to use the next registered plugin to create
a project.
- Throws:
IOException
- On I/O errors.