Working both in eclipse and ant