Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7603091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:34:52+00:00 2026-05-30T23:34:52+00:00

I want to use a less compiler like dotless as eclipse builder. If I

  • 0

I want to use a less compiler like dotless as eclipse builder. If I set the build option “Run the builder:” to “During auto builds”, every 5-10 sec the builder is runing (thats ok) but it also ask me to save, instead of ignoring the unsaved files.

As workaround I activate the workspace-option “Save automatically before build” and bind Ctrl+S to “build all”

Is there a better solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:34:53+00:00Added an answer on May 30, 2026 at 11:34 pm

    To automatically transpile LESS to CSS in Eclipse, I explain two possible ways.

    1. Using a Plugin
    2. How to do it manually

    (I edited this post after I wrote the plugin, so the manual way is the old way, that the original post contained over some time, which you may have seen here a while ago)

    Requirements

    For either solution you need to install node and lessc (the less-compiler).

    Installing lessc through npm with the following commands:

    npm install -g less-compiler
    npm install -g less
    

    1. Install the Eclipse Transpiler Plugin

    I wrote an eclipse plugin to handle transpiling in eclipse. Just install it and follow the instructions on the project readme to configure transpiling for your project.

    -> https://github.com/gossi/eclipse-transpiler-plugin

    2. Manually install a builder

    I wrote myself a little shell script that runs lessc after every save on a .less file. However, eclipse keeps its own environment, thus no %PATH variables are available in eclipse. So, you need the full path to the lessc command, which you can find with which lessc:

    $ which lessc
    /usr/local/bin/lessc
    

    Also, because lessc runs on a node environment:

    $ head -n1 /usr/local/bin/lessc
    #!/usr/bin/env node
    

    You cannot run this directly, because eclipse doesn’t know about your environment. You need to prepend the node command, to achieve a lessc call in eclipse:

    $ which node
    /usr/local/bin/node
    

    The shell script with the full path to lessc is:

    #!/bin/bash
    
    /usr/local/bin/node /usr/local/bin/lessc css/*.less > css/*.css
    

    You may adjust the input and output sources according to your project. In order to make that run in eclipse we need to make it run as a builder. Here you go:

    1. Rightclick on your project > Properties > Builders.
    2. Click New, choose Programm and give it a cool name
    3. “Main” Tab
      • Location: Choose the shell script here
      • Working Directory: I choosed the project folder
    4. “Refresh” Tab
      • [x] Refresh resources upon completion
      • [x] Specific resources
      • Click on “Specify Resources…”
      • Check the resources that you want to be refreshed after the compilation, typically the css files
      • Recursively include sub-folders depends on you and your project
    5. “Build Options”
      • [  ] Allocate Console (uncheck, we want it silent, turn it on for debugging)
      • [x] Launch in Background
      • Run the Builder
        • [  ] After a “clean”
        • [x] During manual builds
        • [x] During auto builds
        • [  ] During a “clean”
      • [x] Specify working set of relevant resources
      • Click “Specify Resources…”
      • Choose the resources you want to compile, typically your .less files. A Note, don’t select the folder with css files here, that gets refreshed after the build, anyway your eclipse might get catched in a never-ending-loop here. So .less files will be enough.

    Now, open a .less file, do some changes and save. Open the compiled .css file – tada 🙂

    Windows:

    I think this will work on windows too, with an according .bat file.

    Have fun

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to use the listview flicker"less" control found here Link directly in my
I want to use the MultipleLookupField control in a web page that will run
I want use groovy findAll with my param to filtering closure filterClosure = {
i want use some data from a website with web service. i have a
I have a transaction log file in CSV format that I want use to
Below is my stored procedure. I want use stored procedure select all row of
I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom
I want to use Powershell to write some utilities, leveraging our own .NET components
I want to use the functions exposed under the OpenGL extensions. I'm on Windows,
I want to use the Publish.GacRemove function to remove an assembly from GAC. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.