本文介绍了如何压缩Java eclipse项目,以便它可以轻松展开到另一台计算机上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在申请一份工作,要求我发送一些压缩的Java源代码,以便轻松展开到Eclipse中。所以,我只是压缩了我的src和测试目录,但是如果你将它复制并粘贴到eclipse中,则测试目录不会被识别为源文件夹。有没有更好的方法来做到这一点,我错过了?

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?

谢谢你

推荐答案

在Eclipse中:


  1. 文件>导出

  2. 选择常规>存档文件导出向导。

  3. 选择要导出的项目。

  4. 选择存档文件类型(ZIP或TAR)和其他选项。

  5. 输入存档文件名

  6. 单击完成。

  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.

这为您提供了一个包含项目的存档文件,其中包含Eclipse项目元数据,设置等。(您可以取消选择此阶段不需要的任何位,或者将项目导入目标Eclipse工作区时。)

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.)

这篇关于如何压缩Java eclipse项目,以便它可以轻松展开到另一台计算机上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 17:19