[
https://issues.apache.org/jira/browse/CB-13688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16295184#comment-16295184
]
KAI Development commented on CB-13688:
--------------------------------------
Windows explorer shows them as read only.
To re-create, clear out the 'platforms\android\assets\www' folder. Select a
file in your master 'www' folder and mark it as read only. run 'cordova build
android'. The 'platforms\android\assets\www' folder will be updated with the
files from the master 'www' and will also have the read only attribute. If you
then mark the file as not read only and edit it in the master 'www' folder. Run
'cordova build android'. The file won't be updated in the android platform.
We have a workaround which is a hook on after_build which goes through that
folder and marks all of the files are not read only, but would be nice if
cordova did it itself
> Running on android with source control in Visual Studio
> -------------------------------------------------------
>
> Key: CB-13688
> URL: https://issues.apache.org/jira/browse/CB-13688
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: [email protected]
> Environment: Windows 10
> Visual Studio 2017 with source control
> Reporter: KAI Development
> Assignee: Joe Bowser
> Priority: Minor
> Labels: build, easyfix
>
> When you run the command 'cordova run android', the 'www' folder is copied to
> the 'platforms\android\asset\www' and
> 'android\build\intermediates\assets\debug\www' folders. When using Visual
> Studio and source control, unless you have all of the files checked out, they
> are marked as read only. This attribute is copied over to the previously
> mentioned two folders, causing issues when changing files and then re-running
> the command 'cordova run android' as it won't update files that are marked as
> read only. The way around this is to delete the two folders and re-run the
> run command, but this isn't something we want to keep doing (we sometimes
> forget)
> Could the read only attributes be removed when copying to the two folders?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]