Hi Jeff,
Thanks for reply. You are correct. I have JAVA_HOME set to java8 but not sure where it is picking up the pre-1.5 mode. I just used buckminister wizard to generate build.ant file. Here is my build.ant looks like.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Buckminster Headless" default="buckminster">
<property name="WORKSPACE" location="${ant.file}/../../" />
<property name="build.root" location="${WORKSPACE}/buildroot" />
<property name="buckminster.home" location="/home/vagrant/buckminster" />
<property name="projects.location" location="${WORKSPACE}" />
<property name="commands.file" location="${projects.location}/com.test.ovn.rules.buckminster/commands.txt" />
<property name="target.platform" value="target.platform" />
<target name="buckminster" depends="cleanup" description="description">
<echo message="IMPORTANT: Populating an empty target platform may took over 10 minutes."/>
<condition property="executable.file" value="buckminster.bat" else="buckminster">
<os family="windows"/>
</condition>
<java fork="true" dir="${buckminster.home}" logError="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
<classpath>
<fileset dir="${buckminster.home}/plugins">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
<arg line='-update' />
<arg line='-data "${build.root}/buckminster.workspace"' />
<arg line='-configuration "${build.root}/configuration"' />
<arg line='--script "${commands.file}"' />
<sysproperty key="projects.location" value="${projects.location}" />
<sysproperty key="buckminster.output.root" value="${build.root}/buckminster.output" />
<sysproperty key="buckminster.temp.root" value="${build.root}/buckminster.temp" />
<sysproperty key="target.platform" value="${build.root}/${target.platform}" />
<jvmarg line=" -Xms256m -Xmx512m" />
</java>
<echo message=" "/>
<echo message="Updatesite output in: ${build.root}/buckminster.output/com.visa.ovn.rules.site_*-eclipse.feature/site.p2/"/>
</target>
<target name="cleanup">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${build.root}" defaultexcludes="false">
<exclude name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
<exclude name="**/${target.platform}/" />
</fileset>
</delete>
</target>
<target name="reset.target-platform">
<delete includeemptydirs="true">
<fileset dir="${build.root}" defaultexcludes="false">
<include name="**/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/" />
<include name="**/${target.platform}/" />
</fileset>
</delete>
</target>
</project>