I am applying for a job which is requesting that I send in some Java source code zipped up so that it can be "easily unfolded into Eclipse". So, I simply zipped up my src and test directories but if you开发者_如何学运维 copy and paste this into eclipse the test directory is not recognized as a source folder. Is there a better way to do this that I am missing?
Thankyou
In Eclipse:
- File > Export
- Select the General > Archive File export wizard.
- Select the project(s) to be exported.
- Choose the archive file type (ZIP or TAR), and other options.
- Enter the archive file name
- Click Finish.
This gives you an archive file containing the project complete with the Eclipse project metadata, settings, etc. (You can deselect any bits you don't want at this stage, or when you Import the project into the target Eclipse workspace.)
If you're not worried about any project-specific configuration settings that are stored in the .classpath
and .project
files you can just zip archive the src directory. When you're at your new computer just extract the archive into a new folder. Then in Eclipse when you're creating a new project uncheck "Use default location" and browse to the new folder that you extracted the src archive into.
http://agile.csc.ncsu.edu/SEMaterials/tutorials/import_export/
精彩评论