com.erigir.wrench.drigo.DrigoConfiguration Maven / Gradle / Ivy
Show all versions of wrench-drigo Show documentation
package com.erigir.wrench.drigo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.List;
import java.util.regex.Pattern;
/**
* Copyright 2014 Christopher Weiss
*
* 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.
**/
/**
* A configuration of what Drigo should do to the given set of files
*/
public class DrigoConfiguration {
private static final Logger LOG = LoggerFactory.getLogger(DrigoConfiguration.class);
/**
* The source file/folder to process
*/
private File src;
/**
* The destincation file/folder to write
*/
private File dst;
/**
* If set, the target directory will be deleted and recreated before processing begins
*/
private boolean clearTargetBeforeProcessing = false;
private List addMetadata;
private List htmlResourceBatching;
private Pattern fileCompressionIncludeRegex;
private Pattern cssCompilationIncludeRegex;
private Pattern babelCompilationIncludeRegex;
private JavascriptCompilation javascriptCompilation;
private List validation;
private List renameMappings;
private List exclusions;
private List processIncludes;
public List getProcessIncludes() {
return processIncludes;
}
public void setProcessIncludes(List processIncludes) {
this.processIncludes = processIncludes;
}
public List getAddMetadata() {
return addMetadata;
}
public void setAddMetadata(List addMetadata) {
this.addMetadata = addMetadata;
}
public List getHtmlResourceBatching() {
return htmlResourceBatching;
}
public void setHtmlResourceBatching(List htmlResourceBatching) {
this.htmlResourceBatching = htmlResourceBatching;
}
public Pattern getFileCompressionIncludeRegex() {
return fileCompressionIncludeRegex;
}
public void setFileCompressionIncludeRegex(Pattern fileCompressionIncludeRegex) {
this.fileCompressionIncludeRegex = fileCompressionIncludeRegex;
}
public Pattern getCssCompilationIncludeRegex() {
return cssCompilationIncludeRegex;
}
public void setCssCompilationIncludeRegex(Pattern cssCompilationIncludeRegex) {
this.cssCompilationIncludeRegex = cssCompilationIncludeRegex;
}
public JavascriptCompilation getJavascriptCompilation() {
return javascriptCompilation;
}
public void setJavascriptCompilation(JavascriptCompilation javascriptCompilation) {
this.javascriptCompilation = javascriptCompilation;
}
public List getValidation() {
return validation;
}
public void setValidation(List validation) {
this.validation = validation;
}
public List getRenameMappings() {
return renameMappings;
}
public void setRenameMappings(List renameMappings) {
this.renameMappings = renameMappings;
}
public List getExclusions() {
return exclusions;
}
public void setExclusions(List exclusions) {
this.exclusions = exclusions;
}
public File getSrc() {
return src;
}
public void setSrc(File src) {
this.src = src;
}
public File getDst() {
return dst;
}
public void setDst(File dst) {
this.dst = dst;
}
public boolean isClearTargetBeforeProcessing() {
return clearTargetBeforeProcessing;
}
public void setClearTargetBeforeProcessing(boolean clearTargetBeforeProcessing) {
this.clearTargetBeforeProcessing = clearTargetBeforeProcessing;
}
public Pattern getBabelCompilationIncludeRegex() {
return babelCompilationIncludeRegex;
}
public void setBabelCompilationIncludeRegex(Pattern babelCompilationIncludeRegex) {
this.babelCompilationIncludeRegex = babelCompilationIncludeRegex;
}
}