quality@glassfish.java.net

Re: [pkg] pkg command question/bug

From: Judy Tang <Judy.J.Tang_at_Sun.COM>
Date: Tue, 14 Apr 2009 21:22:52 -0700

Hi Karen,

This is a good question. Let me forward your question to pkg developer.

Your jubject "[pkg] pkg command question/bug" gives clear picture, it
has [subcomponent], thanks for
following this convention. Also your email gives 2 examples to show
your question clearly !

Thanks :-)
Judy

Karen Ho wrote:
>
> Hi,
>
>
>
> Please kindly help to verify if this is a bug or a feature(?) for the
> pkg command:
>
>
>
> If you directly run the pkg command (e.g. pkg list -a) in the bin
> directory (refer to example 1 below), it will be run successfully.
> However, if you try to run the same pkg command outside the glassfish
> directory (refer to example 2 below), it will prompt an error message
> saying that "pkg: No image found." It looks like that the pkg command
> will look up the application image from current execution folder
> instead of the path where the pkg command located. Is it a bug?
> Please clarify.
>
>
>
> Example 1
>
> =================================
>
> C:\dev\glassfishv3\bin>pkg list -a
>
> NAME (AUTHORITY) VERSION
> STATE UFIX
>
> felix 1.2.2-0
> installed ----
>
> glassfish-amx 3.0-44
> installed ----
>
> glassfish-api 3.0-44
> installed ----
>
> glassfish-appclient 3.0-44
> installed ----
>
> ...
>
>
>
>
>
> Example 2
>
> =================================
>
> D:\somewhere>C:\dev\glassfishv3\bin\pkg list -a
>
> pkg: No image found.
>
>
>
>
>
> Thanks & Regards,
>
> Karen
>