[opencms-dev] isInsideProject() returns always true for me
Vaclav Balak
shmoula at gmail.com
Tue Feb 9 16:52:58 CET 2010
Hi,
I have following piece of code to deciding that resource is or is
not inside online project:
CmsProject onlineProject =
cmsObject.readProject(CmsProject.ONLINE_PROJECT_NAME);
CmsResourceUtil resUtil = new CmsResourceUtil(cmsObject);
resUtil.setReferenceProject(onlineProject);
resUtil.setResource(resource);
boolean isInside = resUtil.isInsideProject();
Problem is that I get always "true", but when I browse to Online
project in Explorer, that resource is not there :-(. Where can be
problem?
Thanks in advance
Vaclav Balak
More information about the opencms-dev
mailing list