|
29 | 29 | import java.util.ResourceBundle;
|
30 | 30 | import java.util.concurrent.atomic.AtomicInteger;
|
31 | 31 |
|
32 |
| -import org.apache.maven.doxia.siterenderer.RenderingContext; |
| 32 | +import org.apache.maven.doxia.sink.Sink; |
| 33 | +import org.apache.maven.doxia.siterenderer.DocumentRenderingContext; |
33 | 34 | import org.apache.maven.doxia.siterenderer.sink.SiteRendererSink;
|
34 | 35 |
|
35 | 36 | import org.apache.maven.execution.MavenSession;
|
|
43 | 44 | import org.apache.maven.reporting.MavenReport;
|
44 | 45 | import org.apache.maven.reporting.MavenReportException;
|
45 | 46 |
|
46 |
| -import org.codehaus.doxia.sink.Sink; |
47 | 47 | import org.codehaus.plexus.util.StringUtils;
|
48 | 48 |
|
49 | 49 | import scala.Option;
|
@@ -206,7 +206,6 @@ public String getDescription( Locale locale )
|
206 | 206 |
|
207 | 207 | /** {@inheritDoc} */
|
208 | 208 | @Override
|
209 |
| - @SuppressWarnings( "deprecation" ) |
210 | 209 | public void generate( Sink sink, Locale locale )
|
211 | 210 | throws MavenReportException
|
212 | 211 | {
|
@@ -261,8 +260,16 @@ public void generate( Sink sink, Locale locale )
|
261 | 260 | }
|
262 | 261 |
|
263 | 262 | /** {@inheritDoc} */
|
| 263 | + @SuppressWarnings( "deprecation" ) // it's deprecated and abstract, so we have no choice, but to keep it |
264 | 264 | @Override
|
265 | 265 | public String getOutputName()
|
| 266 | + { |
| 267 | + return getOutputPath(); |
| 268 | + } |
| 269 | + |
| 270 | + /** {@inheritDoc} */ |
| 271 | + @Override |
| 272 | + public String getOutputPath() |
266 | 273 | {
|
267 | 274 | return destDir + "/index";
|
268 | 275 | }
|
@@ -388,7 +395,7 @@ public void execute()
|
388 | 395 |
|
389 | 396 | try
|
390 | 397 | {
|
391 |
| - RenderingContext context = new RenderingContext( outputDirectory, getOutputName() + ".html", null ); |
| 398 | + DocumentRenderingContext context = new DocumentRenderingContext( outputDirectory, getOutputName() + ".html", null ); |
392 | 399 | SiteRendererSink sink = new SiteRendererSink( context );
|
393 | 400 | Locale locale = Locale.getDefault();
|
394 | 401 | generate( sink, locale );
|
@@ -496,7 +503,7 @@ private void generateAggregatedReports()
|
496 | 503 | String path = r.readLine();
|
497 | 504 | while ( path != null )
|
498 | 505 | {
|
499 |
| - sourceRoots.add( new File( path ) ); |
| 506 | + sourceRoots.add(new File(path)); |
500 | 507 | path = r.readLine();
|
501 | 508 | }
|
502 | 509 | }
|
|
0 commit comments