public void run() { try { int c = in.read(); while (c >= 0) { if (trace) System.out.print((char) c); sb.append((char) c); c = in.read(); } } catch (Exception e) { try { sb.append("\n**************************************\n"); sb.append(e.toString()); sb.append("\n**************************************\n"); } catch (IOException e1) { } if (reporter != null) { reporter.trace("cmd exec: %s", e); } } } }
public File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter).getPlugins(BsnToMavenPath.class); if ( plugins.isEmpty()) plugins.add(this); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
File file = new File(dir, fName); reporter.trace("Updating " + file.getAbsolutePath()); if (!file.exists() || file.lastModified() < jar.lastModified()) { jar.write(file); } else { reporter.progress("Did not update " + jar + " because repo has a newer version"); reporter.trace("NOT Updating " + fName + " (repo is newer)");
public File[] get(String bsn, String version) throws Exception { VersionRange range = new VersionRange("0"); if (version != null) range = new VersionRange(version); List<BsnToMavenPath> plugins = ((Processor) reporter) .getPlugins(BsnToMavenPath.class); for (BsnToMavenPath cvr : plugins) { String[] paths = cvr.getGroupAndArtifact(bsn); if (paths != null) { File[] files = find(paths[0], paths[1], range); if (files != null) return files; } } reporter.trace("Cannot find in maven: %s-%s", bsn, version); return null; }
public void finish() { set(COMPONENT_MULTIPLE, multiple); set(COMPONENT_DYNAMIC, dynamic); set(COMPONENT_OPTIONAL, optional); set(COMPONENT_IMPLEMENTATION, clazz.getFQN(), "<>"); set(COMPONENT_PROPERTIES, properties); if (version != null) { set(COMPONENT_VERSION, version, "<>"); reporter.trace("Component %s is v1.1", map); } set(COMPONENT_DESCRIPTORS, descriptors); }