This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37868 - Need an API to get the location of the WebApp (FileSystem)
Summary: Need an API to get the location of the WebApp (FileSystem)
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-08 23:15 UTC by Unknown
Modified: 2006-06-05 00:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2003-12-08 23:15:21 UTC
We need an PAI to get the location  (java.io.File)
of the web app.
There are 2 usage for that:

1/ a server plugin could derive automatically a
contextroot value from the direName of the webapp.
This would minimize the user 'configuratio'
activity a loot

2/ We also need this name to be used byt the first
initial dir deployment to calculate a good ModuleID.

We could use there the context root, but if the
user changes the contextroot, we don't want to do
a full dpeloy again in a different directory.
USing the webapp dir locaiton as the name for the
moudle ID, we cna better handle this moduleID stuff.

3/ It was possible with the previous APIs, so it
could be a regression.
4/This could also be used by the plugin to choice
the lcoation of the deployment plan within the
module source area.
Comment 1 _ gfink 2003-12-08 23:19:11 UTC
Not a good idea.

Relies too much on the current on-disk representation of the web module.
What if the user has the jakarta source structure?