我想获取输出文件夹的绝对路径。它可能是指向工作区外部文件夹的链接。
最佳答案
如果您想以编程方式获取项目输出的系统路径(对于 Eclipse 插件),您可以使用 IJavaProject
:
IPath path = project.getOutputLocation();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IFolder folder = root.getFolder(path);
return folder.getLocation();
还有detailed here :
ResourcesPlugin.getWorkspace().getRoot().findMember(javaProject.getOutputLocation()).getLocation();
关于eclipse - eclipse插件中如何获取项目的输出类路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1032038/