Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix java.io.FileNotFoundException when @importing from LESS in subdirectory #514

Merged
merged 1 commit into from
Dec 10, 2011
Merged

Conversation

eager
Copy link
Contributor

@eager eager commented Dec 9, 2011

Imagine the following structure:


less
├── lib
│   ├── color.less
├── main.less
├── foo
│   ├── bar.less
└── foo.less

Contents of main.less:

@import "foo.less";

Contents of foo.less:

@import "foo/bar.less"

Contents of bar.less:

@import "../lib/color.less";

...

Without this patch, less-rhino-1.1.5.js fails to process bar.less, complaining File not found: path/to/less/../lib/color.less.

This fixes relative @imports from LESS files in subdirectories.
cloudhead pushed a commit that referenced this pull request Dec 10, 2011
Fix java.io.FileNotFoundException when @importing from LESS in subdirectory
@cloudhead cloudhead merged commit 4ae2d1b into less:master Dec 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants