|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.repoweb.model.file.FileRepository
Represent a maven repository accessed trought file.
Constructor Summary | |
FileRepository(java.io.File root)
|
|
FileRepository(java.lang.String root)
|
Method Summary | |
Artifact |
buildPom(Project project)
Build a new POM in the repository. |
ArtifactList |
findArtifactByClass(java.lang.String fullClassName)
Search Artifacts that contains a class. |
ArtifactList |
findArtifacts(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Search for Artifacts. |
GroupList |
findGroups(java.lang.String pattern)
Search groups that have a groupId that match pattern. |
GroupList |
getAllGroups()
Get alll groups of this repository. |
Artifact |
getArtifact(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Get one Artifact. |
Group |
getGroup(java.lang.String groupId)
Get a group from this repository. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileRepository(java.lang.String root) throws BadRepositoryLocationException
public FileRepository(java.io.File root) throws BadRepositoryLocationException
Method Detail |
public java.lang.String toString()
public Group getGroup(java.lang.String groupId) throws UnknownGroupIdException
Repository
getGroup
in interface Repository
groupId
- group Id.
UnknownGroupIdException
- group Id does not exist in
the repo.public GroupList findGroups(java.lang.String pattern)
Repository
findGroups
in interface Repository
pattern
- pattern for search
public ArtifactList findArtifacts(java.lang.String groupId, java.lang.String typeId, java.lang.String filename)
Repository
findArtifacts
in interface Repository
groupId
- Group Id of the artifact (e.g. 'junit')typeId
- Artifact type (e.g. 'jar')filename
- Artifact file name (e.g. 'junit-3.8.1.jar')
public ArtifactList findArtifactByClass(java.lang.String fullClassName)
Repository
findArtifactByClass
in interface Repository
fullClassName
- full qualified class name
public Artifact buildPom(Project project) throws BuildFailureException
Repository
buildPom
in interface Repository
project
- the bean of the POM.
BuildFailureException
- Failed to build the POM.public Artifact getArtifact(java.lang.String groupId, java.lang.String typeId, java.lang.String filename) throws UnknownArtifactException
Repository
getArtifact
in interface Repository
groupId
- Group Id of the artifact (e.g. 'junit')typeId
- Artifact type (e.g. 'jar')filename
- Artifact file name (e.g. 'junit-3.8.1.jar')
UnknownArtifactException
- artifact do not exist in
the repo.public GroupList getAllGroups()
Repository
getAllGroups
in interface Repository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |