Return-Path: X-Original-To: apmail-gump-commits-archive@www.apache.org Delivered-To: apmail-gump-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B5E310B9E for ; Thu, 14 May 2015 14:46:26 +0000 (UTC) Received: (qmail 29942 invoked by uid 500); 14 May 2015 14:46:26 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 29932 invoked by uid 99); 14 May 2015 14:46:26 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 14:46:25 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id D70B2AC0041 for ; Thu, 14 May 2015 14:46:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1679387 - in /gump/live/python/gump/core/build: __init__.py msbuild.py Date: Thu, 14 May 2015 14:46:25 -0000 To: commits@gump.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150514144625.D70B2AC0041@hades.apache.org> Author: bodewig Date: Thu May 14 14:46:25 2015 New Revision: 1679387 URL: http://svn.apache.org/r1679387 Log: builder for msbuild/xbuild Added: gump/live/python/gump/core/build/msbuild.py - copied, changed from r1679367, gump/live/python/gump/core/build/nant.py Modified: gump/live/python/gump/core/build/__init__.py Modified: gump/live/python/gump/core/build/__init__.py URL: http://svn.apache.org/viewvc/gump/live/python/gump/core/build/__init__.py?rev=1679387&r1=1679386&r2=1679387&view=diff ============================================================================== --- gump/live/python/gump/core/build/__init__.py (original) +++ gump/live/python/gump/core/build/__init__.py Thu May 14 14:46:25 2015 @@ -23,6 +23,7 @@ __license__ = "http://www.apache.org/l # tell Python what modules make up the gump.test package -__all__ = ["builder", "ant","script","maven", "java","nant","configure","make","gradle"] +__all__ = ["builder", "ant","script","maven", "java","nant","configure","make", + "gradle", "msbuild"] Copied: gump/live/python/gump/core/build/msbuild.py (from r1679367, gump/live/python/gump/core/build/nant.py) URL: http://svn.apache.org/viewvc/gump/live/python/gump/core/build/msbuild.py?p2=gump/live/python/gump/core/build/msbuild.py&p1=gump/live/python/gump/core/build/nant.py&r1=1679367&r2=1679387&rev=1679387&view=diff ============================================================================== --- gump/live/python/gump/core/build/nant.py (original) +++ gump/live/python/gump/core/build/msbuild.py Thu May 14 14:46:25 2015 @@ -6,11 +6,11 @@ # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, +# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. @@ -26,38 +26,30 @@ from gump.util.work import CommandWorkIt from gump.core.model.state import REASON_BUILD_FAILED, REASON_BUILD_TIMEDOUT, \ REASON_PREBUILD_FAILED, STATE_FAILED, STATE_SUCCESS -def getNAntProperties(project): +def getMSBuildProperties(project): """ Get properties for a project """ - return collect_properties(project.getWorkspace().getProperties() + \ - project.getNAnt().getProperties()) - -def getNAntSysProperties(project): - """ Get sysproperties for a project """ - return collect_properties(project.getWorkspace().getSysProperties() + \ - project.getNAnt().getSysProperties()) - -def collect_properties(props): - """ collect named properties for a project """ properties = Parameters() + props = project.getWorkspace().getProperties() + \ + project.getMSBuild().getProperties() for prop in props: - properties.addPrefixedNamedParameter('-D:', prop.name, prop.value, '=') + properties.addPrefixedNamedParameter('/p:', prop.name, prop.value, '=') return properties -class NAntBuilder(RunSpecific): +class MSBuildBuilder(RunSpecific): """ - A NAnt builder (uses nant to build projects) + A MSBuild builder (uses MSBuild or Mono's xbuild to build projects) """ def __init__(self, run): """ - The NAnt Builder is a .NET Builder - """ + The MSBuild Builder is a .NET Builder + """ RunSpecific.__init__(self, run) def buildProject(self, project, _language, _stats): """ - Build a project using NAnt, based off the