Author: pamarcelot
Date: Thu Apr 24 09:51:24 2008
New Revision: 651314
URL: http://svn.apache.org/viewvc?rev=651314&view=rev
Log:
Added javadoc
Modified:
directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/PluginUtils.java
Modified: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/PluginUtils.java
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/PluginUtils.java?rev=651314&r1=651313&r2=651314&view=diff
==============================================================================
--- directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/PluginUtils.java
(original)
+++ directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/PluginUtils.java
Thu Apr 24 09:51:24 2008
@@ -247,13 +247,18 @@
*/
private static void copyConfigurationFile( String inputFilename, File ouputFile ) throws
IOException
{
+ // Getting he URL of the file within the bundle
URL inputFilenameUrl = FileLocator.find( Activator.getDefault().getBundle(), new
Path( RESOURCES
+ IPath.SEPARATOR + "conf" + IPath.SEPARATOR + inputFilename ), null );
+
+ // Creating the input and output streams
InputStream inputStream = inputFilenameUrl.openStream();
OutputStream outputStream = new FileOutputStream( ouputFile );
+ // Copying the file
copyFile( inputStream, outputStream );
+ // Closing the streams
inputStream.close();
outputStream.close();
}
|