Lines 44-49
Link Here
|
44 |
import org.eclipse.update.core.model.CategoryModel; |
44 |
import org.eclipse.update.core.model.CategoryModel; |
45 |
import org.eclipse.update.core.model.SiteModelFactory; |
45 |
import org.eclipse.update.core.model.SiteModelFactory; |
46 |
import org.eclipse.update.core.model.URLEntryModel; |
46 |
import org.eclipse.update.core.model.URLEntryModel; |
|
|
47 |
import org.eclipse.update.internal.core.CoreExceptionWithRootCause; |
47 |
import org.eclipse.update.internal.core.FatalIOException; |
48 |
import org.eclipse.update.internal.core.FatalIOException; |
48 |
import org.eclipse.update.internal.core.ISiteContentConsumer; |
49 |
import org.eclipse.update.internal.core.ISiteContentConsumer; |
49 |
import org.eclipse.update.internal.core.UpdateCore; |
50 |
import org.eclipse.update.internal.core.UpdateCore; |
Lines 246-252
Link Here
|
246 |
try { |
247 |
try { |
247 |
provider.getPluginEntryArchiveReferences(pluginsToInstall[i], null); |
248 |
provider.getPluginEntryArchiveReferences(pluginsToInstall[i], null); |
248 |
} catch (CoreException ce) { |
249 |
} catch (CoreException ce) { |
249 |
if ( ignoreNonPresentPlugins && (ce.getCause() != null) && (ce.getCause() instanceof FatalIOException) ) { |
250 |
if ( ignoreNonPresentPlugins && |
|
|
251 |
(ce instanceof CoreExceptionWithRootCause) && |
252 |
(((CoreExceptionWithRootCause)ce).getRootException() != null) && |
253 |
(((CoreExceptionWithRootCause)ce).getRootException() instanceof FatalIOException) ) { |
250 |
System.out.println("Could not mirror plug-in " + pluginsToInstall[i].getVersionedIdentifier().toString() + ". It does not exist on the given site"); //$NON-NLS-1$//$NON-NLS-2$ |
254 |
System.out.println("Could not mirror plug-in " + pluginsToInstall[i].getVersionedIdentifier().toString() + ". It does not exist on the given site"); //$NON-NLS-1$//$NON-NLS-2$ |
251 |
} else { |
255 |
} else { |
252 |
throw ce; |
256 |
throw ce; |
Lines 293-299
Link Here
|
293 |
storePluginArchive(references[0]); |
297 |
storePluginArchive(references[0]); |
294 |
addDownloadedPluginEntry(pluginsToInstall[i]); |
298 |
addDownloadedPluginEntry(pluginsToInstall[i]); |
295 |
} catch (CoreException ce) { |
299 |
} catch (CoreException ce) { |
296 |
if ( ignoreNonPresentPlugins && (ce.getCause() != null) && (ce.getCause() instanceof FatalIOException) ) { |
300 |
if ( ignoreNonPresentPlugins && |
|
|
301 |
(ce instanceof CoreExceptionWithRootCause) && |
302 |
(((CoreExceptionWithRootCause)ce).getRootException() != null) && |
303 |
(((CoreExceptionWithRootCause)ce).getRootException() instanceof FatalIOException) ) { |
297 |
System.out.println("Could not write plug-in " + pluginsToInstall[i].getVersionedIdentifier().toString() + ". It does not exist on the given site"); //$NON-NLS-1$ //$NON-NLS-2$ |
304 |
System.out.println("Could not write plug-in " + pluginsToInstall[i].getVersionedIdentifier().toString() + ". It does not exist on the given site"); //$NON-NLS-1$ //$NON-NLS-2$ |
298 |
} else { |
305 |
} else { |
299 |
//System.out.println("ignoreNonPresentPlugins:"+ignoreNonPresentPlugins); //$NON-NLS-1$ |
306 |
//System.out.println("ignoreNonPresentPlugins:"+ignoreNonPresentPlugins); //$NON-NLS-1$ |