I used to develop and compile my java project with Xcode 2.2.1. on iMac running with Tiger. So far per Apple installation, the java compiler (i.e. ANT compiler) and Xcode were directly stored on DEVELOPPER folder hosting many SDK's. When I would run Xcode per build.xml instructions (see below), Xcode would find by itself ANT compiler.
I've now a MacBook Air with Snow Leopard with Xcode 3.1.4 because it seems last version of java supported by Xcode but i cannot build my java project. It seems that Snow Leopard has now stored all java application (i.e. ANT) on other parts of my hard-disk, hidden or so.
Maybe someone could help modify my BUILD.XML or tell me how to move or copy JAVA applications so it can be invoked directly from Xcode ?
--------------------------------- build.xml ------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project name="ElectroShaman" default="jar" basedir=".">
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="lib" location="lib"/>
<property name="dist" location="dist"/>
<property name="jarfile" location="${dist}/${ant.project.name}.jar"/>
<property name="compile.debug" value="true"/>
<fileset id="lib.jars" dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<path id="lib.path">
<fileset refid="lib.jars"/>
</path>
<!-- Stub install target. Install should depend on the 'jar' target,
and copy the built objects to the 'dist' directory. -->
<target name="install" description="Install jar" depends="jar">
</target>
<target name="compile" description="Compile code">
<mkdir dir="${bin}"/>
<mkdir dir="${lib}"/>
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="no"
classpathref="lib.path" debug="${compile.debug}">
</javac>
</target>
<target name="jar" depends="compile" description="Build jar">
<mkdir dir="${dist}"/>
<jar jarfile="${jarfile}" basedir="${bin}" manifest="Manifest">
<!-- Merge library jars into final jar file -->
<zipgroupfileset refid="lib.jars"/>
</jar>
</target>
<target name="run" depends="jar" description="Run jar file">
<java jar="${jarfile}" fork="yes" failonerror="true"/>
</target>
<target name="clean" description="Remove build and dist directories">
<delete dir="${bin}"/>
<delete dir="${dist}"/>
</target>
</project>