Use java.policy for java tasks.