• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 3.1.4 with Java on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 3.1.4 with Java on Snow Leopard


  • Subject: Xcode 3.1.4 with Java on Snow Leopard
  • From: Albert <email@hidden>
  • Date: Tue, 24 Apr 2012 13:01:44 +0200

Hello,

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 ?

Thank you in advance, Albert

--------------------------------- 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>




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 3.1.4 with Java on Snow Leopard
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: glibtool + Xcode 4
  • Next by Date: glibtool + Xcode 4
  • Previous by thread: Re: glibtool + Xcode 4
  • Next by thread: Re: Xcode 3.1.4 with Java on Snow Leopard
  • Index(es):
    • Date
    • Thread