Hi Steve, I guess who tested this was on OsX, and you are not. Byteman requires the tools.jar from the JDK on it's classpath to be able to load the agent dynamically (i.e. not require the agent to be defined on the JVM boot parameters). The tool.jar happens to be on the classpath by default when run on Macs, but is not on Linux.
With Hibernate Search (Maven) we have it setup like: https://github.com/hibernate/hibernate-search/blob/master/hibernate-search-orm/pom.xml#L157 Using a profile to detect where the jar is (end of the same file) Sanne On 19 March 2012 18:56, Steve Ebersole <st...@hibernate.org> wrote: > Ugh, I see... Gradle seems to now store repo caches by Gradle version > under ~/caches/{gradleVersion}. Anyway, the test still fails for me > locally... > > On Mon 19 Mar 2012 01:49:04 PM CDT, Steve Ebersole wrote: >> Actually, not sure its really working in Gradle side either., I get >> one failure after pull, which is the (afaict) single test using byteman: >> >> Test org.hibernate.test.annotations.xml.ejb3.OrmVersion1SupportedTest >> FAILED >> >> java.lang.NoClassDefFoundError: >> com/sun/tools/attach/AgentInitializationException >> at >> org.jboss.byteman.contrib.bmunit.BMUnitRunner$7.evaluate(BMUnitRunner.java:316) >> >> >> So obviously byteman itself at least is being found when run from >> Gradle, even though the test fails. But still cannot find where this >> file went. >> >> On Mon 19 Mar 2012 01:30:37 PM CDT, Steve Ebersole wrote: >>> Having some problems getting the recently added byteman stuff to work >>> in terms of IntelliJ. Basically it comes down to I cannot find the >>> byteman jars anywhere. I run the compileTestJava task and see >>> gradle/ivy downloading the jars. But afterwards I cannot find them in >>> ~/.gradle/cache. I also looked in ~/.m2/repository just to make sure, >>> but did not see them in there either. Thoughts? >>> >>> >> > > -- > st...@hibernate.org > http://hibernate.org > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev