org.codehaus.mojo.scmchangelog
Class ReportHelper
java.lang.Object
org.codehaus.mojo.scmchangelog.ReportHelper
public class ReportHelper
- extends Object
Helper to have the images in the site target directory.
- Version:
- $Id: ReportHelper.java 7652 2008-09-11 07:58:40Z ehsavoie $
- Author:
- ehsavoie
|
Field Summary |
static int |
BUFFER_LENGTH
Size for the buffer when reading/writing binary stream. |
|
Method Summary |
static void |
copyImage(String resourcePath,
String outputDir)
Copies images from the plugin jar to the site directory. |
static String |
getImageName(String resourcePath)
Computes the name of the image based on the reousrce name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_LENGTH
public static final int BUFFER_LENGTH
- Size for the buffer when reading/writing binary stream.
- See Also:
- Constant Field Values
ReportHelper
public ReportHelper()
copyImage
public static void copyImage(String resourcePath,
String outputDir)
throws IOException
- Copies images from the plugin jar to the site directory.
- Parameters:
resourcePath - the name of the resource (path relative to the classpath).outputDir - the site target directory.
- Throws:
IOException - in case of an I/O error.
getImageName
public static String getImageName(String resourcePath)
- Computes the name of the image based on the reousrce name.
- Parameters:
resourcePath - the name of the resource (path relative to the classpath).
- Returns:
- the name of the image.
Copyright © 2008-2009 Codehaus. All Rights Reserved.