On Thu, 13 Jul 2006 22:03:11 +0200, Marshall Culpepper
<marshall.culpepper(a)jboss.com> wrote:
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());
but i don't have a project with these files. They are inside the test
plugin itself.
/max
On 7/13/06, Marshall Culpepper <marshall.culpepper(a)jboss.com>
wrote:
>
> Spiffy, I'll re-run the integration build then =)
>
>
>
> On 7/13/06, Max Rydahl Andersen <max.andersen(a)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(a)hibernate.org
> >
http://hibernate.org
> >
> > JBoss Inc
> > max.andersen(a)jboss.com
> > _______________________________________________
> > jbosside-dev mailing list
> > jbosside-dev(a)lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/jbosside-dev
> >
>
>
>
> --
> Marshall Culpepper
> marshall.culpepper(a)jboss.com
> JBoss Eclipse IDE Lead, JBoss Inc.
>
--
--
Max Rydahl Andersen
callto://max.rydahl.andersen
Hibernate
max(a)hibernate.org
http://hibernate.org
JBoss Inc
max.andersen(a)jboss.com