An easy way to convert an eclipse IFile to a java.io.File:&nbsp; (this uses ProjectUtil from org.jboss.ide.eclipse.core)<br><br>IFile eclipseFile = //..<br><br>IPath projectPath = ProjectUtil.getProjectLocation(eclipseFile.getProject
());<br>IPath filePath = eclipseFile.getProjectRelativePath();<br>File javaFile = new File(projectPath.append(filePath).toFile());<br><br><div><span class="gmail_quote">On 7/13/06, <b class="gmail_sendername">Marshall Culpepper
</b> &lt;<a href="mailto:marshall.culpepper@jboss.com">marshall.culpepper@jboss.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Spiffy, I'll re-run the integration build then =)</div><div><span class="e" id="q_10c690dc0d873c5d_1"><br><br><br><div><span class="gmail_quote">On 7/13/06, <b class="gmail_sendername">Max Rydahl Andersen</b> &lt;<a href="mailto:max.andersen@jboss.com" title="mailto:max.andersen@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max.andersen@jboss.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Marshall,<br><br>yes - the tests where having &quot;fun&quot; because of lib mismatches.
<br><br>I have fixed those now and also enabled *all* tests; including those that<br>currently fails because of me not knowing how to make them work inside<br>eclipse.<br><br>The problem is that some of my tests want to access some files and
<br>directories directly.<br>e.g. i have some jar's normally in directory that the tests should load in<br>an isolated<br>classloader; but how do it make those accessible to the unit tests?<br><br>Basically what i need is just some way of putting files into the test
<br>plugin in<br>a root directory e.g. /testfiles, but how do i actually access those as<br>java.io.File's ?<br><br>any idea.<br><br>btw. i've moved the tag to include the now running (but some still<br>failing) tests to actually see it happen ;)
<br><br>--<br>--<br>Max Rydahl Andersen<br>callto://max.rydahl.andersen<br><br>Hibernate<br><a href="mailto:max@hibernate.org" title="mailto:max@hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max@hibernate.org</a><br><a href="http://hibernate.org" title="http://hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hibernate.org</a><br><br>JBoss Inc
<br><a href="mailto:max.andersen@jboss.com" title="mailto:max.andersen@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">max.andersen@jboss.com</a><br>_______________________________________________
<br>jbosside-dev mailing list<br><a href="mailto:jbosside-dev@lists.jboss.org" title="mailto:jbosside-dev@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jbosside-dev@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/jbosside-dev" title="https://lists.jboss.org/mailman/listinfo/jbosside-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/jbosside-dev
</a><br></blockquote></div><br><br clear="all"><br></span></div><div><span class="sg">-- <br>Marshall Culpepper<br><a href="mailto:marshall.culpepper@jboss.com" title="mailto:marshall.culpepper@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

marshall.culpepper@jboss.com</a><br>JBoss Eclipse IDE Lead, JBoss Inc.

</span></div></blockquote></div><br><br clear="all"><br>-- <br>Marshall Culpepper<br><a href="mailto:marshall.culpepper@jboss.com">marshall.culpepper@jboss.com</a><br>JBoss Eclipse IDE Lead, JBoss Inc.