Package org.eclipse.tycho.core.osgitools
Class BuildPropertiesParserImpl
- java.lang.Object
-
- org.eclipse.tycho.core.osgitools.BuildPropertiesParserImpl
-
- All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable,BuildPropertiesParser
@Component(role=BuildPropertiesParser.class) public class BuildPropertiesParserImpl extends java.lang.Object implements BuildPropertiesParser, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
-
-
Field Summary
Fields Modifier and Type Field Description private LRUCache<java.lang.String,BuildProperties>cacheprivate org.apache.maven.plugin.LegacySupportlegacySupportprivate org.codehaus.plexus.logging.Loggerlogger-
Fields inherited from interface org.eclipse.tycho.core.shared.BuildPropertiesParser
BUILD_PROPERTIES
-
-
Constructor Summary
Constructors Modifier Constructor Description BuildPropertiesParserImpl()protectedBuildPropertiesParserImpl(org.apache.maven.plugin.LegacySupport legacySupport, org.codehaus.plexus.logging.Logger logger)Must only be used for tests!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()protected voidinterpolate(java.util.Properties properties, java.io.File baseDir)BuildPropertiesparse(java.io.File baseDir)Parse the file "build.properties" in baseDir.protected static java.util.PropertiesreadProperties(java.io.File propsFile)
-
-
-
Field Detail
-
legacySupport
@Requirement private org.apache.maven.plugin.LegacySupport legacySupport
-
logger
@Requirement private org.codehaus.plexus.logging.Logger logger
-
cache
private final LRUCache<java.lang.String,BuildProperties> cache
-
-
Method Detail
-
parse
public BuildProperties parse(java.io.File baseDir)
Description copied from interface:BuildPropertiesParserParse the file "build.properties" in baseDir. If the file does not exist or cannot be read, an "empty"BuildPropertieswill be returned.- Specified by:
parsein interfaceBuildPropertiesParser
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
-
readProperties
protected static java.util.Properties readProperties(java.io.File propsFile)
-
interpolate
protected void interpolate(java.util.Properties properties, java.io.File baseDir)
-
-