public static RealPom getInstalledPomOfGroupBundles(File projectFile) throws IOException { RealPom pom = getPom(projectFile); pom.setIsInstalled(true); // save time.... pom.groupId = BUNDLES_GROUP_ID; return pom; }
public Pom getPom(DependencyPomBundle dependency) throws IOException { String dependencyArtifactId = dependency.getArtifactId(); String moduleName = (isEclipseProject()) ? dependencyArtifactId : StringHandler.concat(dependencyArtifactId, BUNDLE_SUFFIX); File bundlesFolder = getBundlesFolder(this.projectFile); File module = new File(bundlesFolder, moduleName); File dependencyProjectFile = new File(module, RealPom.POM_FILE); RealPom pom = RealPom.getPom(dependencyProjectFile); pom.setEclipseProject(isEclipseProject()); pom.setIsInstalled(isInstalled()); return pom; }
public String getCurrentVersion() { if (this.currentVersion == null) { this.currentVersion = getRoot().getTextTrim(CURRENT_VERSION); // sometimes a version is not set if (this.currentVersion == null) { this.currentVersion = ""; } this.snapshot = RealPom.isSnapshot(this.currentVersion); if (this.snapshot) { this.currentVersion = StringHandler.remove(this.currentVersion, SNAPSHOT); this.currentVersion = StringHandler.remove(this.currentVersion, "-"); } } return this.currentVersion; }