- This topic has 8 replies, 5 voices, and was last updated 19 years, 8 months ago by vagamond.
-
AuthorPosts
-
Ivar VasaraMemberUm, maybe I’m missing something obvious, but is there any way to set a Web Module project’s WebRoot directory to be a linked resource ?
If I create a Web project, link my desired directory, then use the project properties panel to explicitly set the Web Root, it accepts my specification but doesn’t seem to do anything about it. As well, when I delete the “WebRoot” folder it immediately reappears, not to mention the files in my linked folder are highlighted with errors as they aren’t under the web root.
support-michaelKeymasterWe have a PR on this. Linked web-root folders are not yet supported. I believe we are going to try and address this in ME 2.8/3.8.
Ivar VasaraMember@support-michael wrote:
Linked web-root folders are not yet supported.
doh! I was afraid you were going to say that…
@support-michael wrote:I believe we are going to try and address this in ME 2.8/3.8.
I’ve played around with my project.xml trying to mess around with resources, but I haven’t got anything working.. is there any possibility of a some sort of workable kludge until official support is in ? ( It’s a show stopper for me given my project’s directory structure.)
Also, (if it makes any difference) consider this to be two votes for this RFE (I have a personal license + a work license…)
Ivar VasaraMemberbtw- what does ‘PR’ mean ? (besides praseodymium, payroll, public relations,proportional representation, Puerto Rico, packet radio) 😉
No OperationMembercant you use filesystem links?
NOP
Riyad KallaMemberivar,
I think it means Problem Report, also did NOP’s suggestion work?
vagamondMemberAny news on this issue? it seems still not possibile to set a Linked resource
as default path for WEBROOT or SRCRegards
Riyad KallaMemberI just tried this, and you can make it work, it just required some creativity.
1) Create your web project
2) File > New > Folder > Linked, make your linked folder in the root of the project
3) Copy ALL the contents of your old WebRoot folder into the new linked folder
4) Project Properties > Java Build Path > Source > Change the output DIR to point to the “classes” dir under your new web root, not the old one.
5) Switch to navigator view, open .mymetadata and change the value of the “webroot” to whatever the name of your new dir is.
6) Close and reopen the project, erase the old webroot.
vagamondMemberRiyad,
I was aware of this kind of workaround. However I’m looking for something simpler.
I cannot suggest that to 200 users…
I must use the following subdirectory to be compliant to our VOB structure:
-PROJ
—BIN
—SRC
—WORKAREAso it would be nice to put .java in SRC, classes and webroot in BIN and metadata in WORKAREA
I also tried to put the project in WORKAREA and to
specify ..\..\SRC\EJB and ..\..\SRC\WEB for EJBModule and WARModule without any luck. 😐Any Suggestion???
Regards -
AuthorPosts