
org.primefaces.extensions.optimizerplugin.util.ResourcesSetAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resources-optimizer-maven-plugin Show documentation
Show all versions of resources-optimizer-maven-plugin Show documentation
Maven plugin to compress and merge resources like JavaScript and CSS files.
/*
* Copyright 2011-2015 PrimeFaces Extensions
*
* 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.
*
* $Id$
*/
package org.primefaces.extensions.optimizerplugin.util;
import org.primefaces.extensions.optimizerplugin.model.Aggregation;
import java.io.File;
import java.util.Set;
/**
* Container class containing all needed infos for a resource set.
*
* @author Oleg Varaksin ([email protected])
*/
public abstract class ResourcesSetAdapter {
private File inputDir;
private Set files;
private Aggregation aggregation;
private String encoding;
private boolean failOnWarning;
private String suffix;
public ResourcesSetAdapter(File inputDir, Set files, Aggregation aggregation, String encoding,
boolean failOnWarning, String suffix) {
this.inputDir = inputDir;
this.files = files;
this.aggregation = aggregation;
this.encoding = encoding;
this.failOnWarning = failOnWarning;
this.suffix = suffix;
}
public File getInputDir() {
return inputDir;
}
public Set getFiles() {
return files;
}
public Aggregation getAggregation() {
return aggregation;
}
public String getEncoding() {
return encoding;
}
public boolean isFailOnWarning() {
return failOnWarning;
}
public String getSuffix() {
return suffix;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy