Community
Participate
Working Groups
If during product export there is a problem running the director, then we will get an error message that essentially says "java returned 13". We should either parse the build output from the BuildListener, or log the director results using "p2.director.log" (see bug 271386) and then parse that log file.
Created attachment 131995 [details] First hack Attached is a first pass at getting the error message. This ends up looking something like: Installation failed. Application failed, log file location: C:\Dev\Platform\Workspaces\PROV\.metadata\.plugins\org.eclipse.pde.core\New_configuration\1239834825609.log !ENTRY org.eclipse.equinox.p2.director 4 1 2009-04-15 18:33:48.343 !MESSAGE Cannot complete the install because one or more required items could not be found. !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-04-15 18:33:48.343 !MESSAGE Software being installed: com.example.rcpapp.product 1.0.0 !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-04-15 18:33:48.343 !MESSAGE Missing requirement: com.example.rcpapp.product 1.0.0 requires 'foobar bar [1.0.0]' but it could not be found It would be nice if we could parse this into a proper multi-status which removes the !MESSAGE, !ENTRY and !SUBENTRY parts.
BTW, to provoke an error, you can create a p2.inf file beside the .product file and add something like: requires.1.namespace=foobar requires.1.name=bar requires.1.range=[1.0.0,1.0.0] requires.1.greedy=true
Created attachment 132245 [details] updated patch Patch is the same, just updated to match latest. Chris, what do you think of this?
Comment on attachment 132245 [details] updated patch Oops, sorry, this is obsolete. There were changes in build that make this not work. We should instead set "p2.director.log" and then point the user at that log file or read it in.
I'm willing to look at this if you have an updated patch ;) I think pointing people to a log is fine, better than nothing.
Created attachment 133401 [details] updated patch Here is a new patch Chris, it results in error messages like: Cannot complete the install because one or more required items could not be found. Software being installed: com.example.rcpapp.product 1.0.0 Missing requirement: com.example.rcpapp.product 1.0.0 requires 'org.eclipse.rcp.feature.group [3.5.0.v20090407-9RA-FqhFsGODBwZvv0XSJ17]' but it could not be found
will review
done. > 20090427 A bit hackish but we don't have a better option at the moment I think.