You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Lindsey Simon <el...@gmail.com> on 2013/09/16 19:26:02 UTC

phonegap build doesn't preserve symlink paths

In my project/www I symlink my js/css/img directories to another directory
in my tree (where my server deploys from).

When I run `phonegap build android` the symlinks get copied to
platforms/android/assets/www/css but the path is no longer valid.

Anyone else experience this? Should I file a bug? (and attempt a CL?)

Thanks

Re: phonegap build doesn't preserve symlink paths

Posted by Michal Mocny <mm...@chromium.org>.
Yeah I think we fixed it to copy the underlying file if there are symlinks
inside the platform folder, but the copy from www/ to platform just does
the equivalent of cp -R which never resolves relative paths (nor should it,
really, though there may be a flag to have it do so).

-Michal


On Mon, Sep 16, 2013 at 5:36 PM, Lindsey Simon <el...@gmail.com> wrote:

> On Mon, Sep 16, 2013 at 1:09 PM, Michal Mocny <mm...@chromium.org> wrote:
>
> > Creating symlinks to absolute paths might be sufficient to fix your issue
> > right now.
> >
> >
> Good idea, that totally worked for now.
>
>
> >
> >
> > On Mon, Sep 16, 2013 at 12:44 PM, Lindsey Simon <ls...@commoner.com>
> > wrote:
> >
> > > Ok cool thanks fellas - I didn't know if this was a bug or if maybe I
> was
> > > just doing it wrong..
> > >
> > >
> > >
> > > On Mon, Sep 16, 2013 at 12:03 PM, Andrew Grieve <agrieve@chromium.org
> > > >wrote:
> > >
> > > > Bug filed: https://issues.apache.org/jira/browse/CB-4828
> > > >
> > > > Thanks Lindsey.
> > > >
> > > >
> > > > On Mon, Sep 16, 2013 at 2:17 PM, Shazron <sh...@gmail.com> wrote:
> > > >
> > > > > Lindsey, always file an issue. Thanks :)
> > > > >
> > > > >
> > > > > On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com>
> > > > wrote:
> > > > >
> > > > > > In my project/www I symlink my js/css/img directories to another
> > > > > directory
> > > > > > in my tree (where my server deploys from).
> > > > > >
> > > > > > When I run `phonegap build android` the symlinks get copied to
> > > > > > platforms/android/assets/www/css but the path is no longer valid.
> > > > > >
> > > > > > Anyone else experience this? Should I file a bug? (and attempt a
> > CL?)
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: phonegap build doesn't preserve symlink paths

Posted by Lindsey Simon <el...@gmail.com>.
On Mon, Sep 16, 2013 at 1:09 PM, Michal Mocny <mm...@chromium.org> wrote:

> Creating symlinks to absolute paths might be sufficient to fix your issue
> right now.
>
>
Good idea, that totally worked for now.


>
>
> On Mon, Sep 16, 2013 at 12:44 PM, Lindsey Simon <ls...@commoner.com>
> wrote:
>
> > Ok cool thanks fellas - I didn't know if this was a bug or if maybe I was
> > just doing it wrong..
> >
> >
> >
> > On Mon, Sep 16, 2013 at 12:03 PM, Andrew Grieve <agrieve@chromium.org
> > >wrote:
> >
> > > Bug filed: https://issues.apache.org/jira/browse/CB-4828
> > >
> > > Thanks Lindsey.
> > >
> > >
> > > On Mon, Sep 16, 2013 at 2:17 PM, Shazron <sh...@gmail.com> wrote:
> > >
> > > > Lindsey, always file an issue. Thanks :)
> > > >
> > > >
> > > > On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com>
> > > wrote:
> > > >
> > > > > In my project/www I symlink my js/css/img directories to another
> > > > directory
> > > > > in my tree (where my server deploys from).
> > > > >
> > > > > When I run `phonegap build android` the symlinks get copied to
> > > > > platforms/android/assets/www/css but the path is no longer valid.
> > > > >
> > > > > Anyone else experience this? Should I file a bug? (and attempt a
> CL?)
> > > > >
> > > > > Thanks
> > > > >
> > > >
> > >
> >
>

