com.lonelystorm.air.asset.services.impl.SassCompilerImpl.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of air-asset Show documentation
Show all versions of air-asset Show documentation
The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.
???? 3 ? 8com/lonelystorm/air/asset/services/impl/SassCompilerImpl java/lang/Object +com/lonelystorm/air/asset/services/Compiler SassCompilerImpl.java ,Lorg/apache/felix/scr/annotations/Component; *Lorg/apache/felix/scr/annotations/Service; :com/lonelystorm/air/asset/services/impl/SassCompilerImpl$1
2com/lonelystorm/air/util/EscalatedResolver$Session *com/lonelystorm/air/util/EscalatedResolver Session resourceResolverFactory 7Lorg/apache/sling/api/resource/ResourceResolverFactory; ,Lorg/apache/felix/scr/annotations/Reference; bundle Lorg/osgi/framework/Bundle; container -Lorg/jruby/embed/osgi/OSGiScriptingContainer; ()V
this :Lcom/lonelystorm/air/asset/services/impl/SassCompilerImpl; activate 0(Lorg/osgi/service/component/ComponentContext;)V +Lorg/apache/felix/scr/annotations/Activate; +org/osgi/service/component/ComponentContext ! getBundleContext $()Lorg/osgi/framework/BundleContext; # $ " % org/osgi/framework/BundleContext ' getBundle ()Lorg/osgi/framework/Bundle; ) * ( + - +org/jruby/embed/osgi/OSGiScriptingContainer / !org/jruby/embed/LocalContextScope 1 SINGLETHREAD #Lorg/jruby/embed/LocalContextScope; 3 4 2 5 %org/jruby/embed/LocalVariableBehavior 7
PERSISTENT 'Lorg/jruby/embed/LocalVariableBehavior; 9 : 8 ; h(Lorg/osgi/framework/Bundle;Lorg/jruby/embed/LocalContextScope;Lorg/jruby/embed/LocalVariableBehavior;)V =
0 > @ getLoadPaths ()Ljava/util/List; B C
0 D gems/sass-3.4.5/lib F java/util/List H add (Ljava/lang/Object;)Z J K I L setLoadPaths (Ljava/util/List;)V N O
0 P $service R put 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; T U
0 V scripts/setup.rb X runScriptlet A(Lorg/osgi/framework/Bundle;Ljava/lang/String;)Ljava/lang/Object; Z [
0 \ context -Lorg/osgi/service/component/ComponentContext; paths $Ljava/util/List; Ljava/util/List; java/lang/Throwable c compile `(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; $library g $content i $filename k java/lang/StringBuilder m
n &com/lonelystorm/air/asset/models/Asset p getPath ()Ljava/lang/String; r s
q t append -(Ljava/lang/String;)Ljava/lang/StringBuilder; v w
n x
/sass.scss z toString | s
n }
$loadPaths ()[Ljava/lang/String; B ?
q ? scripts/compile.rb ? result ? get &(Ljava/lang/String;)Ljava/lang/Object; ? ?
0 ?
} library (Lcom/lonelystorm/air/asset/models/Asset; file Ljava/lang/String; source java/lang/String ? supports =(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;)Z #org/apache/commons/io/FilenameUtils ? getBaseName &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? getExtension ? ?
? ? _ ?
startsWith (Ljava/lang/String;)Z ? ?
? ? scss ? equals ? K
? ? sass ? filename extension include N(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;)Ljava/lang/String; r ?
? ? /%s/_%s.scss/jcr:content ? format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? normalize '(Ljava/lang/String;Z)Ljava/lang/String; ? ?
? ? ? getClass ()Ljava/lang/Class; ? ?
? K(Lorg/apache/sling/api/resource/ResourceResolverFactory;Ljava/lang/Class;)V ?
? O(Lcom/lonelystorm/air/asset/services/impl/SassCompilerImpl;Ljava/lang/String;)V ?
? doSession H(Lcom/lonelystorm/air/util/EscalatedResolver$Session;)Ljava/lang/Object; ? ?
? path normalizedPath escalated ,Lcom/lonelystorm/air/util/EscalatedResolver; bindResourceResolverFactory :(Lorg/apache/sling/api/resource/ResourceResolverFactory;)V unbindResourceResolverFactory RuntimeInvisibleAnnotations Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses $jacocoInit ()[Z ? ?
? [Z ? $jacocoData ? ? ?ޠ;?]0=? ,org/jacoco/agent/rt/internal_e6e56f0/Offline ? getProbes (JLjava/lang/String;I)[Z ? ?
? ? ! ? B ? ? ? ? 7
? ?L*? +T? ? ? ! ? z? ?M*+? & ? , ? .*? 0Y*? .? 6?