Reputation: 2977
We are using eclipse + WDT + WebSphere Liberty profile.
WLP runtime is installed in some location and we create the WLP server in a different location (ie not in <wlp_home>\usr\servers
)
To do this:
"Server -> Runtime Environments -> WAS Liberty"
, "Advanced Options"
, we add a "User directories"
pointing to the project previously created in the workspaceThe problem is that each time we start eclipse on the workspace, a project called "WebSphere Application Server Liberty"
is created in the workspace.
This project points to the "<wlp_home>\usr"
directory that we don't use. It is just useless for us as the WLP server is not held there .
Q: how to avoid the creation of this useless/annoying project? In the preference? in the server? or ..?
("Closing" the project is not even a mitigation solution as it is "reopened" each time eclise starts..)
Upvotes: 0
Views: 1033
Reputation: 401
WDT always keep the default user directory under the liberty installation location to ensure that there is at least one user directory available for a given runtime. And the tools does not currently allows you to remove that default user directory. Therefore, the project will get created every time when you restart the workspace if it does not already exist. If you want the ability to remove the default one, feel free to submit a feature request for that function.
The alternative is that you can use Working Set to filter out the project if you don't want to see it on your project explorer as mentioned in the other answer.
Upvotes: 2
Reputation: 1229
I'm not sure how to prevent the creation of the project, however if you add the projects you actually care about to a working set, you can effectively hide the folder you don't want to see.
Click the triangle in the package explorer tab heading and click Select Working Set, then New..., then Resource, and then add all your projects to it. Click finish, and then make sure the "Selected Working Sets" radio button is selected and put a check mark next to your working set. Eclipse should be smart enough to add new projects you create to the current working set, but just make sure to verify it is or they won't show up until you add them.
Upvotes: 1