Skip to content

Commit

Permalink
Actually maps document only contains package-list, so check if *eithe…
Browse files Browse the repository at this point in the history
…r* of them exists...
  • Loading branch information
Atsushi Eno committed Jan 27, 2012
1 parent 611b090 commit 5385fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AndroidDocScraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ protected AndroidDocScraper (File dir, String patternHead, String resetPatternHe

root = dir;

File packageList = new File (dir.getAbsolutePath() + "/packages.html");
if (!packageList.isFile())
if (!new File (dir.getAbsolutePath() + "/package-list").isFile() &&
!new File (dir.getAbsolutePath() + "/packages.html").isFile())
throw new IllegalArgumentException (dir.getAbsolutePath() + " does not appear to be an android doc reference directory.");
}

Expand Down

0 comments on commit 5385fc0

Please sign in to comment.