Re: Using Ant-Contrib in Config.xml - Impossible?

Neil Prestemon <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
I specify a project-specific build file from my config.xml; like 
"my-cc-project.xml" - which runs the build for that project.  I include 
my taskdef there.

Each project then has it's own delegated build file;
"my-cc-project.xml"
"my-other-cc-project.xml"
"another-cc-project.xml"

Nothing else seems to be working for me, but at least cc doesn't seem to 
mind me using taskdef in the build delegate files.

- N

Tennis Smith wrote:
> 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 
> <http://project.name>}/build-${project.name <http://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
>   

-- 
Neil Prestemon
Software Development Engineer
Software Engineering Program Services
Engineering Systems Division
SRI International
805.542.9330 x132 (voice)
 


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
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.