JAVA_HOME gets mangled by Maven

I’m retrofitting bunch of existing Java projects with unified Maven build. Since each project is mature and has established Ant based build all I’m using maven-antrun-plugin to execute existing build….

ant task to remove files from a jar

How to write an ant task that removes files from a previously compiled JAR?

Let’s say the files in my JAR are:

… and I …

Ant if else condition?

Is there an if/else condition that I can use for an Ant task?

This is what i have written so far: