[ 
https://issues.apache.org/jira/browse/CB-7173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remco Mokveld updated CB-7173:
------------------------------

    Description: 
in 
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/android_parser.js
 the function deleteDefaultResources fails because it is trying to delete 
drawable-{density}/{name} 
from the current working directory instead of the android/res directory. 

Fix: change android_parser.js:86 from 

var template = path.join(filename, name);

to

var template = path.join(res, filename, name);

Also resources from the drawable directory are never deleted. because it does 
not contain the string 'drawable-'

  was:
in metadata\android_parser.js the function deleteDefaultResources fails because 
it is trying to delete drawable-{density}/{name} 
from the current working directory instead of the android/res directory. 

Fix: change android_parser.js:86 from 

var template = path.join(filename, name);

to

var template = path.join(res, filename, name);

Also resources from the drawable directory are never deleted. because it does 
not contain the string 'drawable-'


> deleteDefaultResource fails to delete resources
> -----------------------------------------------
>
>                 Key: CB-7173
>                 URL: https://issues.apache.org/jira/browse/CB-7173
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CLI, CordovaLib
>    Affects Versions: 3.5.0
>         Environment: Windows
>            Reporter: Remco Mokveld
>
> in 
> https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/android_parser.js
>  the function deleteDefaultResources fails because it is trying to delete 
> drawable-{density}/{name} 
> from the current working directory instead of the android/res directory. 
> Fix: change android_parser.js:86 from 
> var template = path.join(filename, name);
> to
> var template = path.join(res, filename, name);
> Also resources from the drawable directory are never deleted. because it does 
> not contain the string 'drawable-'



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to