Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 90565 invoked from network); 14 Oct 2006 12:44:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 12:44:25 -0000 Received: (qmail 3745 invoked by uid 500); 14 Oct 2006 12:44:22 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 3717 invoked by uid 500); 14 Oct 2006 12:44:22 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 3706 invoked by uid 99); 14 Oct 2006 12:44:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 05:44:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 05:44:22 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D6DB7142F7 for ; Sat, 14 Oct 2006 05:43:36 -0700 (PDT) Message-ID: <16032891.1160829816117.JavaMail.jira@brutus> Date: Sat, 14 Oct 2006 05:43:36 -0700 (PDT) From: "Benoit Callebaut (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (VFS-39) [VFS] read/write XML support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/VFS-39?page=all ] Benoit Callebaut updated VFS-39: -------------------------------- Attachment: vfs.patch This patch against the head SVN is not tested. Previous was tested so I don't expect any problem. Implementation notes: Added a new FileType bacause an XML node can have mixed content (XML tags + text). The new FileType is a File and a Folder at the same type (can contain files and datas) Slighly changed methods declarations to stick to to the doGetAttributes/doSetAttributes of AbstractFileObject. > [VFS] read/write XML support > ---------------------------- > > Key: VFS-39 > URL: http://issues.apache.org/jira/browse/VFS-39 > Project: Commons VFS > Issue Type: Improvement > Affects Versions: Nightly Builds > Environment: Operating System: other > Platform: Other > Reporter: Benoit Callebaut > Priority: Minor > Attachments: package.html, patchfile, test.xml, vfs.patch, VFSXmlFileObject.java, VFSXmlFileProvider.java, VFSXmlFileSystem.java > > > Here is the patch and necessary files for adding XML support for VFS. > I don't know how to include new files in a patch, so I will put them on the > mailing list. > I am not a test writer specialist, so there is no specific test case for this > provider but I tested it and it works. > Index: vfs/src/test/org/apache/commons/vfs/RunTest.java > =================================================================== > --- vfs/src/test/org/apache/commons/vfs/RunTest.java (revision 404758) > +++ vfs/src/test/org/apache/commons/vfs/RunTest.java (working copy) > @@ -26,6 +26,7 @@ > import org.apache.commons.vfs.provider.url.test.UrlProviderHttpTestCase; > import org.apache.commons.vfs.provider.test.VirtualProviderTestCase; > import org.apache.commons.vfs.provider.test.GenericFileNameTestCase; > +import org.apache.commons.vfs.provider.xml.test.XmlProviderTestCase; > import java.util.Properties; > @@ -67,6 +68,7 @@ > // WebdavProviderTestCase.suite(), > SftpProviderTestCase.suite(), > + XmlProviderTestCase.suite(), > // JarProviderTestCase.suite(), > // NestedJarTestCase.suite(), > Index: vfs/src/java/org/apache/commons/vfs/impl/providers.xml > =================================================================== > --- vfs/src/java/org/apache/commons/vfs/impl/providers.xml (revision 404758) > +++ vfs/src/java/org/apache/commons/vfs/impl/providers.xml (working copy) > @@ -51,6 +51,9 @@ > class-name="org.apache.commons.vfs.provider.res.ResourceFileProvider"> > > > + > + > + >