Package org.rodnansol.core.project
Class ProjectFactory
- java.lang.Object
-
- org.rodnansol.core.project.ProjectFactory
-
public class ProjectFactory extends Object
Class acting as a factory for the different project types.- Since:
- 0.1.0
- Author:
- nandorholozsnyak
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GradleProjectofGradleProject(File basedir, String name)Creates aGradleProjectinstance with a basedir and the module's name.static GradleProjectofGradleProject(File basedir, String name, List<String> modules)Creates aGradleProjectinstance with a basedir and the module's name with modules.static MavenProjectofMavenProject(File basedir, String name)Creates aMavenProjectinstance with a basedir and the module's name.static MavenProjectofMavenProject(File basedir, String name, List<String> modules)Creates aMavenProjectinstance with a basedir and the module's name with modules.static SimpleProjectofSimpleProject(File basedir, String name)Creates aSimpleProjectinstance with a basedir and the module's name.static ProjectofType(File basedir, String name, ProjectType projectType)Creates aProjectinstance with a basedir and the module's name based on the incoming project type.static ProjectofTypeWithModules(File basedir, String name, List<String> modules, ProjectType projectType)Creates aProjectinstance with a basedir and the module's name based and modules on the incoming project type.
-
-
-
Method Detail
-
ofMavenProject
public static MavenProject ofMavenProject(File basedir, String name)
Creates aMavenProjectinstance with a basedir and the module's name.- Parameters:
basedir- base directory for the project.name- name of the project.- Returns:
- created
MavenProjectinstance.
-
ofMavenProject
public static MavenProject ofMavenProject(File basedir, String name, List<String> modules)
Creates aMavenProjectinstance with a basedir and the module's name with modules.- Parameters:
basedir- base directory for the project.name- name of the project.modules- module list.- Returns:
- created
MavenProjectinstance.
-
ofGradleProject
public static GradleProject ofGradleProject(File basedir, String name)
Creates aGradleProjectinstance with a basedir and the module's name.- Parameters:
basedir- base directory for the project.name- name of the project.- Returns:
- created
GradleProjectinstance.
-
ofGradleProject
public static GradleProject ofGradleProject(File basedir, String name, List<String> modules)
Creates aGradleProjectinstance with a basedir and the module's name with modules.- Parameters:
basedir- base directory for the project.name- name of the project.modules- module list.- Returns:
- created
GradleProjectinstance.
-
ofSimpleProject
public static SimpleProject ofSimpleProject(File basedir, String name)
Creates aSimpleProjectinstance with a basedir and the module's name.- Parameters:
basedir- base directory for the project.name- name of the project.- Returns:
- created
SimpleProjectinstance.
-
ofType
public static Project ofType(File basedir, String name, ProjectType projectType)
Creates aProjectinstance with a basedir and the module's name based on the incoming project type.- Parameters:
basedir- base directory for the project.name- name of the project.- Returns:
- proper
Projectsubclass instance.
-
ofTypeWithModules
public static Project ofTypeWithModules(File basedir, String name, List<String> modules, ProjectType projectType)
Creates aProjectinstance with a basedir and the module's name based and modules on the incoming project type.- Parameters:
basedir- base directory for the project.name- name of the project.modules- module list.- Returns:
- proper
Projectsubclass instance.
-
-