ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@sandvine.com>
Subject RE: Build.xml not working correclty when calling Makefile
Date Wed, 24 Sep 2003 20:45:56 GMT
It sounds like its an argument issue. Try the following:

    <exec executable="make">
        <arg value="-f"/>
        <arg value="PGL_JNI/Makefile"/>
    </exec>

HTH,
d.

-----Original Message-----
From: Lindsey, Lucinda [mailto:lalinds@sandia.gov]
Sent: Wednesday, September 24, 2003 4:41 PM
To: 'Ant Users List'
Subject: RE: Build.xml not working correclty when calling Makefile


Thanks for your response. The make works correctly outside of ant. Do I have
to create the directory in ant?

-----Original Message-----
From: CONANT,PATRICK (HP-FtCollins,ex1) [mailto:patrick.conant@hp.com]
Sent: Wednesday, September 24, 2003 2:38 PM
To: 'Ant Users List'
Subject: RE: Build.xml not working correclty when calling Makefile



It sounds like the "config/version" directory does not exist when make
command is executed. You might try adding a "mkdir" element to your build to
create the directory before you invoke make.  It will look something like
this:

<mkdir dir="config/version"/>

You may have to experiment a bit in order to get the correct directory
structure expected in line 89 of your makefile.

--p.

-----Original Message-----
From: Lindsey, Lucinda [mailto:lalinds@sandia.gov] 
Sent: Wednesday, September 24, 2003 2:31 PM
To: 'user@ant.apache.org'
Subject: Build.xml not working correclty when calling Makefile


Hi,

Our requirements to build our project are simple. We need to create a
framework directory that all subdirectories are checked out into before they
can be built using our existing makefiles.  We are new to ant, and our
attempt at doing this in our build.xml file was not successful. Here's the
build:

?xml version="1.0" ?>
 <project name="SNL_Tool_Root" default="make">
  <target name="make">
  <cvs package="PGL_JNI"></cvs>
   <exec executable="make">
        <arg line="-f PGL_JNI/Makefile"/>
  </exec>
  </target>
</project>

Although it correctly builds, the log file reveals the following error:

     [exec] Executing 'make' with arguments:
     [exec] '-f'
     [exec] 'PGL_JNI/Makefile'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] PGL_JNI/Makefile:89: config/version: No such file or directory
     [exec] make: *** No rule to make target `config/version'.  Stop.
     [exec] Result: 2[exec] 

When executing the make outside of ant, it builds successfully. We are
running ant 1.5.4 on Solaris 8 and Java 1.4.1.

Any help is greatly appreciated!

Cindy Lindsey
Sandia National Labs
(505)844-0548



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message