|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.dotnet.dao.ProjectFactory
public final class ProjectFactory
Class for creating Project/ProjectDependency objects.
Constructor Summary | |
---|---|
ProjectFactory()
|
Method Summary | |
---|---|
static org.apache.maven.artifact.Artifact |
createArtifactFrom(Project project,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
java.io.File localRepository)
Creates an artifact using information from the specified project. |
static org.apache.maven.artifact.Artifact |
createArtifactFrom(ProjectDependency projectDependency,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
Creates an artifact using information from the specified project dependency. |
static org.apache.maven.model.Dependency |
createDependencyFrom(ProjectDependency projectDependency)
Creates a dependency using information from the specified project dependency. |
static org.apache.maven.model.Model |
createModelFrom(Project project)
Creates model from the specified project. |
static ProjectDependency |
createProjectDependencyFrom(org.apache.maven.model.Dependency dependency)
Creates a project dependency using information from the specified dependency. |
static Project |
createProjectFrom(org.apache.maven.model.Model model,
java.io.File pomFileDirectory)
Creates a project using information from the specified model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectFactory()
Method Detail |
---|
public static org.apache.maven.model.Model createModelFrom(Project project) throws java.io.IOException
project
- the project to create the model from.
java.io.IOException
- if there was a problem creating the modelpublic static Project createProjectFrom(org.apache.maven.model.Model model, java.io.File pomFileDirectory) throws java.io.IOException
model
- the project object model used to create the project.pomFileDirectory
- the directory containing the pom.xml (model).
java.io.IOException
- if there was a problem creating the projectpublic static ProjectDependency createProjectDependencyFrom(org.apache.maven.model.Dependency dependency)
dependency
- a dependency to use as the source of the returned project dependency
public static org.apache.maven.model.Dependency createDependencyFrom(ProjectDependency projectDependency)
projectDependency
- a project dependency to use as the source of the returned dependency
public static org.apache.maven.artifact.Artifact createArtifactFrom(Project project, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, java.io.File localRepository)
project
- a project to use as the source of the returned artifactartifactFactory
- artifact factory used to create the artifactlocalRepository
- the local repository
public static org.apache.maven.artifact.Artifact createArtifactFrom(ProjectDependency projectDependency, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
projectDependency
- a project dependency to use as the source of the returned artifactartifactFactory
- artifact factory used to create the artifact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |