compatible with java 5
ignore target dir