On 4/5/11 22:50 , Stanislav Muhametsin wrote:
I ran gradlew install, and after some time, it gave the following output:
Test failures in:
org.qi4j.extension.reindexer
FAILURE: Build failed with an exception.
* Where:
Build file '[snip]\qi4j-sdk\build.gradle' line: 242
* What went wrong:
Execution failed for task ':install'.
Cause: There was TEST FAILURES!! See list above.
Now, looking at build/reports/junit/index.html , I see this:
java.lang.Exception: Could not delete test data
at
org.qi4j.index.reindexer.ReindexerTest.afterClass(ReindexerTest.java:127)
and looking at extensions/reindexer/build/testdata, there is one
directory qi4j-entities, containing a single qi4j-entities.lg file with
the size of 8 bytes. I am the owner of the file, and seem to have all
privileges for it, and deleting it manually works fine. Yet for some
reason that test fails.
What happens if you run it twice, efter you had manually deleted it? Is
it a repeatable condition?
Luckily it didn't affect installation. An interesting side-note is that
the build/reports/junit/index.html reports also 4 other test failures
(in SimpleNeoStoreTest ), yet gradle didn't mention them.
Additionally, for some reason the version of qi4j was "0". I used latest
develop branch from github (5.4.2011 commit 466068919e0491d7a007 ). I
remember using "gradlew install" earlier, and IIRC the version was
automatically set to 1.3-SNAPSHOT back then, do I need to manually set
version now each time I do install? I had M2_HOME set to my maven
installation directory (v 3.0.3), and the conf\settings.xml file used
custom local repository location. Also, I used fresh git checkout. Just
telling all this information in case it will help hunting down the
reasons for what happened.
Nowadays the version will always be set to "0" by default (Niclas has
explained why in the emails about transitioning to Gradle), but you can
override it by using "-version version-goes-here" as parameter.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev