Author: ggregory
Date: Wed Nov 14 03:36:57 2012
New Revision: 1409075
URL: http://svn.apache.org/viewvc?rev=1409075&view=rev
Log:
[VFS-443] [Local] Need an easy way to convert from a FileObject to a File.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
commons/proper/vfs/trunk/src/changes/changes.xml
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java?rev=1409075&r1=1409074&r2=1409075&view=diff
==============================================================================
---
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
(original)
+++
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
Wed Nov 14 03:36:57 2012
@@ -55,8 +55,16 @@ public class LocalFile extends AbstractF
/**
* Returns the local file that this file object represents.
+ * <p/>
+ * <h2>Usage recommendation</h2>
+ * <p>
+ * Use this method to interface with code that only supports {@linkplain
File} objects.
+ * </p>
+ *
+ * @return the local file that this file object represents.
+ * @since 2.1 (this methods was protected in 2.0)
*/
- protected File getLocalFile()
+ public File getLocalFile()
{
return file;
}
Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1409075&r1=1409074&r2=1409075&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Wed Nov 14 03:36:57 2012
@@ -23,6 +23,9 @@
<body>
<release version="2.1" date="TBD" description="New features and bug fix
release.">
+ <action issue="VFS-443" dev="ggregory" type="update" due-to="nickallen">
+ [Local] Need an easy way to convert from a FileObject to a File.
+ </action>
<action issue="VFS-440" dev="ggregory" type="add" due-to="bpiwowar">
[SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka
ProxyCommand).
</action>