timestamper/resources/main/test.groovy
Jonathan Bernard 3ca6909b95 Version 1.1: Added support for web timelines.
Web timelines as defined by the JDB Labs Web TimeStamper tool are now supported.

* `TimelineSource` now also takes the timeline config file as constructor input.
* Refactored `Timeline` to use reduce implementation redundencies: internal
  implementations do not duplicate functionality.
* Improved comments in `TimelineProperties`.
* Updated `TimelineSourceFactory` to handle timelines that need to use
  `JDBLabsWebTimelineSource`.
2011-06-27 17:18:15 -05:00

13 lines
378 B
Groovy

import groovyx.net.http.HTTPBuilder
import com.jdbernard.util.SmartConfig
import com.jdblabs.timestamper.core.*
smartConfig = new SmartConfig("temp.config")
smartConfig."web.username" = "jdbernard"
smartConfig."web.password" = "Y0uthc"
smartConfig."web.timelineId" = "work"
uri = new URI("http://timestamper-local:8000")
wtls = new JDBLabsWebTimelineSource(uri, smartConfig)