Home » Android » How to use Linked Files in Eclipse for PhoneGap project with Android

How to use Linked Files in Eclipse for PhoneGap project with Android

Posted by: admin May 14, 2020 Leave a comment

Questions:

Possible Duplicate:
How to link assets/www folder in Eclipse / Phonegap / Android project?

I want to develop the html and javascript files for my phonegap project in a different folder than the standard “assets/www” folder (for android sdk on eclipse windows). i thought i could include a linked folder in my eclipse project but the linked folder did not appear to compile into the apk as the app stated that the resource could not be found.
anyone else try to do this?

How to&Answers:

I use symlinks, yes they work on windows also.
I have tested it with phonegap in visual studio/windows phone project and it works fine.

See wikipedia for details http://en.wikipedia.org/wiki/NTFS_symbolic_link

Example: (Make sure you have moved your www folder to c:\www )

cd MyProject/assets/

mklink /D www c:\www

That should do it