Rony G. Flatscher wrote:
Hi there,

finally, I would like to use the PackageManager from a script from a commandline.

Some methods of "com.sun.star.deployment.XPackageManager" require a "com.sun.star.ucb.XCommandEnvironment" as an argument. E.g. "addPackage(string, string, XAbortChannel, XCommandEnvironment)", "removePackage(string, XAbortChannel, XCommandEnvironment)", "getDeployedPackages(XAbortChannel, XCommandEnvironment)".

Looking through the docs (dev-guide) and googling on the Internet does not reveal, how one would be able to get to an object containing the XCommandEnvironment interface. Also, the OOo WWW site is down for two days :( so I am not able to research there.

Is there anyone who has an idea/hint or even code (snippets) ?

The XCommandEnvironment has to be implemented by the caller, there are no services or factories that would give you one. The unopkg tool (in CVS module desktop) can be used as a non-GUI application that uses the XPackageManager, so if you search around there you should find some example code how to implement an XCommandEnvironment for a commandline scenario.

-Stephan

TIA,

---rony

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to