
org.codehaus.mevenide.netbeans.execute.BeanRunConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nb-project Show documentation
Show all versions of nb-project Show documentation
Implementation of a Netbeans project backed by Maven2 POM files.
The newest version!
/* ==========================================================================
* Copyright 2005 Mevenide Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =========================================================================
*/
package org.codehaus.mevenide.netbeans.execute;
import org.codehaus.mevenide.netbeans.api.execute.RunConfig;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
import org.codehaus.mevenide.netbeans.NbMavenProject;
import org.codehaus.mevenide.netbeans.options.MavenExecutionSettings;
/**
*
* @author mkleint
*/
public class BeanRunConfig implements RunConfig {
private File executionDirectory;
private NbMavenProject project;
private List goals;
private String executionName;
private Properties properties = new Properties();
private boolean showDebug = MavenExecutionSettings.getDefault().isShowDebug();
private boolean showError = MavenExecutionSettings.getDefault().isShowErrors();
private Boolean offline;
private List activate = new ArrayList();
private boolean updateSnapshots = false;
private boolean recursive = true;
private String taskName;
private boolean interactive = true;
/** Creates a new instance of BeanRunConfig */
public BeanRunConfig() {
}
public File getExecutionDirectory() {
return executionDirectory;
}
public void setExecutionDirectory(File executionDirectory) {
this.executionDirectory = executionDirectory;
}
public NbMavenProject getProject() {
return project;
}
public void setProject(NbMavenProject project) {
this.project = project;
}
public List getGoals() {
return goals;
}
public void setGoals(List goals) {
this.goals = goals;
}
public String getExecutionName() {
return executionName;
}
public void setExecutionName(String executionName) {
this.executionName = executionName;
}
public Properties getProperties() {
Properties newProperties=new Properties();
newProperties.putAll(properties);
return newProperties;
}
public String removeProperty(String key) {
return (String) properties.remove(key);
}
public String setProperty(String key, String value) {
return (String) properties.setProperty(key, value);
}
public void setProperties(Properties properties) {
this.properties.clear();
this.properties.putAll(properties);
}
public boolean isShowDebug() {
return showDebug;
}
public void setShowDebug(boolean showDebug) {
this.showDebug = showDebug;
}
public boolean isShowError() {
return showError;
}
public void setShowError(boolean showError) {
this.showError = showError;
}
public Boolean isOffline() {
return offline;
}
public void setOffline(Boolean offline) {
this.offline = offline;
}
public List getActivatedProfiles() {
return Collections.unmodifiableList(activate);
}
public void setActivatedProfiles(List activeteProfiles) {
activate = new ArrayList();
activate.addAll(activeteProfiles);
}
public boolean isRecursive() {
return recursive;
}
public void setRecursive(boolean rec) {
recursive = rec;
}
public boolean isUpdateSnapshots() {
return updateSnapshots;
}
public void setUpdateSnapshots(boolean set) {
updateSnapshots = set;
}
public String getTaskDisplayName() {
return taskName;
}
public void setTaskDisplayName(String name) {
taskName = name;
}
public boolean isInteractive() {
return interactive;
}
public void setInteractive(boolean ia) {
interactive = ia;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy