All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lonelystorm.air.asset.services.impl.SassCompilerImpl.class Maven / Gradle / Ivy

Go to download

The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.

The newest version!
????3x8com/lonelystorm/air/asset/services/impl/SassCompilerImpljava/lang/Object+com/lonelystorm/air/asset/services/CompilerSassCompilerImpl.java,Lorg/apache/felix/scr/annotations/Component;*Lorg/apache/felix/scr/annotations/Service;FILE_FORMATS[Ljava/lang/String;fileResolver1Lcom/lonelystorm/air/asset/services/FileResolver;,Lorg/apache/felix/scr/annotations/Reference;libraryResolver4Lcom/lonelystorm/air/asset/services/LibraryResolver;bundleLorg/osgi/framework/Bundle;	container-Lorg/jruby/embed/osgi/OSGiScriptingContainer;receiverLjava/lang/Object;()V
this:Lcom/lonelystorm/air/asset/services/impl/SassCompilerImpl;activate0(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/LocalContextScope0
CONCURRENT#Lorg/jruby/embed/LocalContextScope;23	14%org/jruby/embed/LocalVariableBehavior6	TRANSIENT'Lorg/jruby/embed/LocalVariableBehavior;89	7:h(Lorg/osgi/framework/Bundle;Lorg/jruby/embed/LocalContextScope;Lorg/jruby/embed/LocalVariableBehavior;)V<
/=	?getLoadPaths()Ljava/util/List;AB
/Cgems/sass-3.4.5/libEjava/util/ListGadd(Ljava/lang/Object;)ZIJHKsetLoadPaths(Ljava/util/List;)VMN
/O$serviceQput8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;ST
/Uscripts/setup.rbWrunScriptletA(Lorg/osgi/framework/Bundle;Ljava/lang/String;)Ljava/lang/Object;YZ
/[	]context-Lorg/osgi/service/component/ComponentContext;paths$Ljava/util/List;Ljava/util/List;compile`(Lcom/lonelystorm/air/asset/models/Asset;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;6com/lonelystorm/air/asset/exceptions/CompilerExceptionf%org/jruby/embed/InvokeFailedExceptionhd&com/lonelystorm/air/asset/models/Assetk()[Ljava/lang/String;Am
ln
callMethodK(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;pq
/rjava/lang/StringtgetCause()Ljava/lang/Throwable;vw
ix#org/jruby/exceptions/RaiseExceptionzgetException()Lorg/jruby/RubyException;|}
{~
getMessage()Ljava/lang/String;??
i?sass_backtrace_str?org/jruby/RubyException?;(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;p?
??%org/jruby/runtime/builtin/IRubyObject?asJavaString????cause^(Ljava/lang/String;Ljava/lang/String;)Lcom/lonelystorm/air/asset/exceptions/CompilerException;??
?*(Ljava/lang/String;Ljava/lang/Throwable;)V?
g?re%Lorg/jruby/exceptions/RaiseException;exLorg/jruby/RubyException;messageLjava/lang/String;	backtracee'Lorg/jruby/embed/InvokeFailedException;library(Lcom/lonelystorm/air/asset/models/Asset;filesourcesupports=(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??
u?scss?equals?J
u?sass?filename	extensioninclude8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;%s/%s?/?#org/apache/commons/lang/StringUtils?removeStart??
??format9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
u?getPathNoEndSeparator??
??getName??
??
	?
	?/com/lonelystorm/air/asset/services/FileResolver?exists????load????java/lang/StringBuilder?
?	?2com/lonelystorm/air/asset/services/LibraryResolver?findLibrariesByCategory$(Ljava/lang/String;)Ljava/util/List;????iterator()Ljava/util/Iterator;??H?java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????-com/lonelystorm/air/asset/models/AssetLibrary?
getSources()Ljava/util/Set;??
??
java/util/Set?????

@import '%s';append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
?length()I	

?toString
?
?sources#Ljava/util/Set;Ljava/util/Set;/Lcom/lonelystorm/air/asset/models/AssetLibrary;	directorylocationfilesLjava/lang/StringBuilder;	librariesALjava/util/List;
split9(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
?java/util/ArrayList!
"(on|from) line ([0-9]+) of (.+)$java/util/regex/Pattern&-(Ljava/lang/String;)Ljava/util/regex/Pattern;d(
')trim+?
?,matcher3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;./
'0java/util/regex/Matcher2matches4?
35group(I)Ljava/lang/String;78
39java/lang/Integer;parseInt(Ljava/lang/String;)I=>
<?java/lang/StackTraceElementASassCompilerC:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)VE
BF(Ljava/lang/String;)VH
gIsizeK
HLtoArray(([Ljava/lang/Object;)[Ljava/lang/Object;NOHP[Ljava/lang/StackTraceElement;R
setStackTrace!([Ljava/lang/StackTraceElement;)VTU
gV
lineNumberIelementLjava/lang/StackTraceElement;lineLjava/util/regex/Matcher;ilineselements/Ljava/util/List;patternLjava/util/regex/Pattern;8Lcom/lonelystorm/air/asset/exceptions/CompilerException;/%s/_%s.scss/jcr:contentf/%s/%s.scss/jcr:contenthbindFileResolver4(Lcom/lonelystorm/air/asset/services/FileResolver;)VunbindFileResolverbindLibraryResolver7(Lcom/lonelystorm/air/asset/services/LibraryResolver;)VunbindLibraryResolverRuntimeInvisibleAnnotationsCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable
Exceptions
SourceFile!

ppBBq/*??rs)q?Z*+?%?+?-*?/Y*?-?5?;?>?@*?@?DM,F?LW*?@,?P*?@R*?VW**?@*?-X?\?^?r ZZ_`,.act,.abs">?$A,B5C=EHFYGpdeq	^*?@*?^j?Y-SY,SY+?oS?s?u?:?y?{:?:??:?????:?gY*?????#$ir\	0.??7'??> ??L??&8??^^??^??^??sL$M&N0O7Q>RLTudivg??q?,,??N,??:-????????
??????r4,,??,??'??!??sZ[](^*au?(uu??qg??Y+SY,ø?S??N-??L-??M??:?66?=2:?Y+SY,??S??N*??-???*??-??????»?Y??:*??,??:?m??:???Z????:??:?:		???1	???u:
*
???Y
S?̶W??˧???????rf
<-?????
?A?H??????x??ct?A?sVfhi!k<lQn^oikotxu?v?w?x?y?z?{?}?~??????un	?.uuu?:u??"uuu?H??%????4u??uuu?H	??q??,? N?"Y?#:%?*:6-??R-2?-:?1:?6?2?::	?:?@6
?BYDj	
?G:?LW?????gY+?J:?M?B?Q?S?W?r?
E'??	PXY
b
Z[,@\?57.]V^Y????????_?`cbc|?dt?`as>????#?,?5?=?E?P?b?l?r?|???u(?uu"'?Ou3?eq,?uYgSYiS?Աs+jkq*+?ֱlkq#*??+?*?ֱu
mnq*+??onq#*??+?*??u
wp
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy