<groups xmlns="http://www.isdc.ro/wro"> <group name="base"> <css>/resources/skins/abc/testing.less</css> </group> </groups>
Here 'resources' is a folder inside: src/main/webapp.
A file testing.less is added inside /resources/skins/abc/ folder:
.btn-expand (@height: 30px) { box-sizing: border-box; height: @height; display: inline-block; color: #fff; font-size: 12px; text-decoration: none; padding-left: 20px; padding-right: 1px; margin-right: 20px; background: transparent url('images/sprites.png') no-repeat -5px -164px; border: 0; position: relative; outline: none; cursor:pointer; overflow: visible; }
4) Added the following entry in pom.xml:
<plugin> <groupId>ro.isdc.wro4j</groupId> <artifactId>wro4j-maven-plugin</artifactId> <version>1.7.3</version> <configuration> <targetGroups>base</targetGroups> <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory> <cssDestinationFolder>${project.build.directory}/${project.build.finalName}/resources/css/test/</cssDestinationFolder> <wroFile>${basedir}/src/main/webapp/WEB-INF/wro.xml</wroFile> <extraConfigFile>${basedir}/src/main/webapp/WEB-INF/wro.properties</extraConfigFile> <contextFolder>${basedir}/src/main/webapp/</contextFolder> <ignoreMissingResources>false</ignoreMissingResources> </configuration> <executions> <execution> <goals> <goal>run</goal> </goals> <phase>prepare-package</phase> </execution> </executions> </plugin> [Inside <build> <plugins> tag.]
Based on the above, I assume that when i do a maven build from command prompt [mvn clean install], a css file named base.css should be created inside /resources/css/test/ folder. I can see the new folder 'test' in the exploded project WAR file but it does not contain the base.css file. The console output looks something like this:
[INFO]One more observation. To make sure that that wro.properties file is
correctly placed and is picked up by the plugin, I tried some wrong
values in this file [postProcessors=less4jtttt]
and could see an exception while doing the build. However, an invalid file path in wro.xml file did not throw any execption.
Please suggest.
Regards.
--
You received this message because you are subscribed to the Google Groups "wro4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wro4j+un...@googlegroups.com.
To post to this group, send email to wr...@googlegroups.com.
Visit this group at http://groups.google.com/group/wro4j.
For more options, visit https://groups.google.com/groups/opt_out.
--