Re: Support for WebDAV?

Antoine Levy-Lambert <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>


On 6/23/2010 5:25 PM, Doug Breaux wrote:
> Antoine,
>
>
> But for the modificationset, I have no problem using either library. Can
> you point me at how to write a custom modificationset implementation?
> That doesn't seem to be one of the "plugin" types described in the
> documentation.
>    
A modificationset would implement the interface
         net.sourceforge.cruisecontrol.SourceControl

the main method to implement there is this one :

     public List<Modification> getModifications(Date lastBuild, Date now) {

the class can have setters too such as   setUrl(String url)

when you will use your custom modificationset in a config.xml, it can 
look like that

<webdavmodificationset url="http://bla.com/files/"/>

assuming that you have registered your plugin with the <plugin /> tag 
before.

<plugin name="webdavmodificationset"
       classname="com.acme.cruise.WebDAVModificationSet"/>


Hopes this helps,

Antoine

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
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.