You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Yves Willems <yw...@maia-scientific.com> on 2005/10/18 17:31:43 UTC
build successfull but apply did nothing
Hi all,
I'm trying to get a gcc apply task running but found out that it simply
doesn't execute the executable I specify.
I can put in rubbish and still it tells me that it ran successfully. This is
the command syntax:
<apply executable="gcc" failonerror="true" verbose="true"
dest="." dir=".">
<arg line="-c" />
<arg line="${INCLUDEDIR}" />
<arg line="-o" />
<targetfile/>
<srcfile/>
<filelist
id="srcfiles"
dir="."
files="foo.c"/>
<mapper type="glob" from="*.c" to="*.o"/>
</apply>
If anyone has an idea, you are more than welcome.
Yves
RE: build successfull but apply did nothing
Posted by Yves Willems <yw...@maia-scientific.com>.
Thanks for the quick response.
The command executes OK when I run on command line. When using the -v option
I get the following:
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.4 in: /usr/java/j2sdk1.4.2_09/jre
Detected OS: Linux
parsing buildfile
/home/ywillems/cvs/main/make_eazyx/src/plugins/batchman/build.xml with URI =
file:///home/ywillems/cvs/main/make_eazyx/src/plugins/batchman/build.xml
Project base dir set to: /home/ywillems/cvs/main/make_eazyx
[property] Loading Environment env.
Build sequence for target(s) `build_lib' is [init, build_lib]
Complete build sequence is [init, build_lib, ]
init:
[echo] Build of eazyx lib component started
build_lib:
[apply] Current OS is Linux
[apply] foo.c added as foo.o doesn't exist.
BUILD SUCCESSFUL
Total time: 0 seconds
There is no foo.o. I assume that the "[apply] foo.c added as foo.o doesn't
exist." is a normal log meaning that foo.c is taken into account since there
is no foo.o. As you stated in your reply it must have something to do with
the apply conditions: for some reason ant thinks that nothing must be done.
Yves
-----Original Message-----
From: Dominique Devienne [mailto:ddevienne@gmail.com]
Sent: Wednesday, October 19, 2005 2:41 AM
To: Ant Users List
Subject: Re: build successfull but apply did nothing
On 10/18/05, Dominique Devienne <dd...@gmail.com> wrote:
> On 10/18/05, Yves Willems <yw...@maia-scientific.com> wrote:
> > I'm trying to get a gcc apply task running but found out that it simply
> > doesn't execute the executable I specify.
> >
> I'd say it's possible you have a foo.o file in your current dir that's
> newer than foo.c.
If you run Ant with -verbose (or -debug), and my guess above is
correct, you should see messages from <apply> about the file being
up-to-date. --DD
---------------------------------------------------------------------
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
Re: build successfull but apply did nothing
Posted by Dominique Devienne <dd...@gmail.com>.
On 10/18/05, Dominique Devienne <dd...@gmail.com> wrote:
> On 10/18/05, Yves Willems <yw...@maia-scientific.com> wrote:
> > I'm trying to get a gcc apply task running but found out that it simply
> > doesn't execute the executable I specify.
> >
> I'd say it's possible you have a foo.o file in your current dir that's
> newer than foo.c.
If you run Ant with -verbose (or -debug), and my guess above is
correct, you should see messages from <apply> about the file being
up-to-date. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: build successfull but apply did nothing
Posted by Dominique Devienne <dd...@gmail.com>.
On 10/18/05, Yves Willems <yw...@maia-scientific.com> wrote:
> I'm trying to get a gcc apply task running but found out that it simply
> doesn't execute the executable I specify.
>
> I can put in rubbish and still it tells me that it ran successfully. This is
> the command syntax:
<apply> is a "smart" task, meaning that it does dependency checking,
and if everything looks up-to-date (timestamp of target files are
newer than corresponding source files), it doesn't do anything.
I'd say it's possible you have a foo.o file in your current dir that's
newer than foo.c.
BTW, instead of always using <arg line>, check out <arg value> and <arg file>.
--DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: build successfull but apply did nothing
Posted by S I <xi...@hotmail.com>.
What does simply typing gcc at the command prompt do? Will the application
execute? Do you perhaps need the full path for gcc provided in your apply
task?
----Original Message Follows----
From: "Yves Willems" <yw...@maia-scientific.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: <us...@ant.apache.org>
Subject: build successfull but apply did nothing
Date: Tue, 18 Oct 2005 17:31:43 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc5-f34.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Tue, 18 Oct 2005 08:31:47 -0700
Received: (qmail 72794 invoked by uid 500); 18 Oct 2005 15:31:35 -0000
Received: (qmail 72753 invoked by uid 99); 18 Oct 2005 15:31:34 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2005 08:31:34 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [213.193.139.10] (HELO mail.maia-scientific.com)
(213.193.139.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct
2005 08:30:42 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])by
mail.maia-scientific.com (Postfix) with ESMTP id C72D8228944for
<us...@ant.apache.org>; Tue, 18 Oct 2005 17:30:18 +0200 (CEST)
Received: from mail.maia-scientific.com ([127.0.0.1]) by localhost (hermes
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07656-01 for
<us...@ant.apache.org>; Tue, 18 Oct 2005 17:30:17 +0200 (CEST)
Received: from maiaywillems (unknown [192.168.0.162])by
mail.maia-scientific.com (Postfix) with ESMTP id 2AE00228910for
<us...@ant.apache.org>; Tue, 18 Oct 2005 17:30:17 +0200 (CEST)
X-Message-Info: 6sSXyD95QpW8o1KGOstsh75JuHmyuJuuArR/lE0Uw2s=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=HTML_MESSAGE
X-Spam-Check-By: apache.org
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
Thread-Index: AcXT+QsgQRe7Vyg9T+al6NhjYHogiA==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Virus-Scanned: amavisd-new at hermes.maia-scientific.com
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-52743-xiamak=hotmail.com@ant.apache.org
X-OriginalArrivalTime: 18 Oct 2005 15:31:50.0885 (UTC)
FILETIME=[0F6A0150:01C5D3F9]
Hi all,
I'm trying to get a gcc apply task running but found out that it simply
doesn't execute the executable I specify.
I can put in rubbish and still it tells me that it ran successfully. This is
the command syntax:
<apply executable="gcc" failonerror="true" verbose="true"
dest="." dir=".">
<arg line="-c" />
<arg line="${INCLUDEDIR}" />
<arg line="-o" />
<targetfile/>
<srcfile/>
<filelist
id="srcfiles"
dir="."
files="foo.c"/>
<mapper type="glob" from="*.c" to="*.o"/>
</apply>
If anyone has an idea, you are more than welcome.
Yves
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org