You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Baptiste Gaillard (JIRA)" <ji...@apache.org> on 2014/05/27 10:53:01 UTC
[jira] [Updated] (CB-6759) Fail to copy icon files
[ https://issues.apache.org/jira/browse/CB-6759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Baptiste Gaillard updated CB-6759:
----------------------------------
Description:
Hi, I'm having problems with the cordova prepare command, when I execute this command I have copy errors with Android icons.
C:\dev_tools\Sources\workspace\mygm-mobile-app>cordova prepare android
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-36-ldpi.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-48-mdpi.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\ios\icon-72.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-96-xhdpi.png
The command try to copy files from a res directory located at the root of my cordova project. But my icons are placed inside the www/res directory. It seems that this issue is related to https://issues.apache.org/jira/browse/CB-5145 and https://issues.apache.org/jira/browse/CB-5908.
Here is what I have inside my config.xml file :
<icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:density="ldpi" />
<icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:density="mdpi" />
<icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:density="hdpi" />
<icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:density="xhdpi" />
I'm using cordova 3.5.0, do I have to place my 'res' directory in the root of my project or inside the 'www' directory (it seems that now it should be under www) ?
I'm not a Phonegap / Cordova, but it seems that Phonegap build needs everything to be inside the www directory.
So my problem is a CLI bug / regression which do not take into account decision changes about where the 'res' directory should be now, is it correct ?
Thanks
was:
Hi, I'm having problems with the cordova prepare command, when I execute this command I have copy errors with Android icons.
C:\dev_tools\Sources\workspace\mygm-mobile-app>cordova prepare android
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-36-ldpi.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-48-mdpi.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\ios\icon-72.png
cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-96-xhdpi.png
The command try to copy files from a res directory located at the root of my cordova project. But my icons are placed inside the www/res directory. It seems that this issue is related to https://issues.apache.org/jira/browse/CB-5145 and https://issues.apache.org/jira/browse/CB-5908.
I'm using cordova 3.5.0, do I have to place my 'res' directory in the root of my project or inside the 'www' directory (it seems that now it should be under www) ?
I'm not a Phonegap / Cordova, but it seems that Phonegap build needs everything to be inside the www directory.
So my problem is a CLI bug / regression which do not take into account decision changes about where the 'res' directory should be now, is it correct ?
Thanks
> Fail to copy icon files
> -----------------------
>
> Key: CB-6759
> URL: https://issues.apache.org/jira/browse/CB-6759
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.5.0
> Reporter: Baptiste Gaillard
>
> Hi, I'm having problems with the cordova prepare command, when I execute this command I have copy errors with Android icons.
> C:\dev_tools\Sources\workspace\mygm-mobile-app>cordova prepare android
> cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-36-ldpi.png
>
> cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-48-mdpi.png
>
> cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\ios\icon-72.png
>
> cp: no such file or directory: C:\dev_tools\Sources\workspace\mygm-mobile-app\res\icon\android\icon-96-xhdpi.png
> The command try to copy files from a res directory located at the root of my cordova project. But my icons are placed inside the www/res directory. It seems that this issue is related to https://issues.apache.org/jira/browse/CB-5145 and https://issues.apache.org/jira/browse/CB-5908.
> Here is what I have inside my config.xml file :
> <icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:density="ldpi" />
> <icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:density="mdpi" />
> <icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:density="hdpi" />
> <icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:density="xhdpi" />
> I'm using cordova 3.5.0, do I have to place my 'res' directory in the root of my project or inside the 'www' directory (it seems that now it should be under www) ?
> I'm not a Phonegap / Cordova, but it seems that Phonegap build needs everything to be inside the www directory.
> So my problem is a CLI bug / regression which do not take into account decision changes about where the 'res' directory should be now, is it correct ?
> Thanks
--
This message was sent by Atlassian JIRA
(v6.2#6252)