March 24, 2020 at 12:39 pm #648452
I need to be able to absolutely limit what jar files are included by the IDE for a project. Currently, even for a simple HelloWorld.java project MyEclipse includes a lot of files in the .metadata folder. I need to be able to create a project so that the .metadata folder doesn’t exist within the src tree, i.e. the git tree.March 24, 2020 at 3:55 pm #648481
MyEclipse does not add a
.metadatafolder in the project, however, this folder does exist at the workspace level and is necessary for the proper functioning of MyEclipse. This folder has little to do with the project(s) in your workspace. I’m assuming this is the folder you are talking about – if not, please send a screenshot with the contents and full path of the .metadata folder and your project folder.
You need to be checking-in only the project into version control, not the entire workspace. Projects are typically created as a folder within the workspace folder, so this should not be a problem. If you created your project in the workspace without a containing folder, please create a new project in a folder within the workspace.
Hope this helps.March 24, 2020 at 5:50 pm #648491
Thanks for the quick response. My setup is something like c:\src\git\… and all of my projects are under the git folder. So if I understand what you’re telling me is to set the git folder as the workspace and all of my projects (git\projectA, git\projectB) will not have the .metadata folder. In fact, I’d probably prefer to create a separate folder for my workspaces, i.e. c:\Workspaces, and leave my projects in the c:\src\git\…
Is that correct?
DavidMarch 24, 2020 at 6:09 pm #648493
In fact, I’d probably prefer to create a separate folder for my workspaces, i.e. c:\Workspaces, and leave my projects in the c:\src\git\…
Correct, this is the way to go.
Don’t know what / where your workspace is now, but inside MyEclipse, you should do File > Switch Workspace > Other and type in the path of your new workspace, say,
c:\workspaces. Do not set the git folder as the new workspace. Once MyEclipse starts, you should use the import project wizard to import your existing projects from
c:\src\gitinto this workspace. Please ensure that the “copy contents” checkbox in the import wizard is not checked.