gertn / lesscss-ant

LESS CSS Compiler Ant Task - Gert Nuyens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LESS CSS Compiler Ant Task

This library extends Official LESS CSS Compiler for Java with an ant task so you can use it in an ant or gradle build.

Building from source

Can be built with Maven by using the following command:

mvn package

To build it and install it into your local maven repo use the following command:

mvn install

Example - gradle build

First make sure you have the snapshot in your local repository (see Building from source)

configurations { lessClasspath }

dependencies {
	lessClasspath group: 'org.lesscss', name: 'lesscss-ant', version: '1.0.0-SNAPSHOT'
}

repositories {
	mavenLocal()
	mavenCentral()
}

task lesscss << {
	ant.taskdef(name: 'compileLess', classname: 'org.lesscss.LessCompilerTask', classpath: configurations.lessClasspath.asPath)
	ant.compileLess(input:  "${projectDir}/less/main.less", output: "${projectDir}/src/assets/css/main.css", compress: 'true') {
	}
}

About

LESS CSS Compiler Ant Task - Gert Nuyens


Languages

Language:Java 100.0%