p2 director 命令行参数查找可安装单元没有return信息

p2 director command line parameter to find installable units does not return information

我正在尝试使用带有命令行参数的 p2 director 从 p2 存储库中获取可安装单元的列表。我从这个 post 开始使用 -list 参数的步骤:

Command line to find units in a p2 repository using p2 query language

但是,当我运行 p2 director时,命令行returns什么都没有。

我的命令行如下所示:

"C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse"\eclipsec.exe -application org.eclipse.equinox.p2.director -debug "C:\Users\IBM_ADMIN\Documents\projects\localtpbuild\p2Options.txt" -repository 

如您所见,我使用 -debug 命令打开了调试。我的选项文件包含:

org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/artifacts/mirrors=true

我正在运行从批处理文件中执行命令:

@ECHO OFF
SET _EXEDIR_="C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse"
SET _REPO_=https://download.eclipse.org/technology/swtbot/releases/latest/
@ECHO Querying P2...
@ECHO ON
%_EXEDIR_%\eclipsec.exe -application org.eclipse.equinox.p2.director -debug "C:\Users\IBM_ADMIN\Documents\projects\localtpbuild\p2Options.txt" -repository %_REPO_% -list
@ECHO P2 query complete.
@ECHO OFF
pause

显示调试信息但没有条目的结果是:

Querying P2...

C:\Users\IBM_ADMIN\Documents\projects\localtpbuild>"C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse"\eclipsec.exe -application org.eclipse.equinox.p2.director -debug "C:\Users\IBM_ADMIN\Documents\projects\localtpbuild\p2Options.txt" -repository https://download.eclipse.org/technology/swtbot/releases/latest/ -list
Start VM: C:/IBM/IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5/eclipseDevelopmentPackage/ibm_sdk80/jre/bin/javaw.exe
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-XX:PermSize=64m
-Dosgi.requiredJavaVersion=1.6
-Dosgi.bundlefile.limit=100
-Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1
-jar C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse\plugins\org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os win32
-ws win32
-arch x86
-showsplash
-launcher C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse\eclipsec.exe
-name IBM Development Package for Eclipse
--launcher.library C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.500.v20170531-1133\eclipse_1624.dll
-startup C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse\plugins\org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.overrideVmargs
-exitdata 3db8_a0
-application org.eclipse.equinox.p2.director
-debug C:\Users\IBM_ADMIN\Documents\projects\localtpbuild\p2Options.txt
-repository https://download.eclipse.org/technology/swtbot/releases/latest/
-list
-vm C:/IBM/IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5/eclipseDevelopmentPackage/ibm_sdk80/jre/bin/javaw.exe
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-XX:PermSize=64m
-Dosgi.requiredJavaVersion=1.6
-Dosgi.bundlefile.limit=100
-Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1
-jar C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\eclipse\plugins\org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

P2 query complete.
Press any key to continue . . .

我是不是漏掉了什么?

看来你运行变成了Eclipse bug 417799

作为解决方法,将以下内容添加到您的命令行(使用 ...\server\jvm.dll 而不是 ...\javaw.exe):

-vm C:\IBM\IBM_DevelopmentPackage_for_Eclipse_Win_X86_32_6.5.5\eclipseDevelopmentPackage\ibm_sdk80\jre\bin\server\jvm.dll