0

I've followed the directions here: https://github.com/googlei18n/libphonenumber/tree/master/javascript

However, I run into trouble with this line:

Build Closure's compiler.jar: ant -f ~/src/closure-compiler/build.xml

There is no build.xml in the closure-compiler files I've cloned using git.

Help?

Rao
  • 20,781
  • 11
  • 57
  • 77

2 Answers2

2

They've recently switched to using Maven. Ant seems to no longer be supported. See the instructions under "Building it Yourself" at https://github.com/google/closure-compiler

You can also just download the latest version of the compiler from that page, no need to build with ant or maven.

owler
  • 1,059
  • 8
  • 13
0

If you're compiling it for the web, I may also suggest you use a stripped-down pure-javascript alternative which is less than 100 KB (because it's a web browser):

https://github.com/halt-hammerzeit/libphonenumber-js

catamphetamine
  • 4,489
  • 30
  • 25