Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-12Extract method to get artifact repositories in DownloadManagerMykola Nikishov1-7/+18
Change-Id: I03f3710c7d1debf148a90911557c1353e14cc80d Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-06-11Bug 535318 - Update license to EPL-2.0 for p2 in about.htmlLars Vogel1-16/+24
Change-Id: I9c48c4b54d9685e1ee7d5296093d7b27d3d50e54 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-06-07Bug 535318 - Update versions for next releaseAlexander Kurtakov2-2/+2
Prep for update license to EPL-2.0 Change-Id: I2fe45c006012a83c207821a2d41abaa248df3802 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-05-30Bug 535327 - Streamline maven poms hierachyI20180531-2125I20180531-2000I20180531-1245I20180531-0910Alexander Kurtakov1-4/+4
Needed so tycho-versions:set-versions works properly. Not all modules handled properly but majority are which is good enough for me now. Change-Id: I62d65744ed65d083f3755aab86b925fa780092b5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-04-09Bug 527874 - Remember failed repositories on load requestI20180412-2000Karsten Thoms1-20/+41
When a loading a repository failed once, its location is remembered to early exit on subsequent load requests. Multiple requests can happen e.g. during Check for Updates action. Change-Id: I56258d50523d95dff84ef4153bfc687f3bf80355 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-03-02Bug 531917 - Remove redundant type parametersAlexander Kurtakov7-17/+17
With Java 8 and properly generified some apis it's not needed to specify the types anymore. Change-Id: Ib758c6f50b1b1fd3f56bd52eb7e664b89b6cc776 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-30Bug 530486 - Remove useless thrown exceptions.I20180130-2000Alexander Kurtakov2-5/+4
Change-Id: Ieb5178a2eecbeaab88afd5e00bc3806bc615c7ae Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-03Bug 529078 - Add header Automatic-Module-Name for Java 9I20180104-2000I20180104-0030I20180103-2000Karsten Thoms1-0/+1
Increment versions for Eclipse 4.8 Photon Change-Id: I678108c1f5afa895be26040184cd8c21e83a8a0e Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
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-08-18Bug 521114 - Move p2 engine to Java 8Alexander Kurtakov6-29/+14
Bump minor version, try-with-resources, remove duplicate type declarations. Change-Id: I33bc01cfef2272e444614f92fb4fcc313bffbe91 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-07-03Bug 512312: Droplets should correctly detect feature group IUs.I20170703-2000Roland Grunberg1-2/+3
This issue has been mostly addressed by 7c95455. The logic for detection of feature groups was wrongly comparing a string and a boolean for equality as well as being computed more times than necessary. Change-Id: Icd714e39b798fba748d88c3aea2845649aa9fee1 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2017-06-27Bug 514885 Pooling Version and VersionRangeKarsten Thoms3-3/+3
- 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-03-19Bug 513790 - Compiler warnings in I20170316-2000 after moving to M6I20170328-2000I20170327-2000I20170326-2000I20170325-2000I20170324-2000I20170323-2000I20170322-2000Andrey Loskutov2-5/+8
compiler Change-Id: I3de8ff54e4efc354443ab2d99fd75316f2abacbb Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2017-01-10Bug 509473: Update version number of simpleconfigurator and p2.engineY20170112-1300Y20170112-1000I20170112-2000I20170112-0245I20170112-0200I20170111-2000I20170111-0200I20170110-2000Markus Keller2-2/+2
2017-01-10Update version number of simpleconfigurator and p2.enginePascal Rapicault2-2/+2
Change-Id: Ide7411f941c6561cba6dd78c6f1c378044056f3d
2017-01-10Bug 509473: Bump p2.engine and equinox.simpleconfigurator to JavaSE-1.7.Alexander Kurtakov44-218/+361
Enable some java 1.7 and older code style warnings and fix them: * Add missing @Override. * Remove redundant type declarations. * Remove useless non-javadoc comments. Change-Id: If80ea62f65204cad77275e07fee096a276d35c5c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-01-10Bug 509473: Bump p2.engine and equinox.simpleconfigurator to JavaSE-1.7.Alexander Kurtakov2-4/+4
Sync project settings with BREE bump in manifest. Change-Id: I93e6d52f91d93c04bf85413a1c348c3c991f8c89 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-01-10Bug 495012 - ProvisioningContext#setMetadataRepositories andLars Vogel1-3/+3
setArtifactRepositories should use varargs Change-Id: I917123d4225320c27cde4e7c05473f37d7f7e713 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-01-09Bug 508905: Change File.canWrite to Files.isWritable for p2 Droplets.Roland Grunberg1-1/+2
For compatibility with Windows, use java.nio.Files.isWritable(Path) instead of java.io.File.canWrite(). This is due to the fact that canWrite always returns true for directories on Windows. - Enable all tests disabled on Windows by 416b782 - Introduce reallyReadOnly/removeReallyReadonly functions that operate recursively on a directory (like chmod -R on linux) since certain test cases require this Change-Id: I615dfdef60e4abd23c34602bd324c307325e00d4 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2017-01-09Bug 509473: Bump p2.engine and equinox.simpleconfigurator to JavaSE-1.7.I20170109-2000Roland Grunberg1-1/+1
org.eclipse.equinox.p2.engine and org.eclipse.equinox.simpleconfigurator should be bumped from a BREE of J2SE-1.5 to JavaSE-1.7 to resolve issues such as Bug 508905. Change-Id: Ib84b397b6c0fb6cbde5a1cf8d3583cb33be5df21 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2016-08-30Bug 371970 - NPE atSergey Prigogin1-4/+20
org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.lockProfile Change-Id: I789887493f8b5e3b601a6b00c8ec7928c77e85e3 Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
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-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-5/+9
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-10-19Prevent NPE in DebugHelper's formatParameters methodI20151110-0800Mykola Nikishov1-1/+3
Change-Id: I816a68305ec086da8bfd9b7ec179ece6af35b52e 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 Blewitt6-13/+12
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-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-05-11Bug 463077 - Please review and fix bundle/feature version numbers I20150512-2100I20150512-2000I20150511-2130I20150511-2000Pascal Rapicault2-2/+2
Change-Id: I053ef39cc7a102e3cf6945d7bdd998947595a0fc
2015-04-23Update versions for MarsThomas Watson2-2/+2
2015-02-26Bug 460967 - Use type safe service retrievingI20150303-0800Alexander Kurtakov4-13/+16
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>
2015-02-02Bug 438714 - Expose whether a provisioning plan has operands or notI20150210-0800I20150203-0800Eike Stepper2-0/+11
This change adds a public isEmpty() method to IProvisioningPlan. Change-Id: Ib1eef3c306f524bc542cca0885b9b7e32c90d8a9 Signed-off-by: Eike Stepper <stepper@esc-net.de>
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>
2014-05-06Bug 434225 - Use runnable repo to collect metadata.I20140511-2000I20140510-1500I20140509-2000I20140508-2000I20140507-2000I20140506-2000Roland Grunberg1-33/+29
Instead of parsing each fragment.profile individually and adding its metadata to the shared profile, use the metadata from the runnable repository as it should be identical. This allows us to eliminate 'fragment.profile' from the p2 Droplets format. Change-Id: I6b727e6433168a3527241a3d5de3ebbd09ff8db0 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2013-12-17Bug 422054: Create profile from existing bundles.infoI20131224-0800Krzysztof Daniel6-11/+250
I've hijacked the bug for the purpose of something that is remotely connected to the problem. Previous commit extends simpleconfigurator to load bundles from different locations, but such an extension breaks p2, as the content of OSGi application no longer corresponds to profile. In order to fix that, following things are done: 0. A fragment must contain valid P2 metadata next to the .info file. 1. User profile is dropped when there is master configuration change. Also, when fragments are changed. 2. When a new surrogate profile is created, P2 will add to the master profile all the units that are found in the fragments repos. Therefore new user profile will contain all the units that were installed by the simpleconfigurator. Fragment repos must be runnable. 3. The director application must be configured with extensions if it is supposed to work. Change-Id: I6e857ea51dd32ae7fab39d9c39bec8a91eb203b7 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-19Bug 422026 - Get rid of ColletionUtils.empty[Set|List|Map]Alexander Kurtakov3-7/+4
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-5/+2
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-05-26Revert "Bug 408138 - Dropins are broken in after master configuration change"I20130526-2000Pascal Rapicault1-16/+0
This reverts commit e54bcf3357346b2223572bb4f352d49935674625.
2013-05-16Bug 408138 - Dropins are broken in after master configuration changeKrzysztof Daniel1-0/+16
First part of the fix. It reestablishes the connection between SimpleConfiguratorImpl and SimpleProfileRegistry, so when config.ini is modified, user profile is dropped even without timestamp change. https://bugs.eclipse.org/bugs/show_bug.cgi?id=408138
2013-04-08Remove unnecessary propertyPascal Rapicault (Ericsson)1-2/+0
2013-03-27Bug 403971 - Update Equinox p2 parent versionsI20130402-0800Pascal Rapicault2-3/+4
2013-03-05API comment cleanupv20130305-154419John Arthorne2-2/+27
2013-02-28Remove unnecessary constant added in M5v20130228-212941Pascal Rapicault (Ericsson)2-2/+5
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.
2013-02-06Rename variablev20130206-015153Pascal Rapicault (Ericsson)1-3/+3
2013-02-06Check for the presence of the agent registered propertyPascal Rapicault (Ericsson)1-4/+3
2013-02-05Bug 400011 - [shared][engine] Cleanup the SurrogateProfileHandler codePascal Rapicault (Ericsson)2-51/+5

Back to the top