[ant-contrib - Help] RE: compiler args (cpptasks)

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4315080
By: carnold

Do something like:

<project>
    
     <!--  define a compiler that can be ref'd or extended   -->
     <compiler id="gcc-default" name="gcc">
            <compilerarg value="-foo"/>
      </compiler>

     <target...>
           <cc ...>
                <!-- if you just want to use the default  -->
                <compiler refid="gcc-default"/>
            </cc>
    
            <cc ...>
                  <compiler extends="gcc-default">
                        <compilerarg...>


See samples/xerces.ant for some examples of using extends.

______________________________________________________________________
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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.