An easy way to convert an eclipse IFile to a java.io.File:  (this uses ProjectUtil from org.jboss.ide.eclipse.core)

IFile eclipseFile = //..

IPath projectPath = ProjectUtil.getProjectLocation(eclipseFile.getProject ());
IPath filePath = eclipseFile.getProjectRelativePath();
File javaFile = new File(projectPath.append(filePath).toFile());

On 7/13/06, Marshall Culpepper <marshall.culpepper@jboss.com> wrote:
Spiffy, I'll re-run the integration build then =)



On 7/13/06, Max Rydahl Andersen < max.andersen@jboss.com > wrote:
Hi Marshall,

yes - the tests where having "fun" because of lib mismatches.

I have fixed those now and also enabled *all* tests; including those that
currently fails because of me not knowing how to make them work inside
eclipse.

The problem is that some of my tests want to access some files and
directories directly.
e.g. i have some jar's normally in directory that the tests should load in
an isolated
classloader; but how do it make those accessible to the unit tests?

Basically what i need is just some way of putting files into the test
plugin in
a root directory e.g. /testfiles, but how do i actually access those as
java.io.File's ?

any idea.

btw. i've moved the tag to include the now running (but some still
failing) tests to actually see it happen ;)

--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
max@hibernate.org
http://hibernate.org

JBoss Inc
max.andersen@jboss.com
_______________________________________________
jbosside-dev mailing list
jbosside-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosside-dev



--
Marshall Culpepper
marshall.culpepper@jboss.com
JBoss Eclipse IDE Lead, JBoss Inc.



--
Marshall Culpepper
marshall.culpepper@jboss.com
JBoss Eclipse IDE Lead, JBoss Inc.