Minor fixes for pure java tasks support.