ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <>
Subject Re: make file in build.xml
Date Tue, 12 Aug 2008 13:31:53 GMT
How are you calling your build.xml? What target are you hitting?

Are you calling the "compileC" target? Try changing:

<target name="movelib" description="move to lib">


<target name="movelib" description="move to lib" depends="compileC">

That way, when you call movelib, it will first call "compileC" before
executing the target movelib.

David Weintraub

On Tue, Aug 12, 2008 at 12:08 AM, Kamran Hameed <> wrote:
> folks i previously posted one such post.
> i want to call a Makefile in my build.xml. The Makefile generates a
> file which i want to move to a a directory in my src called /lib
> Here is what i do
> <target name="compileC">
>      <exec dir="${mpjdev.native.dir}" executable="/usr/bin/make">
>        <arg value="Makefile"/>
>    </exec>
>    </target>
> <target name="movelib" description="move to lib">
>  <move file="${mpjdev.native.dir}/" todir="${lib.dir}"/>
>    </target>
> Here is the Problem.
> If i call the makefile manually [by going into that directory and executing
> make] and then execute ant, it works perfect and moves the .so file to /lib
> But if i call just ant, it gives error
> /home/kamran/build.xml:120: Warning: Could not find file
> /home/kamran//src/mpjdev/nativ/lib/ to copy.
> i-e it is not generating the makefile which i am trying to do in my first
> target.. Can you tell how can i call make Makefile in build.xml so that when
> i call ant, it runs and generates .so file which is then copied to /lib
> Thanks
> --
> Kamran Hameed

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message