Using Ant-Contrib in Config.xml - Impossible?

Tennis Smith <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi,

I'm trying use the ant-contrib <if> statement in my config.xml file. Using
ant-contrib requires a 'taskdef' statement.  But, tasdef's aren't allowed in
config.xml it appears.  So, are the ant contrib's not allowed in config
files?

Here is what I've done so far (remember, the following DOES NOT WORK):

<cruisecontrol>
    <project name="yadda" buildafterfailed="true">
        <taskdef resource="net/sf/antcontrib/antlib.xml"/>
         ...
        <!-- Configures the actual build loop, how often and which
         build file/target -->
        <schedule interval="3600">
            <ant anthome="ant"
                buildfile="projects/${project.name}/build-${project.name
}.xml"
                target="build"/>
            <if>
                <not><isset property="buildforced"/></not>
                <then>
                    <pause starttime="1900" endtime="2359"/>
                    <pause starttime="0000" endtime="0359"/>
                    <pause day="saturday" starttime="0000" endtime="2359"/>
                    <pause day="sunday" starttime="0000" endtime="2359"/>
                </then>
            </if>
        </schedule>
        ...
    </project>
</cruisecontrol>


By "does not work", I mean that on startup, cruisecontrol gives the error:
Caused by: net.sourceforge.cruisecontrol.CruiseControlException: Unknown
plugin for: <taskdef>


Am I missing something?  Can the ant-contrib extensions be used in
config.xm? If so, how?

-- 

Tks,
-T

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
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.