com.atlassian.jira.web.less
Class LessTransformer

java.lang.Object
  extended by com.atlassian.jira.web.less.LessTransformer
All Implemented Interfaces:
com.atlassian.plugin.webresource.transformer.WebResourceTransformer

public class LessTransformer
extends Object
implements com.atlassian.plugin.webresource.transformer.WebResourceTransformer

Transforms .less files into .css files, see http://lesscss.org/ This uses URIs to refer to files, and uses there schemes: plugin://PLUGINKEY/path webstatic:path dynamic:special since webstatic: and dynamic: don't use "//" (slash-slash), uri.getPath() doesn't attempt to look for a "host".

Since:
v4.3

Nested Class Summary
static class LessTransformer.DependencyTracker
           
 class LessTransformer.LessResource
           
static class LessTransformer.URLUptodateCheck
           
 
Constructor Summary
LessTransformer(ApplicationProperties applicationProperties, com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, JiraProperties jiraSystemProperties)
           
 
Method Summary
 com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element element, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String extrapath, com.atlassian.plugin.servlet.DownloadableResource downloadableResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LessTransformer

public LessTransformer(ApplicationProperties applicationProperties,
                       com.atlassian.plugin.servlet.ServletContextFactory servletContextFactory,
                       com.atlassian.plugin.PluginAccessor pluginAccessor,
                       com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration,
                       JiraProperties jiraSystemProperties)
                throws IOException
Throws:
IOException
Method Detail

transform

public com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element element,
                                                                   com.atlassian.plugin.elements.ResourceLocation resourceLocation,
                                                                   String extrapath,
                                                                   com.atlassian.plugin.servlet.DownloadableResource downloadableResource)
Specified by:
transform in interface com.atlassian.plugin.webresource.transformer.WebResourceTransformer


Copyright © 2002-2013 Atlassian. All Rights Reserved.