build-process

HintPath on a added reference in Visual Studio

浪子不回头ぞ 提交于 2019-11-28 05:46:20
I know that I can add a HintPath to an external DLLs to help Visual Studio/TFS find the dll when it builds. What I was wondering is... is it possible to add multiple HintPath ? For example... developers have their DLLs for one place and we do a GetLatest of those DLLs at a different place on the server hence the need for multiple HintPath . What do you think, world? Sorry, you can't use multiple HintPath's. Visual Studio/MSBuild takes only the last <HintPath> definition and will ignore any previous ones. Confirmed in VS2010 and VS2012. Maxime Rouiller This answer is no longer valid. As

Does a gulp task have to return anything?

試著忘記壹切 提交于 2019-11-28 05:43:15
In online examples showing usage of gulp, some tasks return the stream and others don't. For example, without a return: gulp.task('tsc', function() { gulp.src('**/*.ts') // ... }); And the same code, with a return: gulp.task('tsc', function() { return gulp.src('**/*.ts') // ... }); Is it necessary to return the stream? Drew Noakes If you do not return a stream, then the asynchronous result of each task will not be awaited by its caller, nor any dependent tasks. For example, when not returning streams: $ gulp scripts [21:25:05] Using gulpfile ~/my-project/gulpfile.js [21:25:05] Starting 'tsc'..

Execute Maven plugin goal on parent module, but not on children

走远了吗. 提交于 2019-11-28 04:49:48
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin to increment a build number and then check it into source control. If I define the plugin in the parent pom.xml it executes for all the child builds as well. Here's my parent pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.webwars</groupId> <artifactId>parent</artifactId> <packaging>pom<

How to run Eclipse launch configurations programmatically?

强颜欢笑 提交于 2019-11-28 04:39:40
I'm finding it difficult to phrase this question well, as there are quite a few generic terms (run, configuration, launch, etc.). Here goes: You can save run configurations in a .launch file . (in the Run Configuration Dialog, under the Common tab, Save as a shared file. We check these in to SVN. The developers can pass them around, and it helps getting new devs running a working application quicker. I'd like to check these out as part of our build and use them to programatically run the application, the tests, etc, without spinning up the whole IDE. What would be the best way to run a .launch

How to exclude a folder that is producing warnings/errors in an Eclipse project?

ⅰ亾dé卋堺 提交于 2019-11-28 04:37:25
Okay. I'm sick of this problem. This has to have an easy fix, I'm sure of it!! I hope SO can help me to get rid of this once and for all! Question How do we get Eclipse to stop trying to process/compile all files under a particular project directory? The goal is for no errors/warnings to exist in the problems view if they relate to something in this folder or it's subfolders. Background We run Eclipse 3.6 and the m2eclipse plugin v0.10.2.20100623 manages our autobuild. For reasons beyond my control, we have the entire BlazeDS distribution in our SVN project directory under src/main/resources

What is obj folder generated for? [duplicate]

和自甴很熟 提交于 2019-11-28 04:26:43
Possible Duplicate: What are the obj and bin folders (created by Visual Studio) used for? The default output path for any project is Visual studio is bin/Debug , but I have noticed that obj folder is also generated which again contains dll and pdb files. Can someone tell me why is this folder generated? "obj" folder is used to store temporary object files and other files used to create the final binary. Further reading here 来源: https://stackoverflow.com/questions/172279/what-is-obj-folder-generated-for

Can I add maven repositories in the command line?

荒凉一梦 提交于 2019-11-28 04:16:50
I'm aware I can add maven repositories for fetching dependencies in ~/.m2/settings.xml. But is it possible to add a repository using command line, something like: mvn install -Dmaven.repository=http://example.com/maven2 The reason I want to do this is because I'm using a continuous integration tool where I have full control over the command line options it uses to call maven, but managing the settings.xml for the user that runs the integration tool is a bit of a hassle. Rich Seller You can do this but you're probably better off doing it in the POM as others have said. On the command line you

How to run a command at compile time within Makefile generated by CMake?

折月煮酒 提交于 2019-11-28 04:08:15
I would like to pass some options to a compiler. The option would have to be calculated at compile time - everytime when 'make' is invoked, not when 'cmake', so execute_process command does not cut it. (does it?) For instance passing a date to a g++ compiler like that: g++ prog.cpp -o prog -DDATETIME="17:09:2009,14:25" But with DATETIME calculated at compile time. Any idea how to do it in CMake? Bounty edit: A least hackish solution will be accepted. Please note that I want to be able to exectue an arbitrary command at compile time, not only 'date'. Edit 2: It have to work on Linux, Windows

Is there a way to specify assembly references based on build configuration in Visual Studio?

久未见 提交于 2019-11-28 04:04:27
I have a project that adds some extensibility to another application through their API. However, I want to be able to use the same project for multiple versions of their application, because most of the code is the same. However, each version of the application requires a reference to the proper assembly for that version of the software. They load their assemblies into the GAC, so even if I could specify the version of the assembly to use based on build configuration I would be fine. Is there a way to do this from inside of VS or do I need an external build tool? There is a way to do this, but

Running multiple TeamCity Agents on the same computer?

自古美人都是妖i 提交于 2019-11-28 03:05:23
We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine. Is this possible, without using virtualization ? Are there quality alternatives to TeamCity that support this? CrazyCoder Yes, it's possible : Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can install additional one, providing the following conditions