Building From Source


(Daniel Truemper) #1

Hi,

I just started to play with Elastic Search. First: great work Shay!

I now tried to build it from source (./gradlew test) but I get compilation errors:

modules/elasticsearch/src/test/java/org/elasticsearch/util/guice/InjectorsTests.java:47: cannot find symbol
symbol : method getInstancesOf(org.elasticsearch.common.inject.Injector,org.elasticsearch.common.inject.matcher.Matcher<java.lang.Class>)
location: class org.elasticsearch.util.guice.Injectors
assertThat(Injectors.getInstancesOf(injector,

Any ideas what I am doing wrong? I have to admit that I have not used Gradle and Guice so far, even though I always wanted to :slight_smile:

Thanks,
Daniel


(Shay Banon) #2

Strang, I don't get this error... . Can you try and run gradlew clean first?
If you just want to build elasticsearch, a faster way is to do "gradlew
release". The distribution will be under build/distribution.

-shay.banon

On Mon, Aug 16, 2010 at 1:03 PM, Daniel Truemper truemped@googlemail.comwrote:

Hi,

I just started to play with Elastic Search. First: great work Shay!

I now tried to build it from source (./gradlew test) but I get compilation
errors:

modules/elasticsearch/src/test/java/org/elasticsearch/util/guice/InjectorsTests.java:47:
cannot find symbol
symbol : method
getInstancesOf(org.elasticsearch.common.inject.Injector,org.elasticsearch.common.inject.matcher.Matcher<java.lang.Class>)
location: class org.elasticsearch.util.guice.Injectors
assertThat(Injectors.getInstancesOf(injector,

Any ideas what I am doing wrong? I have to admit that I have not used
Gradle and Guice so far, even though I always wanted to :slight_smile:

Thanks,
Daniel


(Daniel Truemper) #3

Am 16.08.2010 um 12:18 schrieb Shay Banon:

Strang, I don't get this error... . Can you try and run gradlew clean first? If you just want to build elasticsearch, a faster way is to do "gradlew release". The distribution will be under build/distribution.
Hm, strange. gradlew clean did the trick but I am unsure what it was. Never mind, works now.

Thanks
Daniel


(system) #4