Eclipse: Remove unused files - eclipse

I have android code with many different java, bmp and xml files everywhere in my project that I used during the drafting phase of my project.
Is there any way you can get eclipse to just delete all files in your project not being used at all? Or do I have to do it manually?
Thanks.

Related

Create Eclipse project using `make`?

Is it possible to create Eclipse project using make?
I have a bunch of Eclipse CDT c++ projects, but I can't keep the .project and .cproject files in the source reposotory - instead, one option is to create a makefile to be able to re-create Eclipse projects by running make. Would that be possible?
CMake can generate Eclipse project files, you could use that. I haven't come across a way to do it using plain make.
That said, please keep in mind the caveats I mention in this answer about Eclipse project file formats being undocumented and without guarantees of stability.

POI XSSF : javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found - Error

I'm having this problem in a RCP Aplication.
A little Introduccion.
My App is build with Eclispe Indigo 32 bits.
I have two projects, one is mainly a library container, and the other project is the main application, and it have a relation to the Library Project, all in one Elipse Workspace.
A few year ago, I was reading xls files, but now I need to read and write xlsx, and xlsm files.
So I downloaded all POI binary files (poi-bin-3.16-20170419).
I managed to add jar files in library Project, so the source filesgive me NO errors.
But when I run the application I get this error:
javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found
I try to reorder jar files in "Java Build Path"-> "Order and Export", but the error is the same.
I'll add some screen captures.
Here I try to put Stax-api-xx.jar first, because javax.xml.stream.FactoryFinder is in two libs, jre_1.6 and stax-api !
Where is the error ?
A sneak peak of my workspace:
Best regards
Delete the javax/xml folder from local repository and try building the project again.
This will solve the issue in some cases.

.jcp equivalent for eclipse?

for one of my labs I have in my CS2 class at school, JCreator is installed on the school's computers with a 4.x version, I'm more of an eclipse person myself, I even use it at school in place of JCreator, but the file extension .jcp from what I know is a JCreator related file extension. What can I do to make a folder of files compatible with eclipse, which I use at home as well?
Eclipse identifies its projects by using two files namely .classpath and .project. As long as you can export those along with the project files and structure, you should be able to import a project into another eclipse instance.
I am not sure JCreator can create those files for you but I am sure that every eclipse project generates these files.
You can keep the JCreator specific files in the project folder(s), eclipse will ignore all the files that it cannot process/understand. The problem will be how to keep the libraries you are using in sync in both IDE environments as you edit your project.
You might want to re-factor that out to a build management tool like ant/buildr/maven

Have eclipse copy .class files to additional target folder?

I have an eclipse project. By default, my .class files are being put here:
/projectname/build/classes
is there a way I can have eclipse also copy those files to an additional folder destination, every time the project is built?
I could write a script to do this myself, but was hoping there was some kind of hook in eclipse to do this.
Thanks
You could write an Ant script for this and add it as a builder to your project. See the Eclipse documentation for an example.
Eclipse doesn't have the native ability to output to multiple locations, but you can probably accomplish it yourself by adding a custom builder to your project(s).

Setup a GWT Project correctly with SVN and Eclipse

I'm trying to develop a small project using Eclipse and the Google Web Toolkit.
It's a (small) group project so I want to use SVN.
So far I have created a GWT Project in Eclipse and added it to my SVN Repository.
The problem is that when I use 'compile' on the project, it breaks SVN's metadata and the whole war-directory is marked as broken. (Red Exclamation mark).
I then cannot commit and/or update - neither can I just ignore the war directory because of the web.xml / appengine-web.xml files which Eclipse complains about when they are missing... Cleanup also fails.
So far the problem -
Does anyone of you know how to properly set up a new GWT Project with SVN?
Which files need to be ignored? Which files can be committed? ...
A beginner-friendly solution would be great!
Thanks in advance
In the answer below I'm assuming you're not using Maven. I tried to answer generically as well so the below should apply to any version control system (I'm on Bazaar).
You want to commit the files which constitute the application source code (e.g. *.java files) and configuration metadata (e.g. *.xml files). Some (like me) also like to commit Eclipse project configuration (.settings, .classpath and .project), even though doing so might on occasion cause some inconvenience to other team members due to differing Eclipse setups. I think the convenience of not needing to guess which Eclipse natures the project has or what's supposed to be on the classpath is worth it (Maven helps even more, but that's a separate discussion).
You want to ignore the files and folders which are build products (and hence are temporary and reproducible by nature). For GWT apps developed in Eclipse using the Google Plugin for Eclipse these are typically war/WEB-INF/classes, war/WEB-INF/deploy and war/<module_name>, where <module_name> is the name GWT uses for the folder where it places your GWT module compiled into JavaScript/HTML. You might also want to exclude .gwt where GWT dumps log information during work in Development Mode.
Also in your project directory be sure to ignore the gwt-unitCache. This is where gwt stores a manifest of what units have been compiled for re-usability.
Hope this helps.