ANT: Fix ANT issue

Fix ANT issue by correcting compilation condition for
legacy target.

Change-Id: Id4256d0b1dfa25d5128840bd5cb1fb54afd25ea7
1 file changed