For the Arquillian plugin I will just implement it another way for now. This small feature doesn&#39;t justify adding something large to the core like this. <div><br></div><div>For the plugin I now just generate a new class with a main method to the project&#39;s test-source folder. After that I use an mvn exec:java to run the class. It&#39;s less ideal because the plugin now adds a user visible utility class to the project, but it&#39;s not really a problem I believe. The exporter class is also runnable outside of Forge, so that&#39;s good too.<div>
<br></div><div>Paul<br><div><div><br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 11:04 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I agree with you. But if someone wants to work on this, I&#39;m not going to stop them :) It need only be another plugin.<br>
<br>No use-cases come to mind right away, but I&#39;m sure there&#39;s use.<br><font color="#888888"><br>~Lincoln</font><div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On Tue, Mar 29, 2011 at 4:45 PM, Paul Bakker <span dir="ltr">&lt;<a href="http://paul.bakker.nl" target="_blank">paul.bakker.nl</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Before we start on something large like this (it&#39;s far from trivial to get this right) I think we should think about cases where we would really need it to decide if it&#39;s worth the time at this moment. The export feature in the Arquillian plugin isn&#39;t important enough to start this work I think. It&#39;s a useful feature, but not a showstopper. Maybe it&#39;s better to first stabilize and finish more core features that 99% of the users will use. <div>


<br></div><div><div><div><div><div>Any other cases where this is needed at this moment?</div><div><br></div><font color="#888888"><div>Paul</div></font><div><div></div><div><div><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 7:52 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com" target="_blank">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">We can work on prototyping this feature in Forge. This is within the forge Vision, but needs to be done carefully. Maven has some tools for getting information about a project&#39;s dependencies and deliverables. See the MavenDependencyFacet and RepositoryLookup classes. The MavenSystemSession class in RepositoryLookup has methods for reading a project POM. Perhaps we could leverage those. Although, wouldn&#39;t this kind of Export better be handled by the test framework itself, since it is already classloading everything?<br>



<br>~Lincoln<div><div></div><div><br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 10:36 AM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:max.andersen@redhat.com" target="_blank">max.andersen@redhat.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>&gt; I&#39;m working on a feature in the Arquillian plugin that Dan asked about, which is to be able to export @Deployments that are part of the project&#39;s tests. To do this I need to invoke the static method on a test class to create the Archive that has to be exported.<br>




<br>
</div>Not only do you need access to the method you need the full classpath initialized for the project for it work.<br>
<div><br>
&gt; The problem is that is seems to be impossible to load a class that is in the user&#39;s project, although I already have an instance of the JavaSource object that describes the class. I believe it would be best to not rely on the question if the user&#39;s project has been compiled or not. So what should happen is the following:<br>




<br>
&gt; -Compile the class based on the JavaSource object<br>
&gt; -(optionally) Create a temporarily .class object<br>
&gt; -Load the class<br>
&gt; -(optionally) instantiate it<br>
&gt;<br>
&gt; I guess this is something that other plugins might need too in the future, so it would be better to find a reusable solution instead of hacking my way around it.<br>
<br>
<br>
</div>yeah, Dan asked the same for eclipse tooling and I don&#39;t really have a good answer beyond creating an isolated classloader<br>
that loads the users full classpath and execute (optimally under a security manager to avoid too many accidents).<br>
<br>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br><a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>


&quot;Keep it Simple&quot;<br>
</font><br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br><a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&quot;Keep it Simple&quot;<br>

</div></div></blockquote></div><br></div></div></div></div>