开发者

How to zip up a Java eclipse project so it can be easily unfolded onto another computer?

开发者 https://www.devze.com 2023-02-18 02:10 出处:网络
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

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:

  1. File > Export
  2. Select the General > Archive File export wizard.
  3. Select the project(s) to be exported.
  4. Choose the archive file type (ZIP or TAR), and other options.
  5. Enter the archive file name
  6. 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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号