public ProjectPom createProjectModel(File file) throws Exception { ProjectPom pom = new ProjectPom(this, file); pom.parse(); return pom; }
public Set<Pom> getDependencies(Scope action) throws Exception { return getDependencies(action, repositories.toArray(new URI[0])); }
public String getProperty(String key) { String s = properties.getProperty(key); return replace(s); }
File parentFile = IO.getFile(getPomFile().getParentFile(), "../pom.xml"); String parentPath = xp.evaluate("relativePath", parent).trim(); if (parentPath != null && parentPath.length() != 0) { parentFile = IO.getFile(getPomFile().getParentFile(), parentPath); ProjectPom parentPom = new ProjectPom(maven, parentFile); parentPom.parse(); dependencies.addAll(parentPom.dependencies); for (Enumeration< ? > e = parentPom.properties.propertyNames(); e.hasMoreElements();) { setNames(parentPom); } else { setNames(parentPom);
protected String replace(String in) { System.out.println("Replce: " + in); if ( in == null) { System.out.println("null??"); } Matcher matcher = MACRO.matcher(in); int last = 0; StringBuilder sb = new StringBuilder(); while (matcher.find()) { int n = matcher.start(); sb.append( in, last, n); String replacement = get(matcher.group(2)); if ( replacement == null ) sb.append( matcher.group(1)); else sb.append( replacement ); last = matcher.end(); } if ( last == 0) return in; sb.append( in, last, in.length()); return sb.toString(); }
File parentFile = IO.getFile(getPomFile().getParentFile(), "../pom.xml"); String parentPath = xp.evaluate("relativePath", parent).trim(); if (parentPath != null && parentPath.length() != 0) { parentFile = IO.getFile(getPomFile().getParentFile(), parentPath); ProjectPom parentPom = new ProjectPom(maven, parentFile); parentPom.parse(); dependencies.addAll(parentPom.dependencies); for (Enumeration< ? > e = parentPom.properties.propertyNames(); e.hasMoreElements();) { setNames(parentPom); } else { setNames(parentPom);
@Override protected String replace(String in) { System.err.println("Replce: " + in); if (in == null) { System.err.println("null??"); in = "<<???>>"; } Matcher matcher = MACRO.matcher(in); int last = 0; StringBuilder sb = new StringBuilder(); while (matcher.find()) { int n = matcher.start(); sb.append(in, last, n); String replacement = get(matcher.group(2)); if (replacement == null) sb.append(matcher.group(1)); else sb.append(replacement); last = matcher.end(); } if (last == 0) return in; sb.append(in, last, in.length()); return sb.toString(); }
File parentFile = IO.getFile(getPomFile().getParentFile(), "../pom.xml"); String parentPath = xp.evaluate("relativePath", parent).trim(); if (parentPath != null && parentPath.length()!=0) { parentFile = IO.getFile(getPomFile().getParentFile(), parentPath); ProjectPom parentPom = new ProjectPom(maven, parentFile); parentPom.parse(); dependencies.addAll(parentPom.dependencies); for ( Enumeration<?> e = parentPom.properties.propertyNames(); e.hasMoreElements(); ) { setNames(parentPom); } else { setNames(parentPom);
public ProjectPom createProjectModel(File file) throws Exception { ProjectPom pom = new ProjectPom(this, file); pom.parse(); return pom; }
public Set<Pom> getDependencies(Scope action) throws Exception { return getDependencies(action, repositories.toArray(new URI[0])); }
public String getProperty(String key) { String s = properties.getProperty(key); return replace(s); }
@Override protected String replace(String in) { System.err.println("Replce: " + in); if (in == null) { System.err.println("null??"); in = "<<???>>"; } Matcher matcher = MACRO.matcher(in); int last = 0; StringBuilder sb = new StringBuilder(); while (matcher.find()) { int n = matcher.start(); sb.append(in, last, n); String replacement = get(matcher.group(2)); if (replacement == null) sb.append(matcher.group(1)); else sb.append(replacement); last = matcher.end(); } if (last == 0) return in; sb.append(in, last, in.length()); return sb.toString(); }
File parentFile = IO.getFile(getPomFile().getParentFile(), "../pom.xml"); .trim(); if (parentPath != null && parentPath.length() != 0) { parentFile = IO.getFile(getPomFile().getParentFile(), parentPath); ProjectPom parentPom = new ProjectPom(maven, parentFile); parentPom.parse(); dependencies.addAll(parentPom.dependencies); for (Enumeration<?> e = parentPom.properties.propertyNames(); e.hasMoreElements();) { setNames(parentPom); } else { setNames(parentPom);
public ProjectPom createProjectModel(File file) throws Exception { ProjectPom pom = new ProjectPom(this, file); pom.parse(); return pom; }
public Set<Pom> getDependencies(Scope action) throws Exception { return getDependencies(action, repositories.toArray(new URI[0])); }
public String getProperty(String key) { String s = properties.getProperty(key); return replace(s); }
@Override protected String replace(String in) { System.err.println("Replce: " + in); if (in == null) { System.err.println("null??"); in = "<<???>>"; } Matcher matcher = MACRO.matcher(in); int last = 0; StringBuilder sb = new StringBuilder(); while (matcher.find()) { int n = matcher.start(); sb.append(in, last, n); String replacement = get(matcher.group(2)); if (replacement == null) sb.append(matcher.group(1)); else sb.append(replacement); last = matcher.end(); } if (last == 0) return in; sb.append(in, last, in.length()); return sb.toString(); }
File parentFile = IO.getFile(getPomFile().getParentFile(), "../pom.xml"); .trim(); if (parentPath != null && parentPath.length() != 0) { parentFile = IO.getFile(getPomFile().getParentFile(), parentPath); ProjectPom parentPom = new ProjectPom(maven, parentFile); parentPom.parse(); dependencies.addAll(parentPom.dependencies); for (Enumeration<?> e = parentPom.properties.propertyNames(); e.hasMoreElements();) { setNames(parentPom); } else { setNames(parentPom);
public ProjectPom createProjectModel(File file) throws Exception { ProjectPom pom = new ProjectPom(this, file); pom.parse(); return pom; }
public Set<Pom> getDependencies(Scope action) throws Exception { return getDependencies(action, repositories.toArray(new URI[0])); }