Re: phonegap build doesn't preserve symlink paths

Posted by Michal Mocny <mm...@chromium.org>.
Creating symlinks to absolute paths might be sufficient to fix your issue
right now.

-Michal


On Mon, Sep 16, 2013 at 12:44 PM, Lindsey Simon <ls...@commoner.com> wrote:

> Ok cool thanks fellas - I didn't know if this was a bug or if maybe I was
> just doing it wrong..
>
>
>
> On Mon, Sep 16, 2013 at 12:03 PM, Andrew Grieve <agrieve@chromium.org
> >wrote:
>
> > Bug filed: https://issues.apache.org/jira/browse/CB-4828
> >
> > Thanks Lindsey.
> >
> >
> > On Mon, Sep 16, 2013 at 2:17 PM, Shazron <sh...@gmail.com> wrote:
> >
> > > Lindsey, always file an issue. Thanks :)
> > >
> > >
> > > On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com>
> > wrote:
> > >
> > > > In my project/www I symlink my js/css/img directories to another
> > > directory
> > > > in my tree (where my server deploys from).
> > > >
> > > > When I run `phonegap build android` the symlinks get copied to
> > > > platforms/android/assets/www/css but the path is no longer valid.
> > > >
> > > > Anyone else experience this? Should I file a bug? (and attempt a CL?)
> > > >
> > > > Thanks
> > > >
> > >
> >
>

Re: phonegap build doesn't preserve symlink paths

Posted by Lindsey Simon <ls...@commoner.com>.
Ok cool thanks fellas - I didn't know if this was a bug or if maybe I was
just doing it wrong..



On Mon, Sep 16, 2013 at 12:03 PM, Andrew Grieve <ag...@chromium.org>wrote:

> Bug filed: https://issues.apache.org/jira/browse/CB-4828
>
> Thanks Lindsey.
>
>
> On Mon, Sep 16, 2013 at 2:17 PM, Shazron <sh...@gmail.com> wrote:
>
> > Lindsey, always file an issue. Thanks :)
> >
> >
> > On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com>
> wrote:
> >
> > > In my project/www I symlink my js/css/img directories to another
> > directory
> > > in my tree (where my server deploys from).
> > >
> > > When I run `phonegap build android` the symlinks get copied to
> > > platforms/android/assets/www/css but the path is no longer valid.
> > >
> > > Anyone else experience this? Should I file a bug? (and attempt a CL?)
> > >
> > > Thanks
> > >
> >
>

Re: phonegap build doesn't preserve symlink paths

Posted by Andrew Grieve <ag...@chromium.org>.
Bug filed: https://issues.apache.org/jira/browse/CB-4828

Thanks Lindsey.


On Mon, Sep 16, 2013 at 2:17 PM, Shazron <sh...@gmail.com> wrote:

> Lindsey, always file an issue. Thanks :)
>
>
> On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com> wrote:
>
> > In my project/www I symlink my js/css/img directories to another
> directory
> > in my tree (where my server deploys from).
> >
> > When I run `phonegap build android` the symlinks get copied to
> > platforms/android/assets/www/css but the path is no longer valid.
> >
> > Anyone else experience this? Should I file a bug? (and attempt a CL?)
> >
> > Thanks
> >
>

Re: phonegap build doesn't preserve symlink paths

Posted by Shazron <sh...@gmail.com>.
Lindsey, always file an issue. Thanks :)


On Mon, Sep 16, 2013 at 10:26 AM, Lindsey Simon <el...@gmail.com> wrote:

> In my project/www I symlink my js/css/img directories to another directory
> in my tree (where my server deploys from).
>
> When I run `phonegap build android` the symlinks get copied to
> platforms/android/assets/www/css but the path is no longer valid.
>
> Anyone else experience this? Should I file a bug? (and attempt a CL?)
>
> Thanks
>