Project

Profile

Help

Revision 95c1709f

Added by Michael Kay about 1 year ago

Fix bug #4543

View differences:

latest10/hej/net/sf/saxon/trans/packages/PackageInspector.java
76 76
        }
77 77
    }
78 78

  
79
    public static PackageDetails getPackageDetails(File top, Configuration config) {
79
    public static PackageDetails getPackageDetails(File top, Configuration config) throws XPathException {
80 80
        PackageInspector inspector = new PackageInspector(config.makePipelineConfiguration());
81 81
        try {
82 82
            ParseOptions options = new ParseOptions();
......
85 85
            Sender.send(new StreamSource(top), inspector, new ParseOptions());
86 86
        } catch (XPathException e) {
87 87
            // early exit is expected
88
            if (!e.getMessage().equals("#start#")) {
89
                throw e;
90
            }
88 91
        }
89 92
        VersionedPackageName vp = inspector.getNameAndVersion();
90 93
        if (vp == null) {

Also available in: Unified diff