BigBalli commented on issue #582:
URL: https://github.com/apache/cordova-cli/issues/582#issuecomment-4179807241

   Hey — this is actually expected behavior, though the docs are definitely 
misleading. In `config.xml`, the `target` path for `<resource-file>` is 
relative to the platform project root (e.g. the root of the Android Gradle 
project), not relative to the Android app source directory. So you do need the 
full `app/src/main/res/values/FooPluginStrings.xml` path.
   
   The reason `plugin.xml` behaves differently is that the plugin system has 
its own resource mapping logic that knows about the Android project structure 
and resolves `res/values/...` to the right place automatically.
   
   So your workaround is correct:
   ```xml
   <resource-file src="FooPluginStrings.xml" 
target="app/src/main/res/values/FooPluginStrings.xml" />
   ```
   
   This might be worth a docs clarification PR if anyone wants to pick it up. 
Were you able to get things working with the full path?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to