ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jason heddings" <>
Subject Refid Not Being Recognized
Date Tue, 25 Apr 2006 20:58:00 GMT

I have looked around at the ant-contrib documentation, and I'm wondering if
this is a problem with Ant itself.

I'm trying to use a refid to reference a <defineset> within my <cc> task
(shown below).  When I run this build, I get the following error:

build.xml:13: std.defs doesn't denote a DefineSet

I've verified that the cpptasts are being found and loaded, but it doesn't
like this particular reference.  Here's my buildfile:

<project name="Test" default="build" basedir=".">
  <!-- External task definitions -->
  <taskdef resource="cpptasks.tasks" />
  <typedef resource="cpptasks.types" />

  <defineset id="std.defs">
    <define name="_DEBUG" />

  <target name="build">
    <cc name="msvc" debug="true" outfile="test"
     subsystem="console" outtype="executable">

      <defineset refid="std.defs" />

      <fileset dir=".">
        <include name="*.c" />

Any ideas?  Thanks,

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

View raw message