Examples of LessSource


Examples of org.lesscss.LessSource

   * @throws Exception
   */
  public void instantiate() throws Exception
  {
    instantiateFiles();
    final LessSource mainLessSource = compile();

    if (Configuration.isDevelopmentMode() == true) {
      // only add this fancy resource watcher in dev mode
      final IModificationWatcher resourceWatcher = application.getResourceSettings().getResourceWatcher(true);
      // add watchers
      addWatcher(resourceWatcher, mainLessSource);
      for (final LessSource importedSource : mainLessSource.getImports().values()) {
        addWatcher(resourceWatcher, importedSource);
      }

    }

View Full Code Here

Examples of org.lesscss.LessSource

        if (!output.getParentFile().exists() && !output.getParentFile().mkdirs()) {
          throw new LessCssException("Cannot create output directory " + output.getParentFile());
        }

        try {
          LessSource lessSource = new LessSource(input);
          if (force || !output.exists() || output.lastModified() < lessSource.getLastModifiedIncludingImports()) {
            long compilationStarted = System.currentTimeMillis();
            logger.info("Compiling LESS source: " + file + "...");
            if (lessCompiler instanceof LessCompiler) {
              ((LessCompiler) lessCompiler).compile(lessSource, output, force);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.