Package org.eclipse.aether.internal.impl
Class LegacyTrackingFileManager
java.lang.Object
org.eclipse.aether.internal.impl.LegacyTrackingFileManager
- All Implemented Interfaces:
TrackingFileManager
Manages access to a properties file in legacy compatible way.
Note: the file locking in this component (that predates SyncContext) is present only
to back off two parallel implementations that coexist in Maven (this class and maven-compat one), as in
certain cases the two implementations may collide on properties files. This locking must remain in place for as long
as maven-compat code exists.
This implementation should be used when multiple, legacy Maven versions (older than 3.10.x) share same local repository concurrently.
- Since:
- 2.0.17
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeletes the specified properties file, if exists.Deprecated.Reads up the specified properties file intoProperties, if exists, otherwisenullis returned.Deprecated.Applies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.
-
Constructor Details
-
LegacyTrackingFileManager
public LegacyTrackingFileManager()
-
-
Method Details
-
read
Deprecated.Description copied from interface:TrackingFileManagerReads up the specified properties file intoProperties, if exists, otherwisenullis returned.- Specified by:
readin interfaceTrackingFileManager
-
read
Description copied from interface:TrackingFileManagerReads up the specified properties file intoProperties, if exists, otherwisenullis returned.- Specified by:
readin interfaceTrackingFileManager
-
update
Deprecated.Description copied from interface:TrackingFileManagerApplies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.- Specified by:
updatein interfaceTrackingFileManager
-
update
Description copied from interface:TrackingFileManagerApplies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.- Specified by:
updatein interfaceTrackingFileManager
-
delete
Deprecated.Description copied from interface:TrackingFileManagerDeletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Specified by:
deletein interfaceTrackingFileManager
-
delete
Description copied from interface:TrackingFileManagerDeletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Specified by:
deletein interfaceTrackingFileManager
-