build-process

How to check if an assembly was built using Debug or Release configuration?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 17:46:39
I'm starting deployment of my web application and I need to guarantee that all the assemblies that are going to be deployed were built using Release configuration. Our system was developed using C#/.Net 3.5. Is there any way to achieve this? David Check this . The idea is that you get the list of assembly attributes using Assembly.GetCustomAttributes() and search for DebuggableAttribute and then find if such attribute has IsJITTrackingEnabled property set. public bool IsAssemblyDebugBuild(Assembly assembly) { return assembly.GetCustomAttributes(false).OfType<DebuggableAttribute>().Any(da => da

Maven and dependent modules

ぃ、小莉子 提交于 2019-11-28 17:44:53
Colleagues have been touting the wonders of maven and its magical dependency stuff but I'm finding that it fails at what I would consider the obvious use. Suppose I have a root folder with a master POM. Then underneath I have some projects, call them A and B B requires A and so the POM in the B folder has the appropriate dependency entry in it Now, back in the root folder, in a profile, I specify that I want to build B. When I perform the usual mvn clean install, I get a failure because A was not built. My friends tell me I have to specify both A and B in that main profile in the root. But isn

Visual Studio 2010, how to build projects in parallel on multicore

大城市里の小女人 提交于 2019-11-28 17:33:00
I have a big solution with more than 40 projects. Almost half of them are test projects. In my project we use both Code Contracts, Code Analysis, Style Analysis. I want to be able to build the projects that are not dependent in parallel on my quad core CPU. How can I setup msbuild to build the projects in parallel? In Visual Studio: Tools | Options | Projects and Solutions | Build and Run. This should default to your CPU count. From the command line: msbuild /maxcpucount[:n] (is n is not specified, then it will use the CPU count). You could launch the build in MSBuild in parallel by : Setting

How to call latexmk in emacs, and jump to next-error

夙愿已清 提交于 2019-11-28 17:29:23
问题 I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error , which is typically called with C-x `, and jumps to the next LaTeX error in the document. I would like to call latexmk either using C-x compile or the AUCTeX C-c C-c . First, I set latexmk to use $pdflatex = 'pdflatex -interaction=nonstopmode'; Option 1: C-x compile I press C-x compile and type latexmk -pdf foo , which runs pdflatex . But next-error will not jump to the

Any good building tools for a C++ project, which can replace make? [closed]

一笑奈何 提交于 2019-11-28 17:16:55
i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. It is simple to generate all the files that de Autotools require if the project is small, but if the source code is divided in many directories, with multiple third party libraries and many dependencies, you fall into the "Autotools Hell".. thanks for any recommendations The Google V8 JavaScript Engine is written in C++ and uses SCons , so I guess that's one vote for it. CMake ? (generates makefiles, so technically not a replacement

What is currently the best build system [closed]

坚强是说给别人听的谎言 提交于 2019-11-28 16:41:15
问题 A few years ago I looked into using some build system that isnt Make , and tools like CMake and SCons seemed pretty primitive. I'd like to find out if the situation has improved. So, under the following criteria, what is currently the best build tool: platform agnostic: should work on windows, linux, mac language agnostic: should have built-in support for common things like building C/C++ and other static langs. I guess it doesn't need to support the full autotools suite. extensible: I need

How to organize full build pipeline with Gulp, Maven and Jenkins, all the way to integration tests?

一个人想着一个人 提交于 2019-11-28 16:32:38
I have a project that has: JS client with somewhat interesting build process. That includes compiling CSS, catenating and minifying JS and CSS, generating and processing HTML, and some other steps. The Node tools like Grunt or Gulp are great at this. Java server that is a WAR deployed on Tomcat. It includes these assets as well as all the Java code. It has all kinds of tests: Unit tests, integration tests that may instantiate a DAO and talk to DB, and end-to-end API tests that actually talk to the app running on Tomcat. End-to-end tests with Protractor. If you're not familiar, it's another

Programming Definitions: What exactly is 'Building'.

非 Y 不嫁゛ 提交于 2019-11-28 15:59:46
What does it mean to build a solution/project/program? I want to make sure I have my definitions correct (so I don't sound like a idiot when conversing). In IDE's, you can (correct me if I'm wrong) compile source-code/programming-code into computer-readable machine code. You can debug a program, which is basically stepping through the program and looking for errors. But what exactly does building a program do? In VS I'm aware that when you build a program it produces an executable file in a debug folder. Any hard-core tech definitions of what it means to build a program? This does not

Maven Deploy To Multiple Tomcat Servers

独自空忆成欢 提交于 2019-11-28 15:24:37
问题 What is the most minimal example of deploying a war to multiple tomcat servers using maven that can be written? I've tried the following URLs and asked the mailing list, but not coming up with anything that was short and would simply work. http://www.nabble.com/Deploying-to-Multiple-Servers-at-Once-td21592419.html The example should have the servers defined in the example somewhere (with sample usernames/passwords) 回答1: The idea of Markus Lux can be also applied with a Maven2 solution, with

Skipping tests in some modules in Maven

爱⌒轻易说出口 提交于 2019-11-28 15:09:05
问题 I would like my Maven builds to run most unit tests. But there are unit tests in one project which are slower and I'd like to generally exclude them; and occasionally turn them on. Question : How do I do this? I know about -Dmaven.test.skip=true , but that turns off all unit tests. I also know about skipping integration tests, described here. But I do not have integration tests, just unit tests, and I don't have any explicit calls to the maven-surefire-plugin. (I am using Maven 2 with the