|
|
@ -107,9 +107,29 @@ class Configuration(): |
|
|
|
self.platformVersion = "-".join( platformInfo ) |
|
|
|
self.platformVersion = "-".join( platformInfo ) |
|
|
|
|
|
|
|
|
|
|
|
utility.printItem( "platformVersion: ", self.platformVersion ) |
|
|
|
utility.printItem( "platformVersion: ", self.platformVersion ) |
|
|
|
|
|
|
|
utility.printHeading( "Loading configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
def configureProductVersion( self ): |
|
|
|
def configureProductVersion( self ): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.updateProductVersion() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadConfiguration( self, configPath ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Git configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validateToplevelPath( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Path configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validateConfigurationPaths( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Version configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configurePlatformVersion( self ) |
|
|
|
|
|
|
|
configureProductVersion( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def updateProductVersion( self ): |
|
|
|
|
|
|
|
|
|
|
|
versionFile = open( self.productVersionPath, "r" ) |
|
|
|
versionFile = open( self.productVersionPath, "r" ) |
|
|
|
versionData = versionFile.read() |
|
|
|
versionData = versionFile.read() |
|
|
|
versionFile.close() |
|
|
|
versionFile.close() |
|
|
@ -128,23 +148,6 @@ class Configuration(): |
|
|
|
utility.printItem( "productStage: ", self.productStage ) |
|
|
|
utility.printItem( "productStage: ", self.productStage ) |
|
|
|
utility.printItem( "productPackageName: ", self.productPackageName ) |
|
|
|
utility.printItem( "productPackageName: ", self.productPackageName ) |
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Loading configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadConfiguration( self, configPath ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Git configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validateToplevelPath( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Path configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
validateConfigurationPaths( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utility.printHeading( "Version configuration..." ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configurePlatformVersion( self ) |
|
|
|
|
|
|
|
configureProductVersion( self ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def variableList( self ): |
|
|
|
def variableList( self ): |
|
|
|
|
|
|
|
|
|
|
|
return dict( ( name, getattr( self, name ) ) for name in dir( self ) if not callable( getattr( self, name ) ) and not name.startswith( '__' ) ) |
|
|
|
return dict( ( name, getattr( self, name ) ) for name in dir( self ) if not callable( getattr( self, name ) ) and not name.startswith( '__' ) ) |
|
|
|