How can I merge the src folder in eclipse without showing the packages,into a single folder.
i
I decided that, as #C-Otto said if you don't need resources or tests then they can remove as source folders. And these are not packages.
To remove as source folders.
Goto:
Project->Properties->Build Path->Sources Tab and remove what you wish :)
Related
I have messed up my Eclipse project and am trying to create a new workspace and re-importing everything but that is more complicated than one would expect.
Currently the problem is that Eclipse doesn't recognize in what folders the source files are stored. Usually you can right click on a folder and mark it as a source folder:
But in my new workspace, no folders are displayed, only packages, and it looks the same in Package explorer and Project explorer:
As you can see src is in the "path" but visually it is not a folder on a separate level in the hierarchy.
If I create another workspace and add a couple of projects it looks right:
Why are my folders missing? How do I make Eclipse show them and/or select them as source folders?
src is inside of a folder that is already set as a source folder. You'll have to unset the parent folder as a Source folder before you can set src to be one.
While viewing the outgoing changes in Eclipse Team Synchronization(Subclipse), I am able to see the unversioned files also, like the generated class files, build folders, etc, which I do not want to see in this view. I dont want to add it to svn:ignore, since I have to do it manually for all the additional folders generated.
Is there any setting to change this to show only versioned files in this mode always?
Tortoise SVN client shows this option while committing, to show only versioned files. I am looking for such an option in Subclipse Team Synchronization view. Thanks in advance.
eclipse_outgoing_view
You should svn:ignore build folders.
Otherwise it's only a question of time until you or your colleague checks in the build folder
You should use svn:ignore, and note that once you do for a folder, all child folders are automatically ignored. In your example, if the build folder were ignored then everything inside it would automatically be ignored. It looks like your build folder has already been added to repository though, so maybe you can ignore the dist folder inside bin.
I couldn't find a question that similar to mine but the point I'm asking is where do I run git init? Do I run it in the src folder where my code is or in the project folder which contain the src folder and a bin folder? I'm working with eclipse and gitBash. Hope this is enough info.
What do you mean by builded project? Are you referring to .classpath, .project, .settings
When you create a repo, you need to include anything needed to actually build the project.
That include the src/ folder, but also other configuration files.
Those can include the .project (if it has only relative paths, easily reused by others), and the .classpath: see ".classpath and .project - check into version control or not?".
The settings/ folder can also be included 5see "Which eclipse files belong under Version Control", but not the .metadata/ subfolder.
It even can include settings for other IDEs like IntelliJ IDEA, if other contributors are using that tool.
It would not include the bin/ folder, typically added in a .gitignore, because its content is regenerated on demand (built).
Run it in the Project folder.
src folder contains the code files mostly. But supporting resources may be included in the other folders. And you will need to add everything to git without which project may have problem running.
Is there a way to delete an Eclipse project while preserving all the resources? (i.e. source code, etc.).
I guess I could delete the following files from the project directory manually:
.cproject
.project
But I am concerned that my Eclipse .metadata information that lives in my workspace may still look for those files and get confused if I delete the project files manually.
What I usually do is remove the project using eclipse (do not delete project contents on disk) and remove any .* eclipse-related file that could stay.
With the checkout unchecked, it deletes the project informations while preserving the source code.
Can I drag&drop a folder from my home folder that has many subdirs and even .svn subdirs into my Navigator view in my subclipsed Ecplipse?
Found the answer by trying - Yes you can. You have to right click on the new folder and choose "add to version control".
If you have folders / subfolders however that contain an old .svn folder, you have that folder remove from eclipse again, commit and copy over again.
Alternatively, just recreate the folders / subfolders by hand in eclipse and drag&drop the files over
Either way you will loose Version Control of the old files. If you want to keep Version Control you have to use the SVNAdmin tool to do the migration.
If you want to work with files that are in a Subversion repository, why not check them out again from Eclipse?