コード例 #1
0
    def getRenderingFor(self, build):
        # Upcall the base class first.
        p = WithProperties.getRenderingFor(self, build)

        # Then we need to normalize the path for
        # watever is native on the buildslave.
        # Note: Do not call normpath here, as it could
        # change the path meaning if links used.
        slave = build.build.slavebuilder.slave

        return slave.path_module.normcase(p)
コード例 #2
0
ファイル: buildsteps.py プロジェクト: gssajith87/mingw-w64
    def getRenderingFor(self, build):
        origfmtstring = self.fmtstring
        if isinstance(origfmtstring, WithProperties):
            self.fmtstring = origfmtstring.getRenderingFor(build)

        try:
            ret = WithProperties.getRenderingFor(self, build)
        finally:
            self.fmtstring = origfmtstring

        return ret
コード例 #3
0
ファイル: properties.py プロジェクト: efcs/zorg
    def getRenderingFor(self, build):
        # Upcall the base class first.
        p = WithProperties.getRenderingFor(self, build)

        # Then we need to normalize the path for
        # watever is native on the buildslave.
        # Note: Do not call normpath here, as it could
        # change the path meaning if links used.
        slave = build.build.slavebuilder.slave

        return slave.path_module.normcase(p)
コード例 #4
0
    def getRenderingFor(self, build):
        # Upcall the base class first.
        p = WithProperties.getRenderingFor(self, build)

        # Then we need to figure out the buildslave OS:
        slave = build.build.slavebuilder.slave
        if slave.slave_system == 'posix':
            # Note: Do not call normpath here, as it could
            # change the path meaning if links used.
            p = slave.path_module.normcase(p)
        elif slave.slave_system in ('win32', 'nt'):
            # Preserve the case, only replace
            # the path separator to the POSIX one.
            p = p.replace('\\', '/')
        else:
            # Return the string as is.
            pass

        return p
コード例 #5
0
ファイル: properties.py プロジェクト: efcs/zorg
    def getRenderingFor(self, build):
        # Upcall the base class first.
        p = WithProperties.getRenderingFor(self, build)

        # Then we need to figure out the buildslave OS:
        slave = build.build.slavebuilder.slave
        if slave.slave_system == 'posix':
            # Note: Do not call normpath here, as it could
            # change the path meaning if links used.
            p = slave.path_module.normcase(p)
        elif slave.slave_system in ('win32', 'nt'):
            # Normalize the path first, then replace
            # the path separator to the POSIX one.
            p = slave.path_module.normcase(p).replace('\\','/')
        else:
            # Return the string as is.
            pass

        return p