Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序中有一个用例,一些文件将下载到产品安装路径中。我需要检查这些文件是从远程下载的。所以我需要获取产品安装路径(不是工作区)
我需要得到Platform.getInstallLocation().getURL().getPath()
Platform.getInstallLocation().getURL().getPath()
由于 RCPTT 不提供标准 ECL 命令来返回 AUT 位置,因此您需要创建自己的自定义 ECL 命令。此命令将调用Platform.getInstallLocation().getURL()并以字符串形式返回相应的 uri。
Platform.getInstallLocation().getURL()