ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandolu, Yuva" <YChand...@arbinet.com>
Subject RE: problem in compiling source code
Date Thu, 27 May 2004 20:08:39 GMT
Sorry, here is the actual build.xml file content...

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

  <target name="init">

    <!-- 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="compile" depends="init" description="compile the source " >
    <!-- Compile the java code from ${src} into ${classes} -->
    <echo message="before compile"/>
    <javac srcdir="${src}" destdir="${classes}" classpath="${classpath}">
    	<include name="**\*.java" />
    </javac>
    <echo message="after compile"/>

  </target>

  <target name="dist" depends="compile" description="generate the
distribution" >
    <jar jarfile="${build}\cdraggregator.jar" basedir="${classes}"/>
  </target>

  <target name="clean" depends="dist" description="clean up" >
    <!-- Delete the ${build} directory tree -->
    <delete dir="${src}"/>
    <delete dir="${classes}"/>
  </target>

</project>
==============================================================

Thanks
Yuva


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