Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-10-13Bug 525773 Set lower version on org.eclipse.equinox.p2.metadataKarsten Thoms1-1/+1
Bundles use new API method VersionRange#create(String) which was introduced in version 2.4.0 Also set exported version of package org.eclipse.equinox.p2.metadata in bundle org.eclipse.equinox.p2.metadata Change-Id: I9c8044935b01811acf6b865f8a6701bd5fc50cb3 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-05Bug 521298 - Enhance deprecation messages in AbstractArtifactRepository I20170906-0225I20170905-2000Alexander Kurtakov1-1/+1
Fix @link to point to existing method. Change-Id: Ia440f5bc3782582549b96d4e836a4e4b29d5bf5c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-31Bug 518031 - XML External Entity Vulnerability in Eclipse IDEI20170904-0230I20170903-2000I20170902-1500I20170901-2000Brian de Alwis1-3/+9
Ensure XML processors are configured to use XMLConstants.FEATURE_SECURE_PROCESSING=true to avoid accessing external DTDs and expanding external entities. Change-Id: Ic29e4a0aab1ea5f642ce49914bc6fcecd238efe8 Signed-off-by: Brian de Alwis <bsd@mt.ca>
2017-08-23Bug 521298 - Enhance deprecation messages in AbstractArtifactRepository Alexander Kurtakov1-8/+8
Remove dubious comments and add messages to the deprecation tags pointing to the replacement methods. Change-Id: I24780e83ccf5cba61ca4c92b138f93c9a516d24f Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-06-27Bug 514885 Pooling Version and VersionRangeKarsten Thoms1-1/+1
- Introduce weak object pool for Verson and VersionRange - Use VersionRange.create() for getting pooled instances - JavaDoc & check input for empty string Change-Id: Ie42bdc1059d8c667af312038c26c035a6ef674af Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-06-22Bug 517929 - Update POMs in the master for 4.8 releaseI20170622-0950Alexander Kurtakov1-1/+1
Point to 4.8 parent pom. Change-Id: Ic754058b23731334425f98aaca527bcf90991a7d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-06-21Bug 518574 - Use StandardCharsetsAlexander Kurtakov6-18/+17
Bump BREE to 1.8 for bundles that were too low to have StandardCharsets. Change-Id: Iac9e9615c5179b970df893182f5f1c6e3dd4d574 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-05-11Bug 516457 - Many of plug-ins need a version increaseI20170514-2000I20170514-1120Alexander Kurtakov2-2/+2
Take care of the following: o.e.equinox.p2.publisher - service bump o.e.equinox.p2.publisher.eclipse - service bump o.e.equinox.p2.repository - service bump o.e.equinox.p2.repository.tools - service bump org.eclipse.equinox.p2.touchpoint.natives - service bump org.eclipse.equinox.p2.ui.admin - service bump org.eclipse.equinox.p2.ui.admin.rcp - service bump org.eclipse.equinox.p2.ui.importexport - service bump org.eclipse.equinox.p2.ui.sdk - service bump org.eclipse.equinox.p2.tests - service bump Change-Id: I21578f13200b5c9de6fed6818b16992764f33216 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-04-05Bug 514807 - [memory] Use EMPTY_STEPS always for empty processingStepsKarsten Thoms1-2/+2
Change-Id: I829ded8e6a6cf5c10a30508d00710d1af56e3e79 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-04-03Fix javadoc on return value of LocationProperties's ↵I20170405-0300I20170405-0200I20170405-0130I20170404-2000I20170404-0840I20170404-0245I20170403-2000Mykola Nikishov1-1/+1
getArtifactFactorySearchOrder() Change-Id: Idc31cf4e6dbc1beea5b027604d5a2a980c060dff Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2017-03-29Bug 509401 - Don't hide I/O problems in ChecksumProducer's computeMD5(File)Mykola Nikishov1-5/+6
If caller doesn't care about I/O problems during checksum calculation, neither should computeMD5 method. The only two callers, RecreateRepositoryApplication and PublisherHelper, now catch such exceptions (to preserve original behavior) and log them to make troubleshooting easier. Change-Id: I1e82ac45cc958f4ffc3ed969a50cfa68aec3c8fc Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2017-03-29Bug 509401 - Clean up ChecksumProducer's computeMD5(File)Y20170330-1000I20170329-2000Mykola Nikishov1-8/+3
Combine all statements that throw exceptions into a single try/catch block and do not catch FileNotFoundException as we're catching its parent, IOException, already. Change-Id: I26c02a183e5d950a6e19c3e6187d6e54418c422e Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2017-02-08Convert plain text in javadoc to a linkY20170302-1000Y20170223-1000Y20170216-1515Y20170216-1450Y20170216-1000Y20170209-1000I20170307-2000I20170307-0800I20170307-0610I20170307-0450I20170307-0420I20170307-0410I20170307-0150I20170306-2000I20170306-0800I20170305-2000I20170304-2000I20170303-2000I20170302-2000I20170301-2000I20170228-2000I20170228-0330I20170228-0240I20170227-2000I20170226-2000I20170225-2000I20170224-2000I20170223-2000I20170222-2000I20170221-2000I20170220-2000I20170219-2000I20170218-2000I20170217-2000I20170216-2000I20170216-0140I20170215-2000I20170214-2200I20170214-2000I20170213-2000I20170212-2000I20170211-2000I20170210-2000I20170210-0615I20170210-0600I20170210-0550I20170210-0530I20170209-2000I20170208-2000Mykola Nikishov1-2/+2
Change-Id: I7dac259e9aa983ffff73bf96c31befd0080f6245 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2016-10-31Bug 483286 - NullPointerException in AbstractRepositoryManager.flushCache()Eike Stepper1-5/+7
Change-Id: I8e010c2a49d8ce75e5d491201800d38c924dfe91 Signed-off-by: Eike Stepper <stepper@esc-net.de>
2016-06-28Bug 496465 - Prep for 4.7 (Oxygen) and 4.6.1 (Neon.1) maintenance buildsThomas Watson1-1/+1
Change-Id: I90a85375f7864204f482d76130da772798f0a28b Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2016-04-21Bug 490028 - Extract MD5 checksum calculation into a separate classMykola Nikishov2-1/+64
MD5 checksum is calculated in (almost) the same way in two places: org.eclipse.equinox.p2.internal.repository.tools.RepositoryUtilities and org.eclipse.equinox.spi.p2.publisher.PublisherHelper. The latter uses 4K byte buffer instead of byte-by-byte update which makes MD5 calculation for a 300k jar file 5x faster, see bug #405716 for more details. Due to the duplication, this has been fixed in PublisherHelper only but not in RepositoryUtilities. Eliminate code duplication by extracting MD5 checksum calculation into a separate class, ChecksumProducer. To make it consimable by org.eclipse.equinox.p2.publisher and org.eclipse.equinox.p2.repository.tools bundles but not exposing too much internals, move it to the x-friend'ed org.eclipse.equinox.internal.p2.repository.helpers package of org.eclipse.equinox.p2.repository bundle. Change-Id: Ic8b45a47700f35af1fb69f534dec7b32a2f7714a Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2016-04-19Bug 489706 - Replace new Integer() with Integer.valueOf()I20160419-0800Alex Blewitt2-4/+4
There are a lot of new Integer() calls in the P2 codebase, which results in many duplicate values of Integer being stored, particularly when performing updates or checks. Integer.valueOf() performs this caching already, which means that it's unnecessary to call new Integer() and instead can call Integer.valueOf(). In the places where the int value is being used directly, the call can be further optimised to Integer.parseInt() instead. Replace calls to new Integer() with Integer.valueOf() or .parseInt() as appropriate. Change-Id: Ic760e66084c856fc90cb7c8a358007c975213638 Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-01-02update pomsPascal Rapicault1-1/+1
Change-Id: Icc9608edfcdd0a615c4edf42df4398a1f30a271c
2016-01-02Update bundles versionsPascal Rapicault1-1/+1
Change-Id: I479ee5a8b507090ce496e7b334e0055e027896fe
2016-01-02Bug 466249 - Propagate more exceptions to ease problem analysisEike Stepper2-3/+7
We often get problem reports with stack traces that "end" somewhere in p2 even though it's obvious from looking at these places that there was a causing exception. These causing exceptions are often not propagated with the new exception that p2 creates and throws. I'm not sure if that's on purpose or just an oversight. I've prepared a proposal to enhance these places and make it easier to analyze the problems that users report. Change-Id: Iaa53448c53c18301113b42dbe80558eccec49e8e Signed-off-by: Eike Stepper <stepper@esc-net.de>
2015-11-23Extract method to calculate repository factories' orderI20151229-0800I20151222-0800I20151215-0800I20151213-2000I20151209-2300I20151209-2000I20151209-0800I20151208-2000I20151208-0800I20151207-2000I20151207-0800I20151206-2000I20151203-1230I20151203-0800I20151201-1100I20151201-0800I20151124-1000I20151124-0800Mykola Nikishov1-15/+5
As both artifacts and metadata repository factories' order calculated in the same way, eliminate duplication by extracting this logic into a separate method. Change-Id: I5900fcf5126968715ea2f0720229942bf878381b Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2015-09-07Bug 476724 - Remove new Boolean and Boolean.valueOf().booleanValue()I20150929-0800I20150922-0800I20150916-2000I20150916-0800I20150915-2000I20150915-0800I20150914-2000I20150914-1545I20150914-1130I20150914-0800I20150913-2000I20150908-0800Alex Blewitt1-3/+3
The new Boolean constructor creates a new instance of a Boolean object, but it can easily be replaced with Boolean.valueOf which returns the reference to the global Boolean.TRUE or Boolean.FALSE. Replace calls to new Boolean() with Boolean.valueOf() for identical semantics except without object collection. Additionally Boolean.valueOf().booleanValue() is identical to Boolean.parseBoolean() and will result in no garbage. In addition, methods will be (slightly) smaller and parseBoolean will often be in-lined by the JIT, which can often prove that the value is non-null for faster checking. Replace Boolean.valueOf().booleanValue() chains with Boolean.parseBoolean(). Some other tests can use Wrapper.valueOf() to take advantage of the built-in caches that these objects maintain (for values in the range -128..127). Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com> Change-Id: I5da4216a26ffbb6b8fd3365515ee800dd82b36ae
2015-08-21Bug 474863: don't report download speed as 0 if no data availableI20150825-0800Jan Sievers3-0/+12
if no download speed data is available (yet), do not report download "0B at 0 B/s". This may happen for smaller files that are downloaded faster than the speed resolution of 1 second. However display total file size info if available. Change-Id: I4f4e530230c74985de36a1fd8ea053106adde64f Signed-off-by: Jan Sievers <jan.sievers@sap.com>
2015-07-02Bug 469765 - Prep for 4.6 (Neon) and 4.5 (Mars) maintenance buildsI20150818-0800I20150811-1400I20150805-2000I20150805-0800I20150804-2000I20150804-0800I20150803-2000I20150803-0800I20150802-2000I20150728-0800I20150721-0800I20150714-0800I20150707-0800Thomas Watson1-1/+1
- update parent poms for 4.6
2015-04-28Bug 464614 - Use XZ as compression formats of metadata filesI20150429-0800I20150428-2000Pascal Rapicault1-0/+57
Change-Id: I4107f2f4fff7ae827f5587dfb8e6b42ba2cf638a
2015-04-23Update versions for MarsThomas Watson2-2/+2
2015-04-02Bug 463760: fixed error messageI20150422-1000I20150421-0800I20150414-1400I20150414-0800I20150408-1100I20150407-0800Christian Schneider1-1/+1
Change-Id: I866efd576b5e4a94798986928f7ab79e6898ff53 Signed-off-by: Christian Schneider <schneider@yatta.de>
2015-03-11Bug 442915 - Cache URIs referenced by locationI20150318-2000I20150318-1300I20150318-0800I20150317-2000I20150317-1130I20150317-0800I20150316-2000I20150316-0800I20150315-2000Alex Blewitt1-3/+16
To minimise the impact of GC sweeps during repository parsing, store a cache of URIs against the String location against the XML parser. Change-Id: I9f4c0456c2c798cd031011340d386540dc5c9161 Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2015-02-26Bug 460967 - Use type safe service retrievingI20150303-0800Alexander Kurtakov3-8/+10
Instead of retrieving services based on their String class name there is newer implementation that takes the class directly and returns the correct class preventing casts. Change-Id: I8b26f4d294b927f4c28a6ba4e68e35bd401df4ec Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2014-06-19Bug 436736 - Prep for 4.5 (Mars) and 4.4 maintenance buildsPaul Webster1-1/+1
Update parent versions from 4.4.0 to 4.5.0 Signed-off-by: Paul Webster <pwebster@ca.ibm.com>
2013-12-11bug 423827 - Disable "Treat above errors like fatal compile errors"I20131217-0800I20131212-1600I20131211-2000Krzysztof Daniel1-1/+1
Change-Id: If2b8652ff7deed04dea308880d444f1b4e7c6ffe Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-12-09bug 418662 - Get rid of compile warnings in official build -Krzysztof Daniel1-1/+2
org.eclipse.equinox.p2.discovery.compatibility Change-Id: Ieaf254570551fef783d1cc6bbf79daf51847d5fa
2013-12-09bug 418662: Get rid of compile warnings in official build:Krzysztof Daniel1-1/+27
org.eclipse.equinox.p2.repository Change-Id: I63eda541f7e81b9687e50414ae793d2f99086a88 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-19Bug 422026 - Get rid of ColletionUtils.empty[Set|List|Map]Alexander Kurtakov1-2/+1
Now that p2 has Java 1.5 as a minimum there is no reason to not use the JVM methods. Change-Id: I89444e8d1e174c316e2b17fb4f53bc7b1d097c0a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-13Bug 421339 - Accept java 1.5Krzysztof Daniel2-7/+8
Make 1.5 setting default in Eclipse (P2 is compiled as 1.5 with tycho anyway). Drop jsr14. Change-Id: I848d7865211126ad32a226914a046f9553a48f04 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-06-26Bug 411170 -- Updated the parent poms for Luna (Eclipse 4.4)Ian Bull1-1/+1
2013-04-12bug 399668: URL for p2.index is not being generated properlyI20130416-0800Ian Bull1-9/+2
Adds a test case and removes compiler warnings for the change of how we compute the p2.index URI.
2013-04-12bug 399668: URL for p2.index is not being generated properlyIan Bull1-5/+1
Instead of trying to generate the URI ourselves, this uses URIUtil.append to create the URI with the p2.index extension.
2013-03-27Bug 403971 - Update Equinox p2 parent versionsI20130402-0800Pascal Rapicault2-3/+4
2013-02-25Bug 397850 - [CBI] use the correct group IDs for all artifactsv20130225-185631Ian Bull1-1/+1
Upated all the pom.xml files (in the bundles) to include the proper groupID. The groupID is the first three segments of the artifactID.
2012-12-11Fixed API tools warningsv20121211-151920John Arthorne1-0/+1
2012-11-21Bug 390385 - Stop the use of jsr14v20121121-194827Pascal Rapicault (Ericsson)1-2/+0
2012-11-21Re-enable p2 build to work standalonev20121121-164058Pascal Rapicault (Ericsson)1-1/+1
2012-11-17Modify Manifest to reflect addition of new APIv20121117-034659epasrap1-2/+2
2012-11-17Allow to install from a repository without copying the artifactsepasrap1-0/+6
2012-11-17Rename constant and update copyright headersv20121117-034610Pascal Rapicault (Ericsson)1-0/+1
2012-11-17Bug 249133 - [shared] Default update site list blank in shared installPascal Rapicault (Ericsson)1-4/+21
2012-09-07Bug 378377: Reorders the download artifact messagev20120907-044140Ian Bull2-3/+3
Because the middle of the download artifact message was often cut off, the throughput could not be seen. This moves it to the end of the message (where it should still appear).
2012-05-24Bug 380176 - List of available software sites is cleared when Eclipse isv20120524-1945I20120605-2100I20120605-1900I20120604-2100I20120604-1900I20120603-2100I20120603-1910I20120602-2100I20120602-1900I20120601-2100I20120601-1900I20120531-1500I20120531-0600I20120530-2100I20120530-1900I20120529-2100I20120529-1900I20120528-2100I20120528-1900I20120527-2100I20120527-1900I20120526-1900I20120525-1900I20120525-1400I20120524-2300I20120524-2100Pascal Rapicault1-0/+3
restarted
2012-05-24Add poms for Tycho buildv20120524-0542Igor Fedorenko1-1/+1

Back to the top