public CachedPom getPom(String groupId, String artifactId, String version, URI... extra) throws Exception { MavenEntry entry = getEntry(groupId, artifactId, version); return entry.getPom(extra); }
public Pom getPom() throws Exception { return maven.getPom(groupId, artifactId, version); }
/** * @param groupId * @param artifactId * @param version * @param extra * @return * @throws Exception */ public MavenEntry getEntry(String groupId, String artifactId, String version) throws Exception { String path = path(groupId, artifactId, version); MavenEntry entry; synchronized (entries) { entry = entries.get(path); if (entry != null) return entry; entry = new MavenEntry(this, path); entries.put(path, entry); } return entry; }
/** * The user selected pom in a path. This will place the pom as well as its * dependencies on the list * * @param strategyx the strategy to use. * @param result The list of result containers * @throws Exception anything goes wrong */ public void doMavenPom(Strategy strategyx, List<Container> result, String action) throws Exception { File pomFile = getFile("pom.xml"); if (!pomFile.isFile()) msgs.MissingPom(); else { ProjectPom pom = getWorkspace().getMaven() .createProjectModel(pomFile); if (action == null) action = "compile"; Pom.Scope act = Pom.Scope.valueOf(action); Set<Pom> dependencies = pom.getDependencies(act); for (Pom sub : dependencies) { File artifact = sub.getArtifact(); Container container = new Container(artifact, null); result.add(container); } } }
/** * @param groupId * @param artifactId * @param version * @throws Exception */ public MavenEntry getEntry(String groupId, String artifactId, String version) throws Exception { String path = dirpath(groupId, artifactId, version); MavenEntry entry; synchronized (entries) { entry = entries.get(path); if (entry != null) return entry; entry = new MavenEntry(this, path); entries.put(path, entry); } return entry; }
/** * The user selected pom in a path. This will place the pom as well as its * dependencies on the list * * @param strategyx the strategy to use. * @param result The list of result containers * @throws Exception anything goes wrong */ public void doMavenPom(Strategy strategyx, List<Container> result, String action) throws Exception { File pomFile = getFile("pom.xml"); if (!pomFile.isFile()) msgs.MissingPom(); else { ProjectPom pom = getWorkspace().getMaven() .createProjectModel(pomFile); if (action == null) action = "compile"; Pom.Scope act = Pom.Scope.valueOf(action); Set<Pom> dependencies = pom.getDependencies(act); for (Pom sub : dependencies) { File artifact = sub.getArtifact(); Container container = new Container(artifact, null); result.add(container); } } }
/** * @param groupId * @param artifactId * @param version * @throws Exception */ public MavenEntry getEntry(String groupId, String artifactId, String version) throws Exception { String path = dirpath(groupId, artifactId, version); MavenEntry entry; synchronized (entries) { entry = entries.get(path); if (entry != null) return entry; entry = new MavenEntry(this, path); entries.put(path, entry); } return entry; }
public Pom getPom() throws Exception { return maven.getPom(groupId, artifactId, version); }
public CachedPom getPom(String groupId, String artifactId, String version, URI... extra) throws Exception { MavenEntry entry = getEntry(groupId, artifactId, version); return entry.getPom(extra); }
/** * The user selected pom in a path. This will place the pom as well as its * dependencies on the list * * @param strategyx * the strategy to use. * @param result * The list of result containers * @param attrs * The attributes * @throws Exception * anything goes wrong */ public void doMavenPom(Strategy strategyx, List<Container> result, String action) throws Exception { File pomFile = getFile("pom.xml"); if (!pomFile.isFile()) msgs.MissingPom(); else { ProjectPom pom = getWorkspace().getMaven().createProjectModel(pomFile); if (action == null) action = "compile"; Pom.Scope act = Pom.Scope.valueOf(action); Set<Pom> dependencies = pom.getDependencies(act); for (Pom sub : dependencies) { File artifact = sub.getArtifact(); Container container = new Container(artifact, null); result.add(container); } } }
/** * @param groupId * @param artifactId * @param version * @param extra * @return * @throws Exception */ public MavenEntry getEntry(String groupId, String artifactId, String version) throws Exception { String path = path(groupId, artifactId, version); MavenEntry entry; synchronized (entries) { entry = entries.get(path); if (entry != null) return entry; entry = new MavenEntry(this, path); entries.put(path, entry); } return entry; }
public Pom getPom() throws Exception { return maven.getPom(groupId, artifactId, version); } @Override
public CachedPom getPom(String groupId, String artifactId, String version, URI... extra) throws Exception { MavenEntry entry = getEntry(groupId, artifactId, version); return entry.getPom(extra); }
/** * The user selected pom in a path. This will place the pom as well as its * dependencies on the list * * @param strategyx * the strategy to use. * @param result * The list of result containers * @param attrs * The attributes * @throws Exception * anything goes wrong */ public void doMavenPom(Strategy strategyx, List<Container> result, String action) throws Exception { File pomFile = getFile("pom.xml"); if (!pomFile.isFile()) msgs.MissingPom(); else { ProjectPom pom = getWorkspace().getMaven().createProjectModel(pomFile); if (action == null) action = "compile"; Pom.Scope act = Pom.Scope.valueOf(action); Set<Pom> dependencies = pom.getDependencies(act); for (Pom sub : dependencies) { File artifact = sub.getArtifact(); Container container = new Container(artifact, null); result.add(container); } } }
/** * @param groupId * @param artifactId * @param version * @param extra * @return * @throws Exception */ public MavenEntry getEntry(String groupId, String artifactId, String version) throws Exception { String path = path(groupId, artifactId, version); MavenEntry entry; synchronized (entries) { entry = entries.get(path); if (entry != null) return entry; entry = new MavenEntry(this, path); entries.put(path, entry); } return entry; }
public Pom getPom() throws Exception { return maven.getPom(groupId, artifactId, version); }