-
Notifications
You must be signed in to change notification settings - Fork 42
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
Web resources node #46
Comments
First: Cool to have a Spring Boot plugin for Netbeans. :-) Would implementing this ticket enable LESS compilation on save support? The current status is that the following dialog appears when saving a ".less" file:
I even see But neither is the css file generated nor is there any way to change the setting in the project properties (the tab is not even showed). I tried to fix it on my own but had no success so far. I looked at the source code of Netbeans and it looks to me that CPOnSaveHook is only responsible for that dialog and not for triggering the invocation of LESS. I made a pretty simple try and added <dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-web-common-ui</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-web-common</artifactId>
<version>${netbeans.api.version}</version>
</dependency> as dependencies and the following code to the the SpringBootServiceInitializer#projectOpened(): final CssPreprocessorsListener cssSupport = prj.getLookup().lookup(CssPreprocessorsListener.class);
if (cssSupport != null) {
CssPreprocessors.getDefault().addCssPreprocessorsListener(cssSupport);
} But it ends up in a ClassNotFoundException. I have no idea why... the dependency is added to the pom. Another source of inspiration might be https://github.com/hildo/netbeans-gradle-javaee-project. |
@janScheible to answer your first question, unfortunately no, solving this issue would not automatically enable support for CSS preprocessors. This issue only covers the presentation aspect: it aims at better showing int the Project view the web resources (html pages, css files, javascript files and so on) only for Spring Boot projects maven projects with JAR packaging, the idea is to make them look like in maven projects with WAR packaging. You should try to change the packaging type to Anyway thank you for your investigation and the notes you added, I'm going to add a new issue and point it here for future reference. |
One or two nodes in the project view for web resources showing the content of
src/main/resources/static
andsrc/main/resources/templates
foldersThe text was updated successfully, but these errors were encountered: