Code Monkey home page Code Monkey logo

Comments (12)

angelozerr avatar angelozerr commented on June 4, 2024

@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.

MichaelChambers avatar MichaelChambers commented on June 4, 2024

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.

angelozerr avatar angelozerr commented on June 4, 2024

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.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

I am working on this. I will consider @MichaelChambers suggestion.

from eclipse-wtp-webresources.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

PR #41

from eclipse-wtp-webresources.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

@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.

angelozerr avatar angelozerr commented on June 4, 2024

@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.

nitind avatar nitind commented on June 4, 2024

Isn't this what the Deployment Assembly property page already does and then surfaces through the ModuleCore APIs?

from eclipse-wtp-webresources.

angelozerr avatar angelozerr commented on June 4, 2024

@nitind I'm sorry I don't understand what you mean?

from eclipse-wtp-webresources.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

@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:
image
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:

  1. 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.
  2. 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.

angelozerr avatar angelozerr commented on June 4, 2024

Many thanks for your information.

It should be cool if completion could use your preferences.

from eclipse-wtp-webresources.

anubas avatar anubas commented on June 4, 2024

This works perfectly. Thanks!

from eclipse-wtp-webresources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.