Letractively / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

sassCss not getting applied #889

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have the following configuration for wro.xml, wro.properties and maven 
plugin
     ------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <groups xmlns="http://www.isdc.ro/wro"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.isdc.ro/wro wro.xsd">

        <group name="test_group">
            <css>/sass/test_new.sass</css>
        </group>

    </groups>
     ------------------------------------------------------------------
    cacheUpdatePeriod=0
    modelUpdatePeriod=0
    debug=true
    disableCache=false
    gzipResources=true
    ignoreMissingResources=false
    jmxEnabled=true
    parallelProcessing=true
    preProcessors=sassCss

     ------------------------------------------------------------------

    <plugin>
                <groupId>ro.isdc.wro4j</groupId>
                <artifactId>wro4j-maven-plugin</artifactId>
                <version>1.7.6</version>
                <dependencies>
                    <dependency>
                        <groupId>ro.isdc.wro4j</groupId>
                        <artifactId>wro4j-extensions</artifactId>
                        <version>1.7.6</version>
                        <exclusions>
                            <exclusion>
                                <groupId>com.google.javascript</groupId>
                                <artifactId>closure-compiler</artifactId>
                            </exclusion>
                            <exclusion>
                                <groupId>org.jruby</groupId>
                                <artifactId>jruby-core</artifactId>
                            </exclusion>
                            <exclusion>
                                <groupId>org.jruby</groupId>
                                <artifactId>jruby-stdlib</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <targetGroups>cas_group</targetGroups>
                    <contextFolder>${basedir}/src/main/webapp/</contextFolder>
 <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
                    <ignoreMissingResources>false</ignoreMissingResources>
                </configuration>
            </plugin>
--------------------------------------------------------------------------------
--
2. running mvn clean install
    produces:
    [INFO] Executing the mojo:
[INFO] Wro4j Model path: /<my_project_root>/src/main/webapp/WEB-INF/wro.xml
[INFO] targetGroups: test_group
[INFO] minimize: true
[INFO] ignoreMissingResources: false
[INFO] parallelProcessing: false
[INFO] destinationFolder: /<my_project_root>/target
[INFO] wroManagerFactory class: 
ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory
[INFO] The following groups will be processed: [test_group]
[INFO] folder: /<my_project_root>/target
[INFO] processing group: test_group.css
[INFO] file size: test_group.css -> 1 bytes
[INFO] /<my_project_root>/target/test_group.css (1 bytes)
[INFO] folder: /<my_project_root>/target
[INFO] processing group: test_group.js

What is the expected output? What do you see instead?
I expected to see test_group.css to have contents of test_new.sass in css 
format. But I see an empty file there.

What version of the product are you using? On what operating system?
1.7.6 on Java 1.6 on Mac.

Please provide any additional information below.

I have tried various pre-processors with this configuration with sassCss but 
nothing worked. Also I work in a restricted environment where jruby is not 
allowed So I thought I will rely on Sass to CSS using Rhino and Sass.js hence I 
excluded the dependencies that are not allowed.

Original issue reported on code.google.com by shyam.v...@gmail.com on 26 Aug 2014 at 6:29

GoogleCodeExporter commented 9 years ago
Is there anyone who can help me out here ? I would be really appreciate it. 

Original comment by shyam.v...@gmail.com on 29 Aug 2014 at 1:30

GoogleCodeExporter commented 9 years ago
Could you attach the sass file?

Original comment by alex.obj...@gmail.com on 29 Aug 2014 at 4:23

GoogleCodeExporter commented 9 years ago

Original comment by shyam.v...@gmail.com on 29 Aug 2014 at 4:32

Attachments:

GoogleCodeExporter commented 9 years ago
I have attached the sass file in the previous comment. Thank you for looking 
into it.

Original comment by shyam.v...@gmail.com on 29 Aug 2014 at 4:33

GoogleCodeExporter commented 9 years ago
Of course it was originally named as test_new.sass

Original comment by shyam.v...@gmail.com on 29 Aug 2014 at 4:34

GoogleCodeExporter commented 9 years ago
The sassCss processor uses an outdated sass version (0.5.0) and is based on 
rhino (which makes it slow as a side effect). 

I would recommend using rubySassCss processor, which is based on ruby 
implementation of sass and uses the sass syntax of the sass language documented 
here: http://sass-lang.com/

Original comment by alex.obj...@gmail.com on 29 Aug 2014 at 7:21

GoogleCodeExporter commented 9 years ago
Assuming there is no update of sass.js version (which is used by sassCss 
processor), I would rather deprecate that processor. As result, I'm closing 
this issue with wontfix resolution. Feel free to reopen if you have better 
suggestions.

Original comment by alex.obj...@gmail.com on 29 Aug 2014 at 7:22