I set this property in my build.xml script of ant to ignore the system classpath during build, but ant still picks up the system classpath in my java call and merges it with my classpath specified in the build script.
<property name="build.sysclasspath" value="ignore" />
<path id="classpath">
<pathelement path="${buildDir}/classes" />
<fileset dir="${prjdir}">
<include name="lib/*.jar"/>
</fileset>
</path>
<java classname="com.ibm.biginsights.fs.gpfs.LoggingInjector" failonerror="true">
<classpath refid="classpath" />
</java>
If I unset the $CLASSPATH
environment variable before calling ant everything works fine. What's the problem?