误差修改在尝试同步跨越Windows机器和一个Ubuntu机Eclipse工作区文件;该文件必须或不能被包括在内? [英] Erros in trying to synchronize Eclipse workspace files across a Windows machine and an Ubuntu machine; which files must or must not be included?

查看:232
本文介绍了误差修改在尝试同步跨越Windows机器和一个Ubuntu机Eclipse工作区文件;该文件必须或不能被包括在内?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发Windows机器上一个Android应用程序。现在我想继续在其他的Ubuntu 10.04 LTS机的开发。我想电脑维护项目文件的每台计算机上有最新版本之间移动。我使用的SpiderOak创建的Eclipse里面我是用促进发展的工作空间目录的同步。当文件从Windows计算机复制到Ubuntu的机器,我跑了Eclipse中,错误是presented的路径Java SDK的不能被验证,显示的路径是相关的Windows计算机的路径。

I have been developing an Android app on a Windows machine. Now I would like to continue development on another Ubuntu 10.04 LTS machine. I would like to move between computers maintaining a recent copy of the project files on each computer. I am using SpiderOak to create a synchronization of the workspace directories of Eclipse which I am using for development. When the files were copied from the Windows machine onto the Ubuntu machine and I ran Eclipse, an error was presented that the path to the java sdk could not be validated and the path shown was the path relevant to the Windows machine.

有一个简单的解决办法?我可以想像,对于工作区具体一些文件不得转让。我可以简单地忽略传递包含在Eclipse中创建的每个工作区的 .metadata 文件夹?我没有兴趣在同步preferences /插件/件没有必要的应用程序的运行。将不包括 .metadata 根据同步建立在不转移有关Android应用程序有价值的信息,另外一个问题正在开发?

Is there a simple solution to this? I can imagine that some files regarding the workspace specifics should not be transferred. Can I simply omit transferring the .metadata folder contained in each workspace created by Eclipse? I am not interested in synchronizing preferences/plugins/parts not essential to the operation of the app. Will excluding the .metadata from the sync create another problem in not transferring valuable information regarding the Android app being developed?

推荐答案

只要我有我的项目源$ C ​​$ C上的手,我永远不会考虑同步Eclipse工作空间目录跨平台开发。正确的方法是单独维护源(通过分别,我表示不源绑定到任何IDE在任何操作系统上,使用版本控制系统始终建议如果条件允许的话),无论你想通过Eclipse或的IntelliJ开始开发,在Windows,Linux或Mac,让你一个复制源并将其导入到你的IDE。

As long as I have my project source code on hand, I will never consider synchronizing Eclipse workspace directory for cross-platform development. The correct way is maintain your source separately (by separately, I means do not bind your source to any IDE on any OS, use version control system is always recommended if the condition allows), wherever your want to start development by Eclipse or IntelliJ, on Windows, Linux or Mac, get a copy of you source and import it into your IDE.

通常情况下,使您的项目的Andr​​oid项目的唯一文件是:

Generally, the only files that makes your project a Android Project are:

  • 的src /
  • RES /
  • 资产/
  • 在LIB /(如果您导入外部JAR库)
  • 在AndroidManifest.xml中
  • project.properties(或default.properties,因为R14改名)
  • proguard.cfg(如果你使用Proguard的)

如果你喜欢SVN团队和使用源代码控制范围内开展工作,这是唯一需要的文件夹/文件需要到SVN检查,所有其他人(的.project,的.classpath,.settings /斌/,目标/和等)是没有必要的。 thoese是通过迭代IDE时产生的进口,建立自己的项目。

If you work within a team and use source control like SVN, these are the only required folders/files that need checked in to SVN, all others (.project, .classpath, .settings/, bin/, target/ and etc.) are not necessary. thoese are iteratively generated by IDE when import and build your project.

这适用于所有三款Android项目类型(Android项目,Libaray项目和测试项目),如果你熟悉像蚂蚁或Maven等构建工具,它也可以帮助你很多维护跨平台开发。

This applies to all three Android project type (Android Project, Libaray Project and Test Project), If you are familiar with other build tools like Ant or Maven, it may also helps you a lot to maintain cross-platform development.

这篇关于误差修改在尝试同步跨越Windows机器和一个Ubuntu机Eclipse工作区文件;该文件必须或不能被包括在内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