Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

bug fix with absolute uri IMPORT #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

bug fix with absolute uri IMPORT #48

wants to merge 3 commits into from

Conversation

marcosemiao
Copy link

exemple :
@import "/bootstrap/less/bootstrap.less";

if the source file is not present into root directory.

the compilation fail :

[ERROR] D:\dev\billetel\IRIS_14.03\modules\lotus\src\main\webapp\bordel\less\sty
les.less [0:0]: Error compiling LESS source
java.io.FileNotFoundException: File D:\dev\billetel\IRIS_14.03\modules\lotus\src
\main\webapp\bordel\less\bootstrap\less\bootstrap.less not found.
at org.lesscss.LessSource.(LessSource.java:59)
at org.lesscss.LessSource.resolveImports(LessSource.java:145)
at org.lesscss.LessSource.(LessSource.java:63)
at org.lesscss.mojo.CompileMojo.execute(CompileMojo.java:123)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)

the file "bootstrap.less" is not in "D:\dev\billetel\IRIS_14.03\modules\lotus\src
\main\webapp\bordel\less\bootstrap\less\bootstrap.less" but into D:\dev\billetel\IRIS_14.03\modules\lotus\src
\main\webapp\bordel\bootstrap\less\bootstrap.less"

exemple :
@import "/less/styles_variables.less";

if the source file is not present into root directory
@@ -90,7 +90,7 @@
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<!-- plugin>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason you commented the invoker plugin?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because doesn't work in windows 8, The maven plugin doesn't use a path of nodejs command for execute.

the "nodeExecutable" variable in maven plugin, it's used only for determine, the implementation of compilation, NodeJsLessCompiler or LessCompiler.

I hava add a pull request for this.

[ERROR] C:\temp\lesscss-maven-plugin\target\it\nodejs\src\main\less\test.less [0:0]: Error compiling LESS source
java.io.IOException: Cannot run program "node": CreateProcess error=2, Le fichier spécifié est introuvable
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at org.lesscss.mojo.NodeJsLessCompiler.compile(NodeJsLessCompiler.java:134)
at org.lesscss.mojo.NodeJsLessCompiler.compile(NodeJsLessCompiler.java:116)
at org.lesscss.mojo.CompileMojo.execute(CompileMojo.java:130)

…h of nodejs command for execute.

the "nodeExecutable" variable in maven plugin, it's used only for determine, the implementation of compilation, NodeJsLessCompiler or LessCompiler.

I added a pull request for this

[ERROR] C:\temp\lesscss-maven-plugin\target\it\nodejs\src\main\less\test.less [0:0]: Error compiling LESS source
java.io.IOException: Cannot run program "node": CreateProcess error=2, Le fichier spécifié est introuvable
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
	at org.lesscss.mojo.NodeJsLessCompiler.compile(NodeJsLessCompiler.java:134)
	at org.lesscss.mojo.NodeJsLessCompiler.compile(NodeJsLessCompiler.java:116)
	at org.lesscss.mojo.CompileMojo.execute(CompileMojo.java:130)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants