def __init__(self, workspace, path):
        super(Repository, self).__init__(path, workspace.environment,
                                         workspace, workspace.reporter)

        self._config = self.directory.read_yaml(Repository.CONFIG_FILE_NAME)
        self._full_name = os.path.split(path)[1]

        self._parse_full_name()

        version_data = self.directory.read_unicode_file("version")
        self._version = version_data.strip(
        ) if version_data else Repository.DEFAULT_VERSION
        self._organization = nget(self._config, "organization", default="")
        self._product = nget(self._config, "product", default=self.full_name)
        self._copyright = nget(self._config, "copyright", default="")
        self._title = nget(self._config, "title", default="")
        self._license_url = nget(self._config, "license_url", default="")
        self._url = nget(self._config, "url", default="")
        self._description = nget(self._config, "description", default="")
        self._summary = nget(self._config, "summary", default="")
        self._release_notes = nget(self._config, "release_notes", default="")
        self._tags = nget(self._config, "tags", default="")

        self._source_infocomment = self.directory.read_unicode_file("comment")

        self._externals = ExternalsManager(self, Repository.EXTERNALS_DIR)
        self._projects = []

        self._configurator = self._create_configurator()
        self._nuget_packager = NuGetPackager(self)
    def __init__(self, workspace, path):
        super(Repository, self).__init__(path, workspace.environment, workspace, workspace.reporter)
        
        self._config = self.directory.read_yaml(Repository.CONFIG_FILE_NAME)
        self._full_name = os.path.split(path)[1]

        self._parse_full_name()

        version_data = self.directory.read_unicode_file("version")
        self._version = version_data.strip() if version_data else Repository.DEFAULT_VERSION
        self._organization = nget(self._config, "organization", default="")
        self._product = nget(self._config, "product", default=self.full_name)
        self._copyright = nget(self._config, "copyright", default="")
        self._title = nget(self._config, "title", default="")
        self._license_url = nget(self._config, "license_url", default="")
        self._url = nget(self._config, "url", default="")
        self._description = nget(self._config, "description", default="")
        self._summary = nget(self._config, "summary", default="")
        self._release_notes = nget(self._config, "release_notes", default="")
        self._tags = nget(self._config, "tags", default="")

        self._source_infocomment = self.directory.read_unicode_file("comment")

        self._externals = ExternalsManager(self, Repository.EXTERNALS_DIR)
        self._projects = []

        self._configurator = self._create_configurator()
        self._nuget_packager = NuGetPackager(self)
    def __init__(self, repository, path, to_repository_relative_path):
        super(Project,
              self).__init__(path, repository.environment,
                             repository.workspace, repository.reporter)

        self._repository = repository
        self._to_repository_relative_path = to_repository_relative_path

        self._config = self.directory.read_yaml(Project.CONFIG_FILE_NAME)
        self._full_name = os.path.split(path)[1]

        self._type = 'lib'

        self._references = nget(self._config, 'references', [])
        self._referenced_projects = []

        self._parse_full_name()

        config_type = nget(self._config, 'type')
        if config_type:
            self._type = config_type

        self._description = nget(self.config, "description", "")

        self._pretty_label = "%s (%s/%s)" % (self.name, self.kind, self.type)

        self._configurator = self._create_configurator()

        self._add_auto_references()
    def __init__(self, repository, path, to_repository_relative_path):
        super(Project, self).__init__(path, repository.environment, repository.workspace, repository.reporter)

        self._repository = repository
        self._to_repository_relative_path = to_repository_relative_path

        self._config = self.directory.read_yaml(Project.CONFIG_FILE_NAME)
        self._full_name = os.path.split(path)[1]

        self._type = 'lib'

        self._references = nget(self._config, 'references', [])
        self._referenced_projects = []

        self._parse_full_name()

        config_type = nget(self._config, 'type')
        if config_type:
            self._type = config_type

        self._description = nget(self.config, "description", "")

        self._pretty_label = "%s (%s/%s)" % (self.name, self.kind, self.type)

        self._configurator = self._create_configurator()

        self._add_auto_references()
    def __init__(self, project):
        super(ProjectConfiguratorCs, self).__init__(project)

        self._source_files = []

        self._project_guid = nget(self.project.config, "project_guid")
        self._assemblyinfo_guid = nget(self.project.config, "assemblyinfo_guid")
        self._external_libs = nget(self.project.config, "external_libs", [])

        self._flattened_external_libs = []
        self._flattened_resolved_libs = {}
    def __init__(self, project):
        super(ProjectConfiguratorCs, self).__init__(project)

        self._source_files = []

        self._project_guid = nget(self.project.config, "project_guid")
        self._assemblyinfo_guid = nget(self.project.config,
                                       "assemblyinfo_guid")
        self._external_libs = nget(self.project.config, "external_libs", [])

        self._flattened_external_libs = []
        self._flattened_resolved_libs = {}
    def __init__(self, repository):
        self._repository = repository

        self._package_name = "%s.%s" % (self.repository.full_name,
                                        self.repository.version)
        self._dependencies = nget(self.repository.config, "nuget_dependencies",
                                  [])
        self._lib_files = {}
    def __init__(self, repository):
        super(RepositoryConfiguratorCs, self).__init__(repository)

        self._supported_frameworks = nget(self.repository.config, "dotnet_frameworks", [])
        self._configurations = ['Debug', 'Release']
Beispiel #9
0
    def __init__(self, repository):
        super(RepositoryConfiguratorCs, self).__init__(repository)

        self._supported_frameworks = nget(self.repository.config,
                                          "dotnet_frameworks", [])
        self._configurations = ['Debug', 'Release']