cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristobal Dabed (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2725) Improve `Copy www directory` script to copy files when `www` is a symlink directory
Date Fri, 22 Mar 2013 02:35:15 GMT

    [ https://issues.apache.org/jira/browse/CB-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609825#comment-13609825
] 

Cristobal Dabed commented on CB-2725:
-------------------------------------

Tested only in the simulator.
However what i did was to test the command manually in the terminal when a
symlink using the SRC_DIR from the script which gives me the following:

macbook-pro:ios cristobaldabed$ ls -l www
lrwxr-xr-x  1 cristobaldabed  staff  6 Mar 19 14:55 www -> ../www

vs.


macbook-pro:ios cristobaldabed$ ls -l www/
total 872
-rw-r--r--   1 cristobaldabed  staff    3609 Feb  6 09:19 Jakefile
-rw-r--r--@  1 cristobaldabed  staff    3014 Dec 18 10:17 README.md
-rwxr-xr-x   1 cristobaldabed  staff    1519 Feb  6 20:55 android.html
-rwxr-xr-x@  1 cristobaldabed  staff  206488 Feb  6 12:32
cordova-2.3.0.android.js
-rwxr-xr-x@  1 cristobaldabed  staff  196938 Mar 19 12:40
cordova-2.5.0.ios.js
drwxr-xr-x   8 cristobaldabed  staff     272 Dec 12 12:54 css
-rw-r--r--   1 cristobaldabed  staff    1559 Mar 21 15:17 desktop.html
drwxr-xr-x  16 cristobaldabed  staff     544 Dec 18 12:23 img
-rw-r--r--   1 cristobaldabed  staff    1468 Mar 21 13:38 ios.html
drwxr-xr-x  20 cristobaldabed  staff     680 Mar 21 15:48 js
…


- Cristobal






                
> Improve `Copy www directory` script to copy files when `www` is a symlink directory
> -----------------------------------------------------------------------------------
>
>                 Key: CB-2725
>                 URL: https://issues.apache.org/jira/browse/CB-2725
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 2.5.0
>         Environment: XCode when building.
>            Reporter: Cristobal Dabed
>            Assignee: James Jong
>            Priority: Minor
>              Labels: improvement, patch, xCode
>             Fix For: Master, 2.5.0
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> Under the copy directory section ammend the following lines
> <code>
> if [[ -L $SRC_DIR ]]; then 
>   SRC_DIR="www/" ## is symlink set path to "www/"
> fi
> </code>
> or just set it to
> <code>
> SRC_DIR="www/"
> </code>
> Both variants work.
> Otherwise it will not copy the files when the `www` folder is a symlink folder.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message