无法更改默认的输出文件夹 [英] Can't change default output folder

查看:221
本文介绍了无法更改默认的输出文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有

我不能改变在Eclipse中默认的输出文件夹。

I can't change the default output folder in Eclipse.

当我打开属性 - >Java构建路径 - >源,默认的输出文件夹为

When I open "Properties" -> "Java Build Path" -> "Source", the default output folder is

<project_name>/bin/classes

我改成了

<project_name>/bin

节约,清洁,建设该项目。它改回

save and clean-build this project. It changed back to

<project_name>/bin/classes

这件事发生后,我更新了我的ADT插件到15.0.1

This happened after I updated my ADT plugin to 15.0.1

某些配置:

Eclipse:
Eclipse IDE for Java Developers<br/>
Version: Indigo Service Release 1<br/>
Build id: 20110916-0149

ADT Version: 15.0.1.v201111031820-219398

OS: Mac 10.7.2

SCM: Git 1.7.4.4

任何建议都是AP preciated。

Any suggestions are appreciated.

谢谢, 约翰尼

推荐答案

Android的变化修订14

切换到bin输出文件夹。虽然Ant构建系统放   javac使用在Android的斌/班/,配置输出   在Eclipse项目采用斌/,像标准的Java项目。这有   一直是一个小问题,因为我们把其他文件在那里(如   在APK和DEX文件),但还需要使用该文件夹作为源   的DEX一步。值得庆幸的是,DEX会忽略这些文件。以来   我们开始把资源项中有太多(PNG紧缩缓存),我们   决定改变项目输出(至于JDT而言)   斌/班/。 ADT仍然采用斌/作为其顶级的输出文件夹   Android的特定文件。可见副作用是,斌/意愿   现在在Package Explorer视图中显示(但不斌/班/作为JDT   隐藏的唯一输出文件夹就知道)。

Change to the bin output folder. While the Ant build system puts the output of javac in bin/classes/, the configuration of the Android projects in Eclipse uses bin/, like standard Java projects. This has always been a small problem because we put other files in there (like the apk and dex files), but also need to use this folder as the source of the dex step. Thankfully, dex would just ignore those files. Since we started putting resource items in there too (png crunch cache), we decided to change the project output (as far as the JDT is concerned) to bin/classes/. ADT still uses bin/ as its top-level output folder for Android specific files. The visible side effect is that bin/ will now show up in the Package Explorer view (but not bin/classes/ as JDT hides the only output folder it knows about).

这似乎在暗示,Android有它自己的版本的设置和替换JDT构建设置(即输出文件夹下的属性 - > Java构建Path->源)相匹配。

This seems to imply that Android has it's own build settings and replaces the JDT build settings (i.e. "output folder" under Properties->Java Build Path->Sources) to match.

该博客有点疯狂介绍如何通过添加/更改文件build.properties在你的项目的根文件夹改变ADT的Ant的out.dir财产。您还可以与build.properties改变gen.dir的位置。

The blog "A Little Madness" describes how to change the out.dir property of ADT's Ant by adding/changing the file build.properties in your project's root folder. You can also change the location of gen.dir with build.properties.

out.dir=bin
gen.dir=gen

请注意,Eclipse已经在过去使用外部工具在其输出文件夹修改类的问题,其可能out.dir =斌/班这个原因。

Note that Eclipse has had problems in the past with external tools modifying classes in its output folder, and its possible that out.dir=bin/classes for this reason.

免责声明:我没有尝试过任何这一点,但。这个建议可能会解决什么都没有,造成不同的问题,还是有希望的工作。

Disclaimer: I haven't tried any of this, yet. This suggestion may fix nothing, cause different problems, or, hopefully, work.

这篇关于无法更改默认的输出文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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