ksoichiro / gradle-web-resource-plugin

Gradle plugin to use CoffeeScript, LESS and Bower libraries without Node.js/npm.
Apache License 2.0
23 stars 5 forks source link

I get "could not normalize path for file" errors under Windows #18

Open nkiesel opened 7 years ago

nkiesel commented 7 years ago

Hi,

using 1.7.3 and everything works nicely on Linux (and bash on Windows). But using cmd prompt, I get

>gradlew.bat :modules:ui:webResourceCompile

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':modules:ui'.
> Failed to notify project evaluation listener.
   > Could not normalize path for file 'C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\gbuild\webResource\..\..\C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\less'.
   > Could not normalize path for file 'C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\gbuild\webResource\..\..\C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\coffee'.
   > Could not normalize path for file 'C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\gbuild\webResource\..\..\C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\less'.
   > Could not normalize path for file 'C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\gbuild\webResource\..\..\C:\Users\nkiesel\AppData\Local\lxss\home\nkiesel\work\Platform\trunk\trunk\modules\ui\coffee'.

The build.gradle for this contains:

plugins {
    id 'com.github.ksoichiro.web.resource' version '1.7.3'
    id "com.moowork.node" version "1.1.1"
}

webResource {
    base {
        src = project.projectDir
        dest = "gbuild"
    }

    less {
        source = "less"
        dest = "css"
        include = ["msi.less"]
        minify = true
    }
}