public void setInstallations(MavenInstallation... installations) { List<MavenInstallation> tmpList = new ArrayList<Maven.MavenInstallation>(); // remote empty Maven installation : if(installations != null) { Collections.addAll(tmpList, installations); for(MavenInstallation installation : installations) { if(Util.fixEmptyAndTrim(installation.getName()) == null) { tmpList.remove(installation); } } } this.installations = tmpList.toArray(new MavenInstallation[tmpList.size()]); save(); }
@Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final MavenInstallation that = (MavenInstallation) o; if (getHome() != null ? !getHome().equals(that.getHome()) : that.getHome() != null) return false; if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false; return true; }
public MavenInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException { return new MavenInstallation(getName(), translateFor(node, log), getProperties().toList()); }
public MavenInstallation forEnvironment(EnvVars environment) { return new MavenInstallation(getName(), environment.expand(getHome()), getProperties().toList()); }
public MavenInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException { return new MavenInstallation(getName(), translateFor(node, log), getProperties().toList()); }
public void setInstallations(MavenInstallation... installations) { List<MavenInstallation> tmpList = new ArrayList<Maven.MavenInstallation>(); // remote empty Maven installation : if(installations != null) { Collections.addAll(tmpList, installations); for(MavenInstallation installation : installations) { if(Util.fixEmptyAndTrim(installation.getName()) == null) { tmpList.remove(installation); } } } this.installations = tmpList.toArray(new MavenInstallation[tmpList.size()]); save(); }
public MavenInstallation forEnvironment(EnvVars environment) { return new MavenInstallation(getName(), environment.expand(getHome()), getProperties().toList()); }
public MavenBuildInfoDeployer(BuildInfoAwareConfigurator configurator, ArtifactoryBuildInfoClient client, MavenModuleSetBuild build, TaskListener listener) throws IOException, InterruptedException { super(configurator, build, listener, client); this.configurator = configurator; buildInfo = createBuildInfo("Maven", build.getParent().getMaven().getName(), BuildType.MAVEN); gatherModuleAndDependencyInfo(build); }
private Maven.MavenInstallation getMaven() { Maven.MavenInstallation[] installations = getDescriptor().getInstallations(); for (Maven.MavenInstallation i : installations) { if (mavenName != null && mavenName.equals(i.getName())) { return i; } } return null; }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }
/** * Gets the Maven to invoke, or null to invoke the default one. */ public MavenInstallation getMaven() { for (MavenInstallation i : getDescriptor().getInstallations()) { if (mavenName != null && mavenName.equals(i.getName())) { return i; } } return null; }
@Restricted(NoExternalUse.class) // Only for UI calls public ListBoxModel doFillMavenItems() { ListBoxModel r = new ListBoxModel(); r.add("--- Use system default Maven ---",null); for (MavenInstallation installation : getMavenDescriptor().getInstallations()) { r.add(installation.getName()); } return r; }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }
/** * Gets the Maven to invoke. * If null, we pick any random Maven installation. */ public MavenInstallation getMaven() { for( MavenInstallation i : DESCRIPTOR.getMavenDescriptor().getInstallations() ) { if(mavenName==null || i.getName().equals(mavenName)) return i; } return null; }
public MavenInstallation forNode(Node node, TaskListener log) throws IOException, InterruptedException { return new MavenInstallation(getName(), translateFor(node, log), getProperties().toList()); }
public MavenInstallation forEnvironment(EnvVars environment) { return new MavenInstallation(getName(), environment.expand(getHome()), getProperties().toList()); }
/** * Gets the Maven to invoke, * or null to invoke the default one. */ public MavenInstallation getMaven() { for( MavenInstallation i : getDescriptor().getInstallations() ) { if(mavenName !=null && mavenName.equals(i.getName())) return i; } return null; }