ant-user mailing list archives

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

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" />
  </defineset>

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

      <defineset refid="std.defs" />

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

Any ideas?  Thanks,
--jah



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


Mime
View raw message