Hi Friends,
I am newbie to jikes. Can anyone tell me that how to use jikes in
Ant to compile my
java Program. In the build.xml file instead of javac i had changed as jikes and run the build.xml, but i have got error message such as
"BUILD FAILED
D:\Ajan\Assignments\JikesAntTest\Jikes\bin\build.xml:31: Problem: failed to create task or type jikes
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 109 milliseconds"
And Here is the build.xml file
<?xml version="1.0" encoding="UTF-8"?>
<project name="UKLights" default="all" basedir=".">
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="lib" value="lib"/>
<target name="all" depends="UKLights"
description="Builds the whole project">
<echo>Doing all</echo>
</target>
<target name="UKLights"
description="Builds the main UKLights project">
<echo>Doing UKLights</echo>
</target>
<target name="check_eclipse">
<available property="in.eclipse" classname="org.eclipse.ant.core.EclipseJavac" />
</target>
<target name="set_eclipse" if="in.eclipse" depends="check_eclipse">
<property name="build.compiler" value="org.eclipse.pde.internal.core.JDTCompilerAdapter" />
<echo message="Internal Eclipse Compiler will be used" />
</target>
<target name="set_jikes" unless="in.eclipse" depends="check_eclipse">
<property name="build.compiler" value="jikes" />
<echo message="Jikes Compiler will be used" />
</target>
<jikes srcdir="${src}" destdir="${build}"/>
</project>
Can anyone help me out from this problem