ManifestErrorException(Throwable cause) { super(RepoText.get().invalidManifest, cause); } }
RemoteUnavailableException(String uri) { super(MessageFormat.format(RepoText.get().errorRemoteUnavailable, uri)); } }
/** * Read the xml file. * * @param inputStream * a {@link java.io.InputStream} object. * @throws java.io.IOException */ public void read(InputStream inputStream) throws IOException { xmlInRead++; final XMLReader xr; try { xr = XMLReaderFactory.createXMLReader(); } catch (SAXException e) { throw new IOException(JGitText.get().noXMLParserAvailable); } xr.setContentHandler(this); try { xr.parse(new InputSource(inputStream)); } catch (SAXException e) { throw new IOException(RepoText.get().errorParsingManifestFile, e); } }
if ("project".equals(qName)) { //$NON-NLS-1$ if (attributes.getValue("name") == null) { //$NON-NLS-1$ throw new SAXException(RepoText.get().invalidManifest); } else if ("copyfile".equals(qName)) { //$NON-NLS-1$ if (currentProject == null) throw new SAXException(RepoText.get().invalidManifest); currentProject.addCopyFile(new CopyFile( rootRepo, } else if ("linkfile".equals(qName)) { //$NON-NLS-1$ if (currentProject == null) { throw new SAXException(RepoText.get().invalidManifest); if (is == null) { throw new SAXException( RepoText.get().errorIncludeNotImplemented); RepoText.get().errorIncludeFile, name), e); } catch (IOException e) { throw new SAXException(MessageFormat.format( RepoText.get().errorIncludeFile, path), e);
ManifestErrorException(Throwable cause) { super(RepoText.get().invalidManifest, cause); } }
ManifestErrorException(Throwable cause) { super(RepoText.get().invalidManifest, cause); } }
RemoteUnavailableException(String uri) { super(MessageFormat.format(RepoText.get().errorRemoteUnavailable, uri)); } }
RemoteUnavailableException(String uri) { super(MessageFormat.format(RepoText.get().errorRemoteUnavailable, uri)); } }
/** * Read the xml file. * * @param inputStream * @throws IOException */ public void read(InputStream inputStream) throws IOException { xmlInRead++; final XMLReader xr; try { xr = XMLReaderFactory.createXMLReader(); } catch (SAXException e) { throw new IOException(JGitText.get().noXMLParserAvailable); } xr.setContentHandler(this); try { xr.parse(new InputSource(inputStream)); } catch (SAXException e) { IOException error = new IOException( RepoText.get().errorParsingManifestFile); error.initCause(e); throw error; } }
/** * Read the xml file. * * @param inputStream * a {@link java.io.InputStream} object. * @throws java.io.IOException */ public void read(InputStream inputStream) throws IOException { xmlInRead++; final XMLReader xr; try { xr = XMLReaderFactory.createXMLReader(); } catch (SAXException e) { throw new IOException(JGitText.get().noXMLParserAvailable); } xr.setContentHandler(this); try { xr.parse(new InputSource(inputStream)); } catch (SAXException e) { throw new IOException(RepoText.get().errorParsingManifestFile, e); } }
if ("project".equals(qName)) { //$NON-NLS-1$ if (attributes.getValue("name") == null) { //$NON-NLS-1$ throw new SAXException(RepoText.get().invalidManifest); } else if ("copyfile".equals(qName)) { //$NON-NLS-1$ if (currentProject == null) throw new SAXException(RepoText.get().invalidManifest); currentProject.addCopyFile(new CopyFile( rootRepo, } catch (Exception e) { throw new SAXException(MessageFormat.format( RepoText.get().errorIncludeFile, name), e); } catch (IOException e) { throw new SAXException(MessageFormat.format( RepoText.get().errorIncludeFile, path), e); RepoText.get().errorIncludeNotImplemented);
if ("project".equals(qName)) { //$NON-NLS-1$ if (attributes.getValue("name") == null) { //$NON-NLS-1$ throw new SAXException(RepoText.get().invalidManifest); } else if ("copyfile".equals(qName)) { //$NON-NLS-1$ if (currentProject == null) throw new SAXException(RepoText.get().invalidManifest); currentProject.addCopyFile(new CopyFile( rootRepo, } else if ("linkfile".equals(qName)) { //$NON-NLS-1$ if (currentProject == null) { throw new SAXException(RepoText.get().invalidManifest); if (is == null) { throw new SAXException( RepoText.get().errorIncludeNotImplemented); RepoText.get().errorIncludeFile, name), e); } catch (IOException e) { throw new SAXException(MessageFormat.format( RepoText.get().errorIncludeFile, path), e);