Esempio n. 1
0
 def _msbuild(self, config):
     command = [
         config.executables['msbuild'],
         '/p:Configuration=%s'  % config.configuration,
         '/p:Platform=%s'       % config.platform,
         '/p:PlatFormTarget=%s' % config.platform,
         '/p:OutputPath=%s'     % config.output_path,
         '/t:%s' %  os.path.normpath(self.project.id.replace('.', '_')),
         self.sln,
     ]
     return execute_in_environment(config.environment, *command)
Esempio n. 2
0
 def _msbuild(self, config):
     command = [
         config.executables['msbuild'],
         '/p:Configuration=%s' % config.configuration,
         '/p:Platform=%s' % config.platform,
         '/p:PlatFormTarget=%s' % config.platform,
         '/p:OutputPath=%s' % config.output_path,
         '/t:%s' % os.path.normpath(self.project.id.replace('.', '_')),
         self.sln,
     ]
     return execute_in_environment(config.environment, *command)
Esempio n. 3
0
 def _command(self, config):
     status, output, error = (0, '', '')
     for command in self.commands:
         if isinstance(command, basestring):
             command = shutil.split(string.Template(command).safe_substitute(**config.environment))
         else:
             command = map(lambda part: string.Template(part).safe_substitute(**config.environment), command)
         s, o, e = execute_in_environment(config.environment, *command)
         status += 0 if s in self.success else 1
         output += o
         error  += e
         if status != 0:
             break
     return status, output, error
Esempio n. 4
0
 def _command(self, config):
     status, output, error = (0, '', '')
     for command in self.commands:
         if isinstance(command, basestring):
             command = shutil.split(
                 string.Template(command).safe_substitute(
                     **config.environment))
         else:
             command = map(
                 lambda part: string.Template(part).safe_substitute(
                     **config.environment), command)
         s, o, e = execute_in_environment(config.environment, *command)
         status += 0 if s in self.success else 1
         output += o
         error += e
         if status != 0:
             break
     return status, output, error