Comments (12)
@kaloyan-raev I think it's a good idea. It seems that it's similar issue than #24
Today I'm very busy with tern.java, I will do this issue when I will have time.
from eclipse-wtp-webresources.
It would be great if we could mark a list of source folders that would each be counted as the root.
I'm looking at a project now with the following structure:
src/main/resources/static/css, js, etc
target/generated-resources/static/css, js, etc
These static folders are combined later when deploying. I think I would need both static folders to be marked as web root.
from eclipse-wtp-webresources.
I agree @MichaelChambers but I'm very busy for the moment with JSON Editor and Grunt development.
Any contribution are welcome!
from eclipse-wtp-webresources.
I am working on this. I will consider @MichaelChambers suggestion.
from eclipse-wtp-webresources.
PR #41
from eclipse-wtp-webresources.
@MichaelChambers could you update from the snapshot repository and check if this solution works for you?
http://oss.opensagres.fr/eclipse-wtp-webresources/0.9.0-SNAPSHOT/
from eclipse-wtp-webresources.
@kaloyan-raev I tell me why Web Root Folders Preferences is inside Web Resources -> Validation -> Web Root Folders menu item. This config works too for completion, no? Wyh don't set this menu to Web Resources -> Web Root Folders ?
from eclipse-wtp-webresources.
Isn't this what the Deployment Assembly property page already does and then surfaces through the ModuleCore APIs?
from eclipse-wtp-webresources.
@nitind I'm sorry I don't understand what you mean?
from eclipse-wtp-webresources.
@angelozerr No, currently web root folder are not considered for completion - just for validation. I had only the validation in my mind and did not thought about the completion. Therefore, I placed the new property page under the Web Resource > Validation one. When completion starts considering web root folders, I agree the page should me moved directly under Web Resources.
The Deployment Assembly page that @nitind mentioned is used in the WTP Java EE Tools. Here is screenshot:
It provides mapping between project structure and deployment package structure. However, there some issues to use it to resolve the problem targeted by this issue:
- There is no guarantee that the deployment package will be deployed in the web server's root. Of course, such assumption can be made, but it might be wrong. Whereas in the Web Root Folders property page, the user explicitly declares such intention.
- In the case of PHP, there is no such clear deployment strategy like in Java EE, where it is defined by a specification. Very often PHP projects are not deployed, but just uploaded to the server. Perhaps, this may be the reason that PDT was not integrated with the WTP Module Core framework.
from eclipse-wtp-webresources.
Many thanks for your information.
It should be cool if completion could use your preferences.
from eclipse-wtp-webresources.
This works perfectly. Thanks!
from eclipse-wtp-webresources.
Related Issues (20)
- Support dynamic path (ex : JSP expression) HOT 2
- Too much proposals with css autocompletion HOT 2
- nick HOT 2
- Skip validation when embedded PHP script is used HOT 2
- Regular Exception since update to Luna 4.4.1 JEE packaging HOT 1
- Closed project is causing too many stacktraces HOT 2
- Release 0.8.0 in January HOT 2
- Undefined JavaScript/Css file HOT 2
- Data URI schemes should not be marked as errors HOT 5
- Avoid validating class values with PHP code inside HOT 5
- Unable to disable validation HOT 3
- Completion, Hyperlink, Validation, Hover support for a/@href, iframe/@src HOT 1
- Rename resource => refactoring
- ./ and / links
- Exclude some folders from validation HOT 1
- CSS class validator does not respect web root folders HOT 5
- Support resolving of directives and CSS classes in AngularJS templates HOT 4
- Support for GitHub pages templates, Jekyll
- Give up WTP Webresources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse-wtp-webresources.