Hi all,<div><br></div><div>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. </div>
<div><br></div><div>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:</div>
<div><br></div><div>-Compile the class based on the JavaSource object</div><div>-(optionally) Create a temporarily .class object</div><div>-Load the class</div><div>-(optionally) instantiate it</div><div><br></div><div>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.</div>
<div><br></div><div>Paul</div>