diff --git a/src/main/java/org/lesscss/mojo/WatchMojo.java b/src/main/java/org/lesscss/mojo/WatchMojo.java new file mode 100644 index 0000000..ee26801 --- /dev/null +++ b/src/main/java/org/lesscss/mojo/WatchMojo.java @@ -0,0 +1,18 @@ +package org.lesscss.mojo; + +import org.apache.maven.plugin.MojoExecutionException; + +/** + * Goal which will watch for changes in LESS files and compile if it detects one. + * + * @author Marcel Overdijk + * @goal watch + */ +public class WatchMojo extends CompileMojo { + + @Override + public void execute() throws MojoExecutionException { + watch = true; + super.execute(); + } +}