Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » runtimePath variable in Component Core
runtimePath variable in Component Core [message #231901] Wed, 27 May 2009 20:45
Eclipse User
Originally posted by: rstryker.redhat.com

Howdy =]

In IVirtualComponent, and IVirtualReference, I'm noticing some behavior
inconsistancies while I trace through, primarily in JEE Tools, so I
thought I'd post this question just to verify.

In all of the following methods, should the result be a path to a folder
or a path to a file (assuming the resource in question is a file)?

IVirtualReference.getRuntimePath()
VirtualArchiveComponent.getRuntimePath()
IVirtualResource.getRuntimePath()

After some tracing, my understanding is that IVirtualResource should
contain a full runtime path (/path/to/file.war), whereas
IVirtualReference should only be listing the folder (/path/to) and
similar behavior with VirtualArchiveComponent.

However since the javadoc on these classes is a bit vague, I also assume
it means its up to the extender (in this case JEE Tools) to be
consistant in their own way?

Problem being, some of these references (specifically binary ones) are
not using their runtimePath() variable at all, and my efforts to force
them to are causing, naturally, more divergence in behaviour between
export and publish ;) (yeah yeah same story different day... it's all I
talk about anymore huh ;))

Anyway, was just looking for clarification. Since my goal is to expose
these IVirtualReference runtimePaths in a UI, and let users change them,
it'd be pretty handy if this was actually specified and consistant =]

- Rob Stryker
Previous Topic:Creating solo tags (i.e. <tag .../>) with WST XML api
Next Topic:Serializing namespaces on the xsd schema level
Goto Forum:
  


Current Time: Fri Aug 29 16:21:00 EDT 2014

Powered by FUDForum. Page generated in 0.01561 seconds