Hi All,
 
I have been assign a task of migrating our build environment from make file base system to ant base system. Our code base has code of java, C and cpp.
With Make file we are able to compile and generate the code. To migrate I have downloaded sample makefile (see the attached build_java.xml file). using this I am able to compile java codes ,
but if I modify the code to (see attache modified build_c.xml file) have C++ compile I getting weied errors. Its apparent that I missing something, can anyone guide me to how to have C++ and C compiled.
Please provide a sample build file that can compile java, C and C++ codes, also point me to a write-up that can help me ramp up on setting up ant build environment.
 
Would appreciate a quick and prompt response
 
Regards
Irfan.
 
 
 
 
<project name="MyProject" default="build" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="."/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>
  </target>
</project>
<project name="MyProject" default="build" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="."/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

   <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the c code from ${src} into ${build} -->
    < CC srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>
  </target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to