1 package org.apache.maven.reporting.sink; 2 3 18 19 import org.apache.maven.doxia.sink.Sink; 20 import org.apache.maven.doxia.siterenderer.Renderer; 21 import org.apache.maven.doxia.siterenderer.RendererException; 22 23 import java.io.File ; 24 import java.io.IOException ; 25 26 30 public class SinkFactory 31 { 32 private String siteDirectory; 33 34 private Renderer siteRenderer; 35 36 public void setSiteRenderer( Renderer siteRenderer ) 37 { 38 this.siteRenderer = siteRenderer; 39 } 40 41 public void setSiteDirectory( String siteDirectory ) 42 { 43 this.siteDirectory = siteDirectory; 44 } 45 46 public Sink getSink( String outputFileName ) 47 throws RendererException, IOException 48 { 49 return siteRenderer.createSink( new File ( siteDirectory ), outputFileName ); 50 } 51 } 52 | Popular Tags |