[jbosside-dev] updated hibernate tools tag for tests

Marshall Culpepper marshall.culpepper at jboss.com
Thu Jul 13 16:03:11 EDT 2006


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 at jboss.com> wrote:
>
> Spiffy, I'll re-run the integration build then =)
>
>
>
> On 7/13/06, Max Rydahl Andersen <max.andersen at 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 at hibernate.org
> > http://hibernate.org
> >
> > JBoss Inc
> > max.andersen at jboss.com
> > _______________________________________________
> > jbosside-dev mailing list
> > jbosside-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/jbosside-dev
> >
>
>
>
> --
> Marshall Culpepper
> marshall.culpepper at jboss.com
> JBoss Eclipse IDE Lead, JBoss Inc.
>



-- 
Marshall Culpepper
marshall.culpepper at jboss.com
JBoss Eclipse IDE Lead, JBoss Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20060713/f74ffa23/attachment.html 


More information about the jbosstools-dev mailing list