Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 113168 Details for
Bug 247889
MirrorApplication does not handle "-append" arguement consistently
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Added code to handle "-append" arguement
247889patch.txt (text/plain), 1.66 KB, created by
Andrew Cattle
on 2008-09-22 13:40:49 EDT
(
hide
)
Description:
Added code to handle "-append" arguement
Filename:
MIME Type:
Creator:
Andrew Cattle
Created:
2008-09-22 13:40:49 EDT
Size:
1.66 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.metadata.repository >Index: src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java,v >retrieving revision 1.1 >diff -u -r1.1 MirrorApplication.java >--- src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java 28 May 2008 20:52:05 -0000 1.1 >+++ src/org/eclipse/equinox/internal/p2/metadata/mirror/MirrorApplication.java 22 Sep 2008 17:39:24 -0000 >@@ -31,6 +31,7 @@ > private IMetadataRepository source; > private IMetadataRepository destination; > private boolean transitive = false; >+ private boolean append; > > /** > * Convert a list of tokens into an array. The list separator has to be >@@ -71,6 +72,8 @@ > IMetadataRepository repository = repoManager.loadRepository(destinationLocation, null); > if (!repository.isModifiable()) > throw new IllegalArgumentException("Metadata repository not modifiable: " + destinationLocation); //$NON-NLS-1$ >+ if (!append) >+ repository.removeAll(); > return repository; > } catch (ProvisionException e) { > //fall through and create repo >@@ -87,6 +90,8 @@ > if (args == null) > return; > for (int i = 0; i < args.length; i++) { >+ if (args[i].equals("-append")) >+ append = true; > // check for args with parameters. If we are at the last argument or > // if the next one has a '-' as the first character, then we can't have > // an arg with a param so continue.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dj.houghton
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 247889
: 113168