Skip to content

-e and -i only work with files, not with directories #8

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Run xml-dir-listing on a cvs tree with the -e "CVS" option to exclude
all the CVS directories in the tree.

What is the expected output? What do you see instead?

I expect an xml directory listing excluding all the "CVS" directories in
the tree, but they are included. 

What version of the product are you using? On what operating system?.

Version 0.2.1

Please provide any additional information below.

I think you just need to change the line:

  if (file.isDirectory() || this.isIncluded(file) && !this.isExcluded(file)
|| isRoot == true) {

To:

  if (file.isDirectory() && this.isIncluded(file) && !this.isExcluded(file)
|| isRoot == true) {

net/matthaynes/xml/dirlist/XmlDirectoryListing.java

Original issue reported on code.google.com by crame...@gmail.com on 23 Mar 2010 at 8:51

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions