Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds new lesscss related env entries.

  • Loading branch information...
commit 2ff94971c50d58f603a94a9be29ce65d7f8b03c4 1 parent eaa00e8
@asual authored
View
8 archetypes/java/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
@@ -13,4 +13,12 @@
<Arg>resource/Compress</Arg>
<Arg type="java.lang.Boolean">false</Arg>
</New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Cache</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Compress</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
</Configure>
View
12 modules/lesspack/src/main/resources/META-INF/web-fragment.xml
@@ -24,6 +24,10 @@
<servlet>
<servlet-name>less</servlet-name>
<servlet-class>com.asual.lesscss.LessServlet</servlet-class>
+ <init-param>
+ <param-name>css</param-name>
+ <param-value>true</param-value>
+ </init-param>
<load-on-startup>1</load-on-startup>
</servlet>
@@ -51,15 +55,15 @@
<servlet-name>resource</servlet-name>
<url-pattern>/res/*</url-pattern>
</servlet-mapping>
-
+
<servlet-mapping>
- <servlet-name>less</servlet-name>
- <url-pattern>/css/*</url-pattern>
+ <servlet-name>resource</servlet-name>
+ <url-pattern>/js/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>less</servlet-name>
- <url-pattern>/js/*</url-pattern>
+ <url-pattern>/css/*</url-pattern>
</servlet-mapping>
</web-fragment>
View
8 samples/java/src/test/resources/jetty-env.xml
@@ -13,4 +13,12 @@
<Arg>resource/Compress</Arg>
<Arg type="java.lang.Boolean">false</Arg>
</New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Cache</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Compress</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
</Configure>
View
8 samples/scala/src/test/resources/jetty-env.xml
@@ -13,4 +13,12 @@
<Arg>resource/Compress</Arg>
<Arg type="java.lang.Boolean">false</Arg>
</New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Cache</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
+ <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
+ <Arg>less/Compress</Arg>
+ <Arg type="java.lang.Boolean">false</Arg>
+ </New>
</Configure>
Please sign in to comment.
Something went wrong with that request. Please try again.