在我的eclipse插件边界中找不到文件

在我的eclipse插件边界中找不到文件,eclipse,plugins,Eclipse,Plugins,我正在开发我的第一个eclipse插件。插件与其他插件一起执行XSLT转换,代码如下: Bundle bundle = Activator.getDefault().getBundle(); IPath smrlSsPath = new Path("/addins/smrl/smrl4odf2shore.xslt"); URL smrlSsUrl = FileLocator.find(bundle, smrlSsPath, Collections.EMPTY_MAP); File smrlSty

我正在开发我的第一个eclipse插件。插件与其他插件一起执行XSLT转换,代码如下:

Bundle bundle = Activator.getDefault().getBundle();
IPath smrlSsPath = new Path("/addins/smrl/smrl4odf2shore.xslt");
URL smrlSsUrl = FileLocator.find(bundle, smrlSsPath, Collections.EMPTY_MAP);
File smrlStylesheet = new File(FileLocator.toFileURL(smrlSsUrl).toURI());
xsltSource = new StreamSource(smrlStylesheet);
transFact = TransformerFactory.newInstance();
trans = transFact.newTransformer(xsltSource);
trans.setParameter("smrl.file", smrlFile.getAbsolutePath());
trans.transform(xmlSource, new StreamResult(outputTempFile));
文件smrl4odf2shore.xslt包括其他xslt文件:

<xsl:include href="odf2shore.xslt"/>
我检查了error中指定的路径,发现只有一个文件:smrl4odf2shore.xslt。样式表中包含的文件(odf2shore.xslt)不存在。我已经在/plugins/目录中检查了我的插件的JAR,并且两个文件都在那里,因此似乎只有/bundles/目录中缺少该文件(eclipse只移动了代码中提到的文件,而不是样式表中提到的文件)


你能告诉我我应该怎么做才能让eclipse将所有文件从JAR移动到/boundles/目录吗?

你确定你的
build.properties
中包含了这些文件吗?是的,我做到了。我仍然不知道如何解决这个问题,所以我添加了几行代码,这些代码除了使用有问题的文件之外什么也不做——这导致文件出现在包中。
ERROR:  'C:\Programy\eclipse\configuration\org.eclipse.osgi\bundles\837\1\.cp\addins\smrl\odf2shore.xslt (The system cannot find the file specified)'
FATAL ERROR:  'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet