Hi David,
The intent of working directory is:

The directory that will be used by runnr to store i's internal stuff as
cached bundles, configuration files for platform, working directories for
platforms.
Default value is "." = current directory.
I tested and works for me. If I start runner as:

pax-run "--workingDirectory="D:/temp"

Then a "runner" dir will be automatically created if it does not exist in
the folder D:/temp which leads to D:/temp/runner/ In that folder you will
find a folder bundles for cached bundles and a folder for each platform you
are starting for example felix.

If you find the name missleading then we can find a better name for the
option.
If the info from wiki is not sufficient I will improve it or better maybe
you can change it as I have all the infor "in my head" so it may be that I
consider sufficient.


The notion you specified with a directory for provisioning is not an option
is an argument in termes of runner = any argument to runner that does not
start with --
So if you wanna provision from a certain directory, let say D:/mybundles you
can do:

pax-run D:/mybundles
or
pax-run file:/D:/mybundles
or
pax-run scan-dir:file:D:/mybundles.

The last option is the most complete one. The other two before are
"discovered" and completed oout to the last form from above.

Alin

On 9/26/07, David Leangen <[EMAIL PROTECTED]> wrote:
>
>
> Hi, Alin,
>
> Ok, upon reading your comment, I now realise that I misunderstood the
> intent
> of --workingDirectory.
>
> Can you please confirm:
>
> --workingDirectory is intended to specify a directory for provisioning. In
> other words, in this directory, one can place bundles that will be started
> by the system.
>
>
> If this is the case, then (1) I think the name "workingDirectory" is
> misleading, and (2) we are missing the option that has the intent I
> thought
> it should.
>
> I think we should change "workingDirectory" (as it is currently) to
> "bundleDirectory", and then add a new option "workingDirectory".  The new
> "workingDirectory" option will allow the user to choose where the output
> "runner" dir is created. Currently, the "runner" dir is created only in
> the
> current working directory, which I find very limiting.
>
> Or, maybe "workingDirectory" is supposed to be using an existing "runner"
> directory that was created previously. If that's the case, we should
> change
> "workingDirectory" to "runnerDirectory" (or whatever), then add the new
> "workingDirectory" as I suggest above.
>
>
> In any case, we need to clarify the current meaning of "workingDirectory"
> by
> maybe improving the explanation and above all changing the name. If you
> can
> clarify the intent, I can lend a hand.
>
>
> wdyt?
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Alin Dreghiciu
> Sent: 26 September 2007 06:08
> To: General OPS4J
> Subject: Re: Lotsa questions bout pax-runner
>
>
> Take a look at the comment from
> http://issues.ops4j.org/jira/browse/PAXRUNNER-46
>
>
> In my view you started pax runner something like:
>
>
> pax-run "workingDirectory=/home/runtime/"
>
>
> and you should have been start it as:
>
>
> pax-run "--workingDirectory=/home/runtime/"
>
>
> Note the "--" in front of workingDirectory.
>
>
> Alin
>
>
>
> On 9/25/07, David Leangen <[EMAIL PROTECTED] > wrote:
> BTW, I noticed the "workingDirectory" option and tried it, but got an
> error (see below).
>
> -> Searching for [workingDirectory=/home/runtime/]
> -> Specification is not a valid url: no protocol:
> workingDirectory=/home/runtime/. Continue discovery...
> -> Specification is not a valid file. Continue discovery...
> -> Specification is not a valid zip file. Stopping.
>          ___
>         /  /
>        /  / Ops, there has been a problem!
>       /  /
>      /__/
>     ___
>    /__/
>
> -> java.lang.RuntimeException:
> org.ops4j.pax.runner.provision.MalformedSpecificationException:
> Specification [workingDirectory=/home/runtime/] could not be used
> java.lang.RuntimeException:
> org.ops4j.pax.runner.provision.MalformedSpecificationException:
> Specification [workingDirectory=/home/runtime/] could not be used
>         at org.ops4j.pax.runner.Run.installBundles( Run.java:286)
>         at org.ops4j.pax.runner.Run.start(Run.java:139)
>         at org.ops4j.pax.runner.Run.main(Run.java:473)
> Caused by:
> org.ops4j.pax.runner.provision.MalformedSpecificationException:
> Specification [workingDirectory=/home /runtime/] could not be used
>         at
> org.ops4j.pax.runner.scanner.dir.internal.DirScanner.scan(DirScanner.java
> :18
> 1)
>         at
> org.ops4j.pax.runner.provision.internal.ProvisionServiceImpl
> .scan(ProvisionS
> erviceImpl.java :159)
>         at
> org.ops4j.pax.runner.provision.internal.ProvisionServiceImpl
> .scan(ProvisionS
> erviceImpl.java:101)
>         at org.ops4j.pax.runner.Run.installBundles(Run.java:276)
>         ... 2 more
>
>
> _______________________________________________
>
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to