build-process

Do you use Phing? [closed]

瘦欲@ 提交于 2019-11-29 05:22:14
问题 Does anyone use Phing to deploy PHP applications, and if so how do you use it? We currently have a hand-written "setup" script that we run whenever we deploy a new instance of our project. We just check out from SVN and run it. It sets some basic configuration variables, installs or reloads the database, and generates a v-host for the site instance. I have often thought that maybe we should be using Phing. I haven't used ant much, so I don't have a real sense of what Phing is supposed to do

'cmake rebuild_cache' for *just* a subdirectory?

寵の児 提交于 2019-11-29 04:23:51
I have an issue with the generation of makefiles stage of CMake being slow which is similar to this unanswered question: CMake is slow to generate makefiles My project is made up of a top level CMakeLists.txt file which uses add_subdirectory() to add various subprojects for individual library and executable components. For a given component, the CMakeLists.txt file contains something like: add_library(mylib SHARED sourceFile1.cpp sourceFile2.cpp ... ) I can build just the contents of that directory using: make mylib If I modify the CMakeLists.txt file in the sub-directory (which I've been

Maven 3 profile with extensions

霸气de小男生 提交于 2019-11-29 03:58:47
My question had been addressed in this thread , but the explanation is not clear. I have this build definition in one of my pom.xml files: <build> <finalName>${my.project}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.kuali.maven.wagons</groupId> <artifactId>maven-s3-wagon</artifactId> <version>1.1.19</version> </extension> </extensions> <resources> <resource>

PDB files for production app and the “Optimize code” flag

為{幸葍}努か 提交于 2019-11-29 03:23:35
When should I include PDB files for a production release? Should I use the Optimize code flag and how would that affect the information I get from an exception? If there is a noticeable performance benefit I would want to use the optimizations but if not I'd rather have accurate debugging info. What is typically done for a production app? When you want to see source filenames and line numbers in your stacktraces, generate PDBs using the pdb-only option. Optimization is separate from PDB generation, i.e. you can optimize and generate PDBs without a performance hit. From the C# Language

How to build and run c++ programs in Sublime Text 2, Windows 8?

≡放荡痞女 提交于 2019-11-29 02:52:51
问题 I installed Codeblocks with mingw, chose default compiler, and could build and run a simple hello program without errors. I installed Sublime Text 2, copy pasted the same hello world program: // my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; } Upon building, I get the error message: [Error 2] The system cannot find the file specified [cmd: [u'bash', u'-c', u"g++ '' -o '/' && '/'"]] [dir: C:\Windows\system32] [path: C:\Windows

Buildprocess for ActiveX / COM / VB6 enterprise projects

淺唱寂寞╮ 提交于 2019-11-29 02:31:10
We have developed a software system using ActiveX/COM (VB6) technology from microsoft. In the last year, i get more and more interested in automated build processes and SCM at a whole. I intensively searched big parts of the web for information about best practices how to do scm with COM based software systems. The "problem" with COM is, that a referencing component holds the reference by an unique interface id. When you recompile the referenced component, the id may change and the reference isn't valid any more. The main problem here is, that the iid is compiled into the binary. So when i don

How do I add an Implementation-Version value to a jar manifest using Maven?

雨燕双飞 提交于 2019-11-29 01:49:57
问题 I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number. I can't for the life of me work out how to do this using the jar plugin. Is this possible? 回答1: You would use the Maven Archiver: <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration>

In Team foundation server what is build agent and controller?

我们两清 提交于 2019-11-29 01:47:16
问题 I am unable to grasp the concept of build server in Team foundation. Can anybody explain ? Also what is the build agent and controller in the foundation server ? 回答1: In TFS, the build system consists of two main constructs: the Build controller and the Build agents . The Controller's job is to queue build requests and send them to the "most available" build agent. The Agent's job is to perform the actual build. This setup allows you to easy grow into a "Build Farm", which the controller is

Including resource file in a project by .RC file rather than .RES file

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 01:25:59
I remember reading an article or post somewhere years ago that suggested including a resource file in a project by referencing the .rc file instead of an already compiled .res file so that the resource is built as part of the project's build process. I have a glyphs.rc file that I currently compile using the command brcc32 glyphs.rc. In my project file I then have the statement {$R Glyphs.res}. I'd like to simplify this by changing it to something like {$R Glyphs.rc} but am unsure of the syntax. When I try using {$R Glyphs.rc} I get an error ` [DCC Error] E2161 Error: RLINK32: Unsupported

VS2008 - Outputting a different file name for Debug/Release configurations

馋奶兔 提交于 2019-11-29 01:08:05
When building a C# application with Visual Studio 2008, is it possible to set a different output filename per configuration? e.g. MyApp_Debug.exe MyApp_Release.exe I tried a post-build step to rename the file by appending the current configuration, but that seems a scrappy approach. Plus it meant that Visual Studio could no longer find the file when pressing F5 to start debugging. You can achieve this by editing your project file by hand. Locate the <AssemblyName> node and add a conditional attribute to it: <AssemblyName Condition="'$(Configuration)'=='Debug'">MyApp_Debug.exe</AssemblyName>