Hi,
I was able to resolve the compile errors in Eclipse by manually setting
the Default output folder for core project to core/build/classes/main.
Looking further into this issue I see that the output folders for gradle
and those for eclipse get configured differently. The output folders in
eclipse go under <project>/bin where as in gradle they are under
<project>/build. Will it be fine if we could align these so that inter
project dependencies fall well in place in either build? I was looking
into the possibilities of fixing that.
There is another discussion on the pros and cons of this here
https://discuss.gradle.org/t/eclipse-generated-files-should-be-put-in-the-same-place-as-the-gradle-generated-files/6986
thanks
-dhwani
On 01/04/2017 12:15 AM, Dhwani Katagade wrote:
Hi,
I am trying to setup the eclipse dev environment on trunk. I have
followed the instructions given here
https://github.com/apache/kafka/blob/trunk/README.md
https://cwiki.apache.org/confluence/display/KAFKA/Developer+Setup#DeveloperSetup-Eclipsesetup
After I run ./gradlew eclipse in the command line followed by "Import
existing projects into workspace" in Eclipse, I am able to see the
projects. But I see the following build errors in Eclipse.
Description: The import kafka.utils.ShutdownableThread cannot be resolved
Resource: Consumer.java
Path: /kafka-examples/src/main/java/kafka/examples
Location: line 19
Type: Java Problem
There are other errors as well but they are of a similar nature and
others dependent on them. I can see the class ShutdownableThread in
core and core is compiled properly. The examples project has core
setup as dependency project which seems correct. Also the command
line build works just fine.
Also I don't see any .class files generated under core/bin. They are
present under core/build/classes/main/ though. Is this due to some
kind of mismatch between the command line build and Eclipse build?
Could you please suggest what am I missing here.
Environment:
- Eclipse Neon
- Java 1.7
- Scala 2.10.6
- CentOS 6.8
thanks
-dhwani
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which
is the property of Persistent Systems Ltd. It is intended only for the
use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain,
copy, print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies
of this message. Persistent Systems Ltd. does not accept any liability
for virus infected mails.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.