GithubHelp home page GithubHelp logo

sass-java's People

Contributors

headcr4sh avatar ricksbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sass-java's Issues

Ant Build fails to find Native library (win32-x86-64/sass.dll)

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)

Upgrade to lib sass 3.3

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.

Ability to compile into file with com.cathive.sass.SassJ

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

Question: Usage with gradle

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('.'))
}

Can't load shared library

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?

Provide a Gradle example

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.

jna dependency is out of date

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?

Fix Javadoc

When using JDK8 to build the project, a bunch of malformed Javadoc tags cause the build to fail.

Upload the artifact to Maven central

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.