p2 director: Any success/failure tests? [message #642717] |
Thu, 02 December 2010 08:16  |
Eclipse User |
|
|
|
[The eclipse.p2 newsgroup seems to be completely silent.
Therefore I retry on this group.]
Our installation program is supposed to allow installation of additional
plugins to our RCP application using the p2 director as described in
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/p2_director.html
1) How can we test that the installation succeeds?
2) There exists the parameter -verifyOnly described as
"only verify that the actions can be performed. Don't actually install
or remove anything."
First, I observe that calling with this parameter changes *something*,
e.g. there are new directories in the configuration folder after that.
Second, the same question applies to this call: How can we recognice a
success?
I observe that on failure a .log file is produced in the configuration
directory, but this seems not to be documented (AFAIK). Are we really
supposed to search for such a log file as indicator?
Thanks & Greetings from Bremen,
Daniel Krügler
|
|
|
|
|
|
Re: p2 director: Any success/failure tests? [message #643357 is a reply to message #643308] |
Mon, 06 December 2010 10:38  |
Eclipse User |
|
|
|
On 12/6/2010 14:03, Paul Webster wrote:
> Daniel Krügler wrote:
>> On 12/2/2010 19:30, Paul Webster wrote:
>>> Wouldn't the director return a "failed" exit code if it fails? Although
>>> that's more reliable to check on linux than on all platforms.
>>
>> According to our installation guys it doesn't (we have a Windows
>> platform). Even worse: It seems that calling the director does not
>> invoke synchronously: The installation cannot just delete temporary
>> files immediately after the invocation, because the process may still
>> need to access the files. This makes it hard to integrate the director
>> into our installation process.
>
> that's probably because by default, eclipse.exe calls javaw.exe. That's
> not what you want (maybe call it with -vm c:\whatever\bin\java.exe
> instead of javaw.exe).
>
> If you were to run java.exe -jar
> eclipse\plugins\org.eclipse.equinox.launcher_1.2.0.v20101119 .jar
> -application org.eclipse.equinox.p2.director <rest of command>
Thanks Paul, this sounds like a brilliant idea - we will test this
approach and give feedback to the group!
Greetings from Bremen,
- Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03608 seconds