Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you 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.jasig.maven.plugin.sass;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import org.apache.commons.io.FilenameUtils;
import org.apache.maven.model.FileSet;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.logging.Log;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
/**
* Base for batching SASS Mojos.
*
*/
public abstract class AbstractSassMojo extends AbstractMojo {
/**
* Sources for compilation with their destination directory containing SASS files. Allows
* for multiple resource sources and destinations. If specified it precludes the direct
* specification of sassSourceDirectory/relativeOutputDirectory/destination parameters.
*
* Example configuration
*
*
* @parameter
*/
protected List resources;
/**
* Defines paths where jruby will look for gems. E.g. a maven build could download
* gems into ${project.build.directory}/rubygems and a gemPath pointed to this
* directory. Finally, individual gems can be loaded via the <gems> configuration.
*
* @parameter default-value="${project.build.directory}/rubygems"
*/
protected String[] gemPaths = new String[0];
/**
* Defines gems to be loaded before Sass/Compass. This is useful to add gems
* with custom Sass functions or stylesheets. Gems that hook into Compass
* are transparently added to Sass' load_path.
*
* @parameter
*/
protected String[] gems = new String[0];
/**
* Build directory for the plugin.
*
* @parameter expression="${buildDirectory}" default-value="${project.build.directory}"
*/
protected File buildDirectory;
/**
* Fail the build if errors occur during compilation of sass/scss templates.
*
* @parameter default-value="true"
*/
protected boolean failOnError;
/**
* Defines options for Sass::Plugin.options. See
* {@link http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options }
* If the value is a string it must by quoted in the maven configuration:
* <cache_location>'/tmp/sass'</cache_location>
* If no options are set the default configuration set is used which is:
*
*