Fixed #3499: modify build.xml for NPM
Merge pull request #1362 from dingpinglv/Iss3499_ForNPM

Fixed #3499: modify build.xml for NPM