Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clean command for cordova/phonegap 3.5

I am trying to clean my cordova 3.5 project. So i try to do as it says at the bottom of this page: http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

$ /path/to/project/cordova/clean

So i navigate to cordova directory in my project

:~/Desktop/work/project/platforms/android/cordova$ cd clean
bash: cd: clean: Not a directory

:~/Desktop/work/3.5/10/project/platforms/android/cordova$ clean
No command 'clean' found, did you mean:
 Command 'uclean' from package 'svn-buildpackage' (universe)
 Command 'pclean' from package 'pbuilder-scripts' (universe)
 Command 'clear' from package 'ncurses-bin' (main)
clean: command not found

How do i clean the project? In cordova 2.8.1 ant clean worked fine, but in cordova 3.5 ant clean also dosen't work.

cordova build and rest all commands are working fine for me, but how do i clean the project? All help appreciated!

like image 272
lfchim Avatar asked Jul 10 '14 18:07

lfchim


People also ask

What does cordova Clean do?

cordova clean commandCleans the build artifacts for all the platforms, or the specified platform by running platform-specific build cleanup.

Which command is used to cordova?

The cordova module will automatically be downloaded by the npm utility. On OS X and Linux, prefixing the npm command with sudo may be necessary to install this development utility in otherwise restricted directories such as /usr/local/share .

How do I update cordova to latest version?

Update Cordova CLI, cordova Then compare the returned version number to the output of npm info cordova version (You can also check manually for the newest available version on npm or GitHub). Run cordova -v again after the update to make sure the update worked and it now returns the current version.

How do I run a cordova emulator?

Deploy to Emulator If instead you are working within Eclipse, right-click the project and choose Run As → Android Application. You may be asked to specify an AVD if none are already open.


2 Answers

Either enter in console:

cd <my-project-folder>
./platforms/android/cordova/clean

Which is the same as:

cordova clean

Cleanup project from build artifacts

like image 171
prajmus Avatar answered Oct 11 '22 12:10

prajmus


There's the

cordova clean

command in the Cordova CLI. It cleans the project.

like image 44
Torsten Barthel Avatar answered Oct 11 '22 12:10

Torsten Barthel