<br><br><div class="gmail_quote">On Mon, Jun 1, 2009 at 1:15 PM, David Allen <span dir="ltr">&lt;<a href="mailto:drallendc@gmail.com">drallendc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, 2009-06-01 at 13:07 -0500, Clint Popetz wrote:<br>
&gt; I&#39;ve added the direct path to the .m2/repository runner jar in the<br>
&gt; tck-impl libraries path in eclipse, which resolves the circularity<br>
&gt; issue without modifying a file that svn knows.  However, I&#39;m still not<br>
&gt; able to run.  Closer, though :)<br>
<br>
</div>OK, as long as everything builds, the test runner is a little easier to<br>
deal with since you can control exactly what is on the classpath.<br>
<br>
In this case, the jboss-tck-runner project itself must be on the<br>
classpath, and each of the JARs and other projects it depends on should<br>
also be on the test runner classpath (except for tck-impl since that is<br>
already the project for the test).  That should be enough to run<br>
it...that&#39;s all I have on mine.<br>
<div><div></div><div class="h5"></div></div></blockquote><div><br>Yay, I was able to get standalone tck tests running in eclipse by adding the following manually to the tck-impl project in eclipse:<br><br>   tck-runner and porting package as straight jar references to the .m2 repo<br>
   webbeans-core and webbeans-core-test as project references<br><br> Now to try integration tests.<br><br>-Clint<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="h5"><br>
