p2 Director命令行参数来查找可安装的单元不返回信息

时间:2019-01-15 20:33:12

标签: eclipse command line p2

我正在尝试将p2 Director与命令行参数一起使用,以从p2存储库中获取可安装单元的列表。我从这篇文章的步骤开始使用-list参数:

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

但是,当我运行p2 Director时,命令行什么也没有返回。

我的命令行如下:

"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 . . .

我想念什么吗?

1 个答案:

答案 0 :(得分:0)

似乎您遇到了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