birt xml datasource ref Project Path in Eclipse

script : beforeOpen Data Source

xml = params['xml'];
java.lang.System.out.println(xml);
file = org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot().getProject("PROJECT").getFolder("XML_PATH").getFile(xml).getLocation();
this.setExtensionProperty("FILELIST", file);

No comments: