ant-user mailing list archives

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

 

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"
basedir="c:\javabuilds\cdraggregator">

    <description>

        Ant build file for real-time aggregator

    </description>

 

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

  value="

            ${classes};

            ${basedir}\classes12.zip;

            ${basedir}\activation.jar;

            ${basedir}\mail.jar

           "

  />

 

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

            </fileset>

    </copy>

 

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

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

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

            </fileset>

    </copy>

 

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

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

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

            </fileset>

    </copy>

 

  </target>

 

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

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

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

  </target>

 

</project>

===========================================================================

 

 

Some one please help me.

 

Thanks

Yuva


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