cathive / sass-java Goto Github PK
View Code? Open in Web Editor NEWLibsass for Java
License: Apache License 2.0
Libsass for Java
License: Apache License 2.0
Hi again @headcr4sh
Just FYI, while I was working on the Ant task I noticed SassOptions.setPrecission and SassOptions.getPrecission which should probably be SassOptions.setPrecision
and SassOptions.getPrecision
respectively (single 's' not double 'ss').
Obviously no big deal, just thought I'd let you know.
This is just a straight ant build with the sass taskdef classpath pointing to the sass-java-4.0.0.jar and the jna-4.2.2.jar
BUILD FAILED
...\build.xml:144: java.lang.UnsatisfiedLinkError: Unable to load library 'sass': Native library (win32-x86-64/sass.dll) not found in resource path ([file:/C:/dev/software/apache-ant-1.9.7/lib/ant-antlr.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-bcel.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-bsf.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-log4j.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-oro.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-regexp.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-resolver.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-apache-xalan2.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-commons-logging.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-commons-net.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-jai.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-javamail.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-jdepend.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-jmf.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-jsch.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-junit.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-junit4.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-launcher.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-netrexx.jar,file:/C:/dev/software/apache-ant-1.9.7/lib/ant-swing.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant-testutil.jar, file:/C:/dev/software/apache-ant-1.9.7/lib/ant.jar,file:/C:/Program%20Files/Java/jdk1.8.0_101/lib/tools.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:342)
at com.cathive.sass.jna.SassLibrary.(SassLibrary.java:19)
at com.cathive.sass.SassFileContext.create(SassFileContext.java:44)
at com.cathive.sass.SassTask.execute(SassTask.java:268)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Hi,
My team is using sass on our project. Now we're moving to a continuous integration server, we can not longer use the command line version of sass (damn you corporate IT).
As such we were looking to include your sass-java library in our build process. Unfortunately, we're using language features from sass 3.4. Since libsass 3.3 has been released, I was hoping you could upgrade to it.
I need to use sass-java in an ant task but the class com.cathive.sass.SassJ output into the console.
Can you update this class adding support for a second optional argument for the destination and keep System.out if it is not present
Is it possible to use the compiler with gradle?
Did somebody manged to do so successfully?
I / We tried to do so, but got some bugs because with gradle the compiler isn't able to find the dll-files any more.. (see https://discuss.gradle.org/t/ant-task-with-native-libs/19527). I haven't found a solution for that problem yet... Any ideas?
As mentioned in the link i posted above, i tried the following:
apply plugin: 'java'
repositories {
jcenter()
}
configurations {
sass
}
dependencies {
sass "com.cathive.sass:sass-java:4.0.0"
}
task sassCompile << {
ant.taskdef (name:'sass', classname:'com.cathive.sass.SassTask', classpath: configurations.sass.asPath)
ant.sass (in: file('test.scss'), outDir: file('.'))
}
Hi.
I've got this running fine at home, gradle build, dependencies are there and classes are found. Same at home, however when I run my tests I get this.
java.lang.UnsatisfiedLinkError: Unable to load library 'sass': libsass.so: cannot open shared object file: No such file or directory
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:199)
at com.cathive.sass.jna.SassLibrary.(SassLibrary.java:19)
at com.cathive.sass.SassFileContext.create(SassFileContext.java:47)
at CompilationSpec.Sass compilation failure throws exception(CompilationSpec.groovy:16)
The machine is the same configuration - Linux x86 - 64 Bit. I've literally checked out my project and built it. Same JVM, Same Gradle version, same buildfile.
I can't figure it out for the life of me. Is this a bug or am I missing something obvious?
Hi,
is @use 'sass:math';
not working?
As more and more users are switching to Gradle it would be good to provide a working Gradle example on how to include this ant task in a Gradle build.
I already saw the issue #10 so it seems to me, that there are some obstacles when using the plugin with Gradle.
This package is built to require jna and jna-platform version 4.1.0 via a versioned jar reference in the manifest CLASSPATH.
The latest version of these packages is 5.8.0, and other libraries in my project do not work with the older version.
Working around it by copying the 5.8.0 jars to filenames with the 4.1.0 version number seems to work fine- i.e. sass-java appears to work with jna 5.8.0 without modification.
Would it be possible to release a newer version of this library that uses jna 5.8.0 and perhaps does not hard-code the specific version into the manifest?
When using JDK8 to build the project, a bunch of malformed Javadoc tags cause the build to fail.
Hi!
First of all I'm very glad that I've found this library as this is the only one that contains x86 compatible shared libraries.
Unfortunately Maven central does not contain the latest version (http://search.maven.org/#search%7Cga%7C1%7Ccom.cathive.sass) and the uploaded version only comes with x64 libraries.
Could you please upload a version that has all the libraries so that I can use your project without forking it?
Thank you in advanced and keep up the good work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.