Ant build.xml requires user input, but Eclipse has no tty

Posted by carneades on Stack Overflow See other posts from Stack Overflow or by carneades
Published on 2010-03-25T18:59:12Z Indexed on 2010/03/25 19:03 UTC
Read the original article Hit count: 531

Filed under:
|
|
|

I'm trying to better integrate Eclipse with my build.xml. My build file calls GNU Make for the native portion of the program, and the Makefile uses sudo to movethe compiled libs into system path. Unfortunately that requires entering a password, and Eclipse's terminal doesn't accept user input. So the result from running the build in eclipse is:

 [exec] sudo: no tty present and no askpass program specified
 [exec] make: *** [install] Error 1

Any way around this problem? Can the ant build be elevated to root some other way?

© Stack Overflow or respective owner

Related posts about java

Related posts about ant