build-process

Version Numbers in a project with Qt

 ̄綄美尐妖づ 提交于 2019-11-30 03:50:31
问题 Version numbers are needed all over a project; in installers, code, toolchains etc. I despise duplication. I want my version numbers to be stored in one central authoritative location. I am working with C/C++ and using Qt on various platforms. In Qt, qmake projects specify version numbers like: VERSION = 1.2.3 In code I use something like in a header like Version.h: #define VERSION_MAJ 1 #define VERSION_MIN 2 #define VERSION_REV 3 #define VERSION_STRING \"VERSION_MAJ\" "." \"VERSION_MIN\" "."

How to read property value from external file?

流过昼夜 提交于 2019-11-30 03:20:24
问题 I have AssemblyInfo.cs file automatically generated during build. Here's part of .csproj file: <PropertyGroup> <Major>2</Major> <Minor>3</Minor> <Build>0</Build> <Revision>0</Revision> </PropertyGroup> <Target Name="BeforeBuild"> <SvnVersion LocalPath="$(MSBuildProjectDirectory)" ToolPath="C:\Program Files\VisualSVN Server\bin"> <Output TaskParameter="Revision" PropertyName="Revision" /> </SvnVersion> <AssemblyInfo CodeLanguage="CS" OutputFile="$(MSBuildProjectDirectory)\Properties

Use ANT to update build number and inject into source code

末鹿安然 提交于 2019-11-30 02:57:49
问题 In my build.xml file I am incrementing a build version number in a property file like so: <target name="minor"> <propertyfile file="build_info.properties"> <entry key="build.minor.number" type="int" operation="+" value="1" pattern="00" /> <entry key="build.revision.number" type="int" value="0" pattern="00" /> </propertyfile> </target> I also have similar entries for the major and revision. (from Build numbers: major.minor.revision) This works great. Now I would like to take this incremented

Using Post-Build Event To Execute Unit Tests With MS Test in .NET 2.0+

天涯浪子 提交于 2019-11-30 02:40:20
问题 I'm trying to setup a post-build event in .NET 3.5 that will run a suite of unit tests w/ MS test. I found this post that shows how to call a bat file using MbUnit but I'm wanting to see if anyone has done this type of thing w/ MS Test? If so, I would be interested in a sample of what the bat file would look like 回答1: We were using NUnit in the same style and decided to move to MSTest. When doing so, we just added the following to our Post-Build event of the applicable MSTest project: CD $

Advantages of using MSBuild or NAnt versus running DevEnv.exe from command-line

余生长醉 提交于 2019-11-30 01:47:56
Can anyone explain what advantages there are to using a tool like MSBuild (or NAnt) to build a collection of projects versus running DevEnv.exe from the command-line? A colleague I had worked with in the past had explained that (at least with older versions of Visual Studio) using DevEnv.exe was much slower than the other techniques, but I haven't read any evidence of that or if that is now a moot point now that starting with 2005, Visual Studio uses MSBuild under the hood. I know one advantage of using MSBuild allows you to build your projects without requiring Visual Studio to be installed

Define Maven plugins in parent pom, but only invoke plugins in child projects

久未见 提交于 2019-11-30 01:29:07
I have a set of projects which all need to run the same series of Maven plugin executions during their builds. I'd like to avoid re-declaring all of this configuration in every project, so I made them all inherit from a parent pom "template" project which only contains those plugin executions (8 different mojos). But I want those plugin executions to only run on the child projects and not on the parent project during Maven builds. I've tried to accomplish this four different ways, each with a side-effect I don't like. Declare the plugin executions in the parent pom's build/plugins element and

“ERROR MSB4040 There is no target in the project” when using msbuild+Delphi2009

孤街浪徒 提交于 2019-11-30 01:18:02
问题 I'm trying to automate the build of a project in Delphi 2009. I'm using msbuild with .net 3.5 I simply call: Z:\Server>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild "BestSellerAppServer.g roupproj" /target:Build And get this: Build started 27/08/2009 01:15:45 p.m.. Project "Z:\Server\BestSellerAppServer.groupproj" on node 0 (Build target(s)). Project "Z:\Server\BestSellerAppServer.groupproj" (1) is building "Z:\Server\Be stSellerAppServer.dproj" (2) on node 0 (default targets). Z:\Server

Portable C++ build system [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-29 22:58:44
I'm looking for a good and easy in maintenance portable build system for C++ projects. Main platforms should include Windows (Visual Studio 8+) and Linux (gcc); Cygwin may be an advantage. We're considering two main possibilities: CMake and Boost.Jam . SCons can be also an option, but I haven't investigated it yet. CMake and Boost.Jam seem to have the following traits: CMake: (+) generates native "makefile" (solution for Windows, project for Eclipse) (+) extensions for testing and packaging (-) demands a configuration file in every project folder (-) based on a little too verbose peculiar

In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?

a 夏天 提交于 2019-11-29 22:57:45
I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory I then run my application and all works well. However, I keep having these warnings: Snapshot from Problems tab in Eclipse http://www.freeimagehosting.net/uploads/128c1af93f.png Anyone know how to get rid of these warnings? Maybe by excluding some files, maybe based on the .svn extension or filename, from the build process? If so, how would I go about excluding those? Have you tried to add **/.svn/ to the

In Visual Studio, what does the “Clean” command do?

给你一囗甜甜゛ 提交于 2019-11-29 22:46:17
You know, the one that outputs this=> ------ Clean started: Project: Foo.Bar, Configuration: Debug Any CPU ------ ========== Clean: 1 succeeded, 0 failed, 0 skipped ========== What it is cleaning? The output directories - it removes the code that it's previously built. It doesn't remove the bin/obj directories themselves (or the Debug/Release directories beneath them), just the actual .exe, .dll, etc files. Unfortunately this makes it less useful for my usual use of cleaning up output directories: when I want to zip up the source code. As the Clean action doesn't do this, I usually just delete