org.zeroturnaround.jrebel.gradle.model.RebelClasspath Maven / Gradle / Ivy
/**
* Copyright (C) 2012 ZeroTurnaround
*
* 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.zeroturnaround.jrebel.gradle.model;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Classpath configuration.
*/
public class RebelClasspath {
private String fallback;
private List resources;
/**
* Don't add the default classes dir to classpath (the one asked from the project model)
*/
private Boolean omitDefaultClassesDir = false;
/**
* Don't add the default resources dir to classpath (the one asked from the project model)
*/
private Boolean omitDefaultResourcesDir = false;
public RebelClasspath() {
this.resources = new ArrayList();
}
public String getFallback() {
return fallback;
}
public List getResources() {
return resources;
}
public void setFallback(String fallback) {
this.fallback = fallback;
}
public void setResources(List _resources) {
this.resources = _resources;
}
public void addResource(RebelClasspathResource resource) {
this.resources.add(resource);
}
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE);
builder.append("resources", resources);
builder.append("fallback", fallback);
builder.append("omitDefaultClassesDir", omitDefaultClassesDir);
builder.append("omitDefaultResourcesDir", omitDefaultResourcesDir);
return builder.toString();
}
public Boolean isOmitDefaultClassesDir() {
return omitDefaultClassesDir;
}
public void setOmitDefaultClassesDir(Boolean omitDefaultClassesDir) {
this.omitDefaultClassesDir = omitDefaultClassesDir;
}
public Boolean isOmitDefaultResourcesDir() {
return omitDefaultResourcesDir;
}
public void setOmitDefaultResourcesDir(Boolean omitDefaultResourcesDir) {
this.omitDefaultResourcesDir = omitDefaultResourcesDir;
}
}