org.guvnor.m2repo.backend.server
@ApplicationScoped public class GuvnorM2Repository extends Object
Modifier and Type | Field and Description |
---|---|
static String |
M2_REPO_ROOT |
static String |
REPO_ID_RELEASES |
static String |
REPO_ID_SNAPSHOTS |
Constructor and Description |
---|
GuvnorM2Repository() |
Modifier and Type | Method and Description |
---|---|
File |
appendPOMToJar(String pom,
String jarPath,
org.guvnor.common.services.project.model.GAV gav) |
boolean |
deleteFile(String[] fullPaths) |
void |
deployArtifact(org.guvnor.common.services.project.model.GAV gav,
File jarFile,
File pomfile) |
void |
deployArtifact(InputStream inputStream,
org.guvnor.common.services.project.model.GAV gav) |
String |
generatePOM(org.guvnor.common.services.project.model.GAV gav) |
static String |
generatePomProperties(org.guvnor.common.services.project.model.GAV gav) |
String |
getFileName(String path) |
protected String |
getM2RepositoryRootDir() |
String |
getPomPropertiesPath(org.guvnor.common.services.project.model.GAV gav) |
String |
getPomXmlPath(org.guvnor.common.services.project.model.GAV gav) |
String |
getRepositoryURL() |
protected void |
init() |
Collection<File> |
listFiles()
Finds files within the repository with the given filters.
|
Collection<File> |
listFiles(String filters)
Finds files within the repository with the given filters.
|
InputStream |
loadFile(String path) |
static String |
loadPOMFromJar(InputStream jarInputStream) |
static String |
loadPOMFromJar(String jarPath) |
static String |
loadPOMFromJarInternal(File file) |
protected String |
toFileName(org.guvnor.common.services.project.model.GAV gav,
String classifier,
String fileType) |
protected String |
toURL(String repository,
org.guvnor.common.services.project.model.GAV gav,
String classifier) |
public static final String M2_REPO_ROOT
public static final String REPO_ID_SNAPSHOTS
public static final String REPO_ID_RELEASES
@PostConstruct protected void init()
protected String getM2RepositoryRootDir()
public String getRepositoryURL()
public void deployArtifact(InputStream inputStream, org.guvnor.common.services.project.model.GAV gav)
public void deployArtifact(org.guvnor.common.services.project.model.GAV gav, File jarFile, File pomfile)
public boolean deleteFile(String[] fullPaths)
public Collection<File> listFiles()
public Collection<File> listFiles(String filters)
filters
- filter to apply when finding files. The filter is used to create a wildcard matcher, ie., "*fileter*.*", in which "*" is
to represent a multiple wildcard characters.public InputStream loadFile(String path)
public static String loadPOMFromJar(InputStream jarInputStream)
public File appendPOMToJar(String pom, String jarPath, org.guvnor.common.services.project.model.GAV gav)
protected String toURL(String repository, org.guvnor.common.services.project.model.GAV gav, String classifier)
protected String toFileName(org.guvnor.common.services.project.model.GAV gav, String classifier, String fileType)
public String generatePOM(org.guvnor.common.services.project.model.GAV gav)
public static String generatePomProperties(org.guvnor.common.services.project.model.GAV gav)
public String getPomXmlPath(org.guvnor.common.services.project.model.GAV gav)
public String getPomPropertiesPath(org.guvnor.common.services.project.model.GAV gav)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.