Best way to open a phone call project created using the CLI in eclipse

When I create a folder structure for a telephone folder through the CLI (3.0), how do I open it in Eclipse?

When I select the project [New] - [Android project from existing code], the assets are taken from the platform / android folder. But I need to change html and js in the top folder ( www ). These are the files that are used when creating a project on other platforms (through the CLI or build.phonegap). Now I modify the assets in the eclipse environment editor, and then manually copy the contents to the files at www.

+6
source share
1 answer

In fact, the structure of the PhoneGap project and the structure of the Eclipse project are somewhat different. But they work in a similar way. If you want to create a phonegap project in eclipse, you need to create html,js,css in the asset/www folder. The java source files will be in the src folder (as usual).

If you want to create a project without eclipse, for example, using the phonegap/cordova create MyApp , you will get the entire java source file in the project/platform/android folder and html, js, css in www , which will be automatically created. On the other hand, in eclipse you have to create this www folder manually.

But the project is compiled in the same way as it is created in eclipse (IDE) or in another text editor.

I have experience in both Eclipse and Text Editor (SublimeText, Vim). I prefer a text editor, because Eclipse once creates a problem, and it needs some additional things, such as creating a www folder and hosting all scripts, templates, css, etc. Manually.

If someone wants to go with the CLI, I think SublimeText, Vim, gEdit, etc. is the best choice for coding.

0
source

Source: https://habr.com/ru/post/953706/


All Articles