ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Re: [ant-contrib - Help] RE: Problems with cc task, using libset
Date Tue, 02 Mar 2004 00:47:32 GMT
Curt, and all,

No, I am still having problems. I do have the lines you mentioned. I have
attached part of the cpp.xml here in this email. I need to comment out the
libset id section cause it does not work. This is the main purpose of my
email about libset.

This cpp.xml will be "import"ed by child/build.xml so that the
child/build.xml can use the predefined targets from cpp.xml. Using libset id
will be very important to avoid duplication.  Currently, I have to redefine
the compile target in child/build.xml because "libset id" will not work.

Please help and comment.

Thanks

Barry

<project name="cpp" default="compile" basedir=".">


<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<taskdef resource="cpptasks.tasks"/>
<taskdef resource="cpptasks.types"/>


<target name="all" depends="clean, compile, test, dist"/>


<target name="compile_dependencies">

        <!-- Default empty compilation dependencies. -->

</target>

<path id="default.include">

        <pathelement location="include"/>

</path>


<target name="prepare">

        <mkdir dir="${build.home}"/>
        <mkdir dir="${outlib.home}"/>
        <mkdir dir="${outbin.home}"/>

</target>


<target name="clean">

        <delete dir="${build.home}"/>
        <subant target="clean">
        <fileset dir="." includes="*/build.xml"/>
        </subant>

</target>


<target name="test">

        <subant target="all">
        <fileset dir="test" includes="build.xml"/>
        </subant>

</target>

<target name="dist" depends="compile">

        <mkdir dir="${export.home}"/>
        <copy todir="${export.home}">
                <fileset dir="${output.dir}" excludes="*.o,*.xml"/>
        </copy>

</target>


</project>
~



<!-- This should work but failed. Need to fix it.
<libset id="libs">

        <pathelement location="../build/lib"/>

</libset>
-->

<target name="compile" depends="prepare,compile_dependencies">

        <cc name="gcc" link="${output.type}" objdir="${outlib.home}"
debug="true
"
        outfile="${output.file}">

        <fileset dir="." includes="*.c"/>

        <includepath>
        <path refid="default.include"/>
        <path refid="extra.include"/>
        </includepath>

        </cc>

</target>
----- Original Message ----- 
From: "SourceForge.net" <noreply@sourceforge.net>
To: <noreply@sourceforge.net>
Sent: Saturday, February 28, 2004 2:27 PM
Subject: [ant-contrib - Help] RE: Problems with cc task, using libset


>
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=2447462
> By: carnold
>
> Since you are not having a problem executing the cc task itself which
would
> have indicated that cpptasks.jar was not on your classpath, I would
suspect
> that you did not add a <typedef/> (which is needed for <libset> when you
added
> the <taskdef/> which would be needed for <cc/>
>
> Check that your build file has both of these and cpptasks.jar is in your
ant/lib
> file.
>
> <taskdef resource="cpptasks.tasks"/>
>  <typedef resource="cpptasks.types"/>
>
> ______________________________________________________________________
> You are receiving this email because you elected to monitor this forum.
> To stop monitoring this forum, login to SourceForge.net and visit:
> https://sourceforge.net/forum/unmonitor.php?forum_id=113701
>



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


Mime
View raw message