&gt;<br>
&gt; -Clint<br>
&gt;<br>
&gt; On Mon, Jun 1, 2009 at 1:03 PM, David Allen &lt;<a href="mailto:drallendc@gmail.com">drallendc@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         On Mon, 2009-06-01 at 12:53 -0500, Clint Popetz wrote:<br>
&gt;         &gt; Ahh, but under m2eclipse (at least under the version I&#39;m<br>
&gt;         running,<br>
&gt;         &gt; 0.9.8.200905041414), the project dependency isn&#39;t under the<br>
&gt;         project<br>
&gt;         &gt; tab.  It&#39;s under Libraries -&gt; Maven Dependencies, and it&#39;s<br>
&gt;         not<br>
&gt;         &gt; editable.  So AFAICT the only way to eliminate the runner -&gt;<br>
&gt;         tck-impl<br>
&gt;         &gt; dependency is to keep a local edit to the pom.<br>
&gt;<br>
&gt;<br>
&gt;         Oh, sorry to hear that.  Somehow it was editable a few months<br>
&gt;         back.  I<br>
&gt;         quit using it due to a bug, so it&#39;s been a while now.<br>
&gt;<br>
&gt;         Hmm, ok, you could do the following, albeit not very elegant.<br>
&gt;<br>
&gt;         1.  Copy the original POM to some new file name of your<br>
&gt;         choice.<br>
&gt;         2.  Edit pom.xml and remove the tck-impl dependency and use<br>
&gt;         Eclipse.<br>
&gt;         3.  Use the POM saved in (1) with the command line &quot;mvn -f<br>
&gt;         &lt;my-saved-pom&gt;.xml&quot; when you want to run all the tests.<br>
&gt;         4.  And never check-in the edited POM in (2).  :)<br>
&gt;<br>
&gt;<br>
&gt;         &gt;<br>
&gt;         &gt; -Clint<br>
&gt;         &gt;<br>
&gt;         &gt; On Mon, Jun 1, 2009 at 12:50 PM, David Allen<br>
&gt;         &lt;<a href="mailto:drallendc@gmail.com">drallendc@gmail.com</a>&gt;<br>
&gt;         &gt; wrote:<br>
&gt;         &gt;         If it helps, I do have IM too.  :)<br>
&gt;         &gt;<br>
&gt;         &gt;         But basically:<br>
&gt;         &gt;<br>
&gt;         &gt;         1.  Keep m2eclipse.<br>
&gt;         &gt;         2.  Don&#39;t modify any POM.<br>
&gt;         &gt;         3.  Modify the Java  Build Path for jboss-tck-runner<br>
&gt;         -- delete<br>
&gt;         &gt;         the<br>
&gt;         &gt;         tck-impl from the Projects tab.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         On Mon, 2009-06-01 at 12:38 -0500, Clint Popetz<br>
&gt;         wrote:<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         &gt; m2eclipse doesn&#39;t generate jar dependencies, it<br>
&gt;         generates<br>
&gt;         &gt;         &gt; project-to-project dependencies if the dependent<br>
&gt;         artifact is<br>
&gt;         &gt;         already a<br>
&gt;         &gt;         &gt; project in the workspace.  So it generates a<br>
&gt;         &gt;         project-to-project<br>
&gt;         &gt;         &gt; dependency between the runner and tck-impl in both<br>
&gt;         &gt;         directions, and<br>
&gt;         &gt;         &gt; eclipse refuses to build either.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; -Clint<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; On Mon, Jun 1, 2009 at 12:34 PM, David Allen<br>
&gt;         &gt;         &lt;<a href="mailto:drallendc@gmail.com">drallendc@gmail.com</a>&gt;<br>
&gt;         &gt;         &gt; wrote:<br>
&gt;         &gt;         &gt;         On Mon, 2009-06-01 at 12:16 -0500, Clint<br>
&gt;         Popetz<br>
&gt;         &gt;         wrote:<br>
&gt;         &gt;         &gt;         &gt; Does eclipse:eclipse not generate a<br>
&gt;         dependency<br>
&gt;         &gt;         from the<br>
&gt;         &gt;         &gt;         runner to<br>
&gt;         &gt;         &gt;         &gt; tck-impl?  Because m2eclipse does, based<br>
&gt;         on the<br>
&gt;         &gt;         pom, and<br>
&gt;         &gt;         &gt;         then I have a<br>
&gt;         &gt;         &gt;         &gt; circular dependency in eclipse.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         Yes it does generate that dependency, but<br>
&gt;         the JAR<br>
&gt;         &gt;         dep is later<br>
&gt;         &gt;         &gt;         after the<br>
&gt;         &gt;         &gt;         project itself (My test runners are always<br>
&gt;         based in<br>
&gt;         &gt;         the<br>
&gt;         &gt;         &gt;         tck-impl<br>
&gt;         &gt;         &gt;         project).<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         Yeah, I vaguely remember having problems<br>
&gt;         with the<br>
&gt;         &gt;         automatic<br>
&gt;         &gt;         &gt;         setup from<br>
&gt;         &gt;         &gt;         m2eclipse too.  But I usually modify the<br>
&gt;         Java build<br>
&gt;         &gt;         path<br>
&gt;         &gt;         &gt;         directly in<br>
&gt;         &gt;         &gt;         Eclipse even with m2eclipse.  This usually<br>
&gt;         works<br>
&gt;         &gt;         fine until a<br>
&gt;         &gt;         &gt;         change in<br>
&gt;         &gt;         &gt;         the POM conflicts with your manual<br>
&gt;         change...but<br>
&gt;         &gt;         that&#39;s not all<br>
&gt;         &gt;         &gt;         that<br>
&gt;         &gt;         &gt;         likely today.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; I can modify the runner&#39;s pom to not<br>
&gt;         have that<br>
&gt;         &gt;         dependency,<br>
&gt;         &gt;         &gt;         which makes<br>
&gt;         &gt;         &gt;         &gt; eclipse happy, but keeps one from<br>
&gt;         running tests<br>
&gt;         &gt;         with mvn out<br>
&gt;         &gt;         &gt;         of the<br>
&gt;         &gt;         &gt;         &gt; runner&#39;s directory on the command line.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; -Clint<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; On Mon, Jun 1, 2009 at 12:08 PM, David<br>
&gt;         Allen<br>
&gt;         &gt;         &gt;         &lt;<a href="mailto:drallendc@gmail.com">drallendc@gmail.com</a>&gt;<br>
&gt;         &gt;         &gt;         &gt; wrote:<br>
&gt;         &gt;         &gt;         &gt;         On Mon, 2009-06-01 at 12:00<br>
&gt;         -0500, Clint<br>
&gt;         &gt;         Popetz<br>
&gt;         &gt;         &gt;         wrote:<br>
&gt;         &gt;         &gt;         &gt;         &gt; Hi,<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt; I&#39;ve tried running the tck<br>
&gt;         from within<br>
&gt;         &gt;         eclipse by<br>
&gt;         &gt;         &gt;         following<br>
&gt;         &gt;         &gt;         &gt;         the<br>
&gt;         &gt;         &gt;         &gt;         &gt; instructions here:<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         <a href="http://seamframework.org/WebBeans/JSR299TCKHarness" target="_blank">http://seamframework.org/WebBeans/JSR299TCKHarness</a><br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt; but I&#39;m having no luck; it<br>
&gt;         can&#39;t find an<br>
&gt;         &gt;         &gt;         implementation of<br>
&gt;         &gt;         &gt;         &gt;         &gt; StandaloneContainers, although<br>
&gt;         I&#39;ve<br>
&gt;         &gt;         manually added<br>
&gt;         &gt;         &gt;         the<br>
&gt;         &gt;         &gt;         &gt;         runner to the<br>
&gt;         &gt;         &gt;         &gt;         &gt; tck-impl project&#39;s<br>
&gt;         dependencies.<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt; Before I dive deeper, are<br>
&gt;         those<br>
&gt;         &gt;         directions up to<br>
&gt;         &gt;         &gt;         date?<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         I think they are up to date, but<br>
&gt;         we can<br>
&gt;         &gt;         certainly<br>
&gt;         &gt;         &gt;         improve them<br>
&gt;         &gt;         &gt;         &gt;         too.  It<br>
&gt;         &gt;         &gt;         &gt;         varies a bit depending on what<br>
&gt;         tools are<br>
&gt;         &gt;         actually<br>
&gt;         &gt;         &gt;         used.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;  Is anyone running the tck<br>
&gt;         from within<br>
&gt;         &gt;         eclipse?<br>
&gt;         &gt;         &gt;          If so, are<br>
&gt;         &gt;         &gt;         &gt;         you<br>
&gt;         &gt;         &gt;         &gt;         &gt; generating projects with<br>
&gt;         eclipse:eclipse<br>
&gt;         &gt;         or with<br>
&gt;         &gt;         &gt;         m2eclipse?<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         Most of us are currently using<br>
&gt;         &gt;         eclipse:eclipse right<br>
&gt;         &gt;         &gt;         now.  But<br>
&gt;         &gt;         &gt;         &gt;         here are<br>
&gt;         &gt;         &gt;         &gt;         a couple things I usually do to<br>
&gt;         get any<br>
&gt;         &gt;         TCK test<br>
&gt;         &gt;         &gt;         (not an<br>
&gt;         &gt;         &gt;         &gt;         in-container<br>
&gt;         &gt;         &gt;         &gt;         only test) running:<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         1.  Modify the build path of the<br>
&gt;         &gt;         jboss-tck-runner<br>
&gt;         &gt;         &gt;         project so<br>
&gt;         &gt;         &gt;         &gt;         that all of<br>
&gt;         &gt;         &gt;         &gt;         its dependent projects/libraries<br>
&gt;         are<br>
&gt;         &gt;         exported<br>
&gt;         &gt;         &gt;         (select all).<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         2.  Choose &quot;Run as TNG test&quot; to<br>
&gt;         get most<br>
&gt;         &gt;         of the<br>
&gt;         &gt;         &gt;         runner setup<br>
&gt;         &gt;         &gt;         &gt;         correctly,<br>
&gt;         &gt;         &gt;         &gt;         but the tests will fail to run<br>
&gt;         at first.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         3.  Modify the runner by going<br>
&gt;         to the<br>
&gt;         &gt;         Classpath tab<br>
&gt;         &gt;         &gt;         and press<br>
&gt;         &gt;         &gt;         &gt;         &quot;Add<br>
&gt;         &gt;         &gt;         &gt;         projects&quot; button and add the<br>
&gt;         &gt;         jboss-tck-runner<br>
&gt;         &gt;         &gt;         project.  With 1<br>
&gt;         &gt;         &gt;         &gt;         above,<br>
&gt;         &gt;         &gt;         &gt;         this should include everything<br>
&gt;         else that<br>
&gt;         &gt;         is needed<br>
&gt;         &gt;         &gt;         too<br>
&gt;         &gt;         &gt;         &gt;         automatically.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         4.  Run it again...this time it<br>
&gt;         should<br>
&gt;         &gt;         work.<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt; Thanks,<br>
&gt;         &gt;         &gt;         &gt;         &gt; -Clint<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt;         &gt;         &gt; Clint Popetz<br>
&gt;         &gt;         &gt;         &gt;         &gt; <a href="http://42lines.net" target="_blank">http://42lines.net</a><br>
&gt;         &gt;         &gt;         &gt;         &gt; Scalable Web Application<br>
&gt;         Development<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         _______________________________________________<br>
&gt;         &gt;         &gt;         &gt;         &gt; webbeans-dev mailing list<br>
&gt;         &gt;         &gt;         &gt;         &gt; <a href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>
&gt;         &gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt;         &gt; Clint Popetz<br>
&gt;         &gt;         &gt;         &gt; <a href="http://42lines.net" target="_blank">http://42lines.net</a><br>
&gt;         &gt;         &gt;         &gt; Scalable Web Application Development<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; --<br>
&gt;         &gt;         &gt; Clint Popetz<br>
&gt;         &gt;         &gt; <a href="http://42lines.net" target="_blank">http://42lines.net</a><br>
&gt;         &gt;         &gt; Scalable Web Application Development<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; --<br>
&gt;         &gt; Clint Popetz<br>
&gt;         &gt; <a href="http://42lines.net" target="_blank">http://42lines.net</a><br>
&gt;         &gt; Scalable Web Application Development<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Clint Popetz<br>
&gt; <a href="http://42lines.net" target="_blank">http://42lines.net</a><br>
&gt; Scalable Web Application Development<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Clint Popetz<br><a href="http://42lines.net">http://42lines.net</a><br>Scalable Web Application Development<br>