p2 Director命令行参数来查找可安装的单元不返回信息 [英] p2 director command line parameter to find installable units does not return information

查看:120
本文介绍了p2 Director命令行参数来查找可安装的单元不返回信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am attempting to use p2 director with a command line parameter to get a list of installable units from a p2 repository. I started with the steps from this post to use the -list parameter:

命令行使用p2查询语言在p2存储库中查找单位

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

However, when I run p2 director, the command line returns nothing.

我的命令行如下:

"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命令打开了调试功能.我的选项文件包含:

As you can see, I turned on debugging using the -debug command. My options file contains:

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

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

I'm running the command from a batch file:

@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

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

And the result, showing debug info, but no entries, is:

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

我想念什么吗?

推荐答案

似乎您遇到了要解决此问题,请在命令行中添加以下内容(使用...\server\jvm.dll代替...\javaw.exe):

As a workaround add the following to your command line (to use ...\server\jvm.dll instead of ...\javaw.exe):

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

这篇关于p2 Director命令行参数来查找可安装的单元不返回信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