# eclipse.defaultOutputDir is ignored

**URL:** <https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520>\
**Category:** Buildship\
**Tags:** buildship\
**Created:** [July 14, 2016, 6:03pm UTC](https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520 "2016-07-14T18:03:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learner](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@Learner](https://discuss.gradle.org/u/Learner)\
**Post date:** [July 14, 2016, 6:03pm UTC](https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520/1 "2016-07-14T18:03:24Z")

</div>

This is already encapsulated in:

[https://bugs.eclipse.org/bugs/show\_bug.cgi?id=488015](https://bugs.eclipse.org/bugs/show_bug.cgi?id=488015)

and, to different extent, in:

[https://bugs.eclipse.org/bugs/show\_bug.cgi?id=472100](https://bugs.eclipse.org/bugs/show_bug.cgi?id=472100)

… but I cannot comment on this there. This is indeed the problem. It is preventing us from moving to Buildship at this time (and we would very much like to move to it). There seem to be more issues surrounding this kind of behaviour…

1. We absolutely have to separate the command-line Gradle build from the Eclipse one. Builds are very different, with different levels of debug info in code and compilation style that affects optimizations and ability to debug / put breakpoints and step through code and to perform incremental compilation, for example. Note that languages other than Java are used as well - in our case Scala, for example.

2. I have yet to confirm whether this is Buildship only or related to something we do “less appropriately” but (command line) test output folders are being added to (main, not test) Eclipse project classpaths. There are multiple issues with this. (a) This is a command-line variant, not an Eclipse one, (b) tests should not be in the main classpath (but you may handle that differently) and ©, this may need to be a project reference, not a folder one, depending on how Buildship does tests (Eclipse wants separate projects to be clean).

---

<div class="post-metadata">

**Author:** ![st\_oehme](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/st_oehme/32/5249_2.png) [@st\_oehme](https://discuss.gradle.org/u/st_oehme)\
**Post date:** [July 14, 2016, 7:07pm UTC](https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520/2 "2016-07-14T19:07:52Z")

</div>

Thank you for the detailed feedback! All of these classpath attributes will be configurable with Gradle 3.0 and the next Buildship release. You’ll be able to separate your main and test classes and put them in any location you like. We will add examples to the release notes of the next Buildship release, so keep an eye out for that 🙂

Out if curiosity: Why can’t you comment on the Bugzillas?

---

<div class="post-metadata">

**Author:** ![Learner](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@Learner](https://discuss.gradle.org/u/Learner)\
**Post date:** [July 28, 2016, 12:51pm UTC](https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520/3 "2016-07-28T12:51:17Z")

</div>

> Out if curiosity: Why can’t you comment on the Bugzillas?

Main reason is because I am not sure that this is a bug or simply something that is intentionally this way and there is another way to accomplish the same goal.

---

<div class="post-metadata">

**Author:** ![st\_oehme](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/st_oehme/32/5249_2.png) [@st\_oehme](https://discuss.gradle.org/u/st_oehme)\
**Post date:** [July 28, 2016, 1:26pm UTC](https://discuss.gradle.org/t/eclipse-defaultoutputdir-is-ignored/18520/4 "2016-07-28T13:26:35Z")

</div>

BugZilla is not just for bugs, despite its name. Feel free to open issues there if something doesn’t seem right.
