ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandolu, Yuva" <>
Subject problem in compiling source code
Date Thu, 27 May 2004 20:06:31 GMT


Here is my build.xml file. For some reason the source code is not getting
compiled. What is the problem in the build file? I get the message "BUILD
SUCCESSFULL" at the end though.


I have Ant 1.6 and JDK 1.4.3_02 on my machine.



<project name="Real Time Aggregator" default="init"


        Ant build file for real-time aggregator



  <!-- set global properties for this build -->

  <property name="build" location="${basedir}\build"/>

  <property name="src" location="${build}\src"/>

  <property name="classes" location="${build}\classes"/>

  <property name="orig_src" location="c:\sourcecode\java\src"/>

  <property name="classpath"









  <echo message="src = ${src}, classes = ${classes}" />


  <target name="init" description="set up folders etc">


    <!-- Create the build directory structure used by compile -->


    <mkdir dir="${build}"/>

    <mkdir dir="${src}\com\thexchange\realtimeaggregator"/>

    <mkdir dir="${src}\com\thexchange\util"/>

    <mkdir dir="${src}\com\thexchange\utility"/>

    <mkdir dir="${build}\classes"/>


    <copy todir="${src}\com\thexchange\realtimeaggregator">

            <fileset dir="${orig_src}\com\thexchange\realtimeaggregator">

                        <include name="**\*.java"/>




    <copy todir="${src}\com\thexchange\util">

            <fileset dir="${orig_src}\com\thexchange\util">

                        <include name="**\*.java"/>




    <copy todir="${src}\com\thexchange\utility">

            <fileset dir="${orig_src}\com\thexchange\utility">

                        <include name="**\*.java"/>






  <target name="clean" depends="init" description="clean up" >

    <delete dir="${src}"/>

    <delete dir="${classes}"/>







Some one please help me.




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message