build-automation

Maven2 & Swing projects: Build & run swing application

六月ゝ 毕业季﹏ 提交于 2019-12-02 23:40:35
I tried to find info on how to use maven to build and run a swing application but couldn't find anything useful (maven documentation is a mess). Can someone point me to relevant documentation? Is anyone using maven in swing development ? I'm guessing that you want to run your app from a maven command. You can use the exec plugin like this: <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1-beta-1</version> <executions> <execution> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>com

What tools do you use for Automated Builds / Automated Deployments? Why? [closed]

风流意气都作罢 提交于 2019-12-02 22:25:18
What tools do you use for Automated Builds / Automated Deployments? Why? What tools do you recommend? schwerwolf Hudson for automated builds. I chose it because it was the easiest to setup and demo. A system that's too complex and isn't slick-looking won't impress management enough to get them on-board for automated builds. Especially in a project that has a lot of inertia. NAnt for builds (but MSBuild, Rake, almost anything would be fine) and CruiseControl.NET for deployments. I'm currently working with the new Cruise from ThoughtWorks studios as it provides a better way to stage the various

CMake: specifying build toolchain

北城余情 提交于 2019-12-02 22:14:10
Very new to CMake, and so far I'm finding it to be extremely helpful. I have a set of custom libraries that I would like to build for multiple platforms using cross-compilation. The toolchains are installed, and I can hand-create the Makefile s that I need to do so, but I would like to be able to make use of CMake. Is there a way to tell cmake which toolchain to use, either at the command line or in the CMakeLists.txt file? Jack Kelly Have a look here : basically, you define a "toolchain file" that sets things like the system name, paths to compilers and so on. You then call cmake like so:

WiX undefined preprocessor variable

孤人 提交于 2019-12-02 21:39:15
I'm starting to use WiX in order to do automated builds to create msi's of my c# projects and am experiencing the error "Undefined preprocessor variable '$(var.MyProject.TargetDir)'" I am using the latest WiX v3.0.5419. Inside my wxs file I am trying to use pre-processor variables that are listed on this webpage ( http://blogs.msdn.com/jrock/archive/2008/01/29/complete-list-of-candle-preprocessor-variables.aspx ) <Component Id="MyId" Guid="MyGuid"> <File Id="MyId" Name="MyName" KeyPath="yes" Source="$(var.MyProject.TargetDir)\MyName.dll" /> </Component> I have added the reference for MyProject

Name of Provisioning Profile used to sign an iPhone app?

本小妞迷上赌 提交于 2019-12-02 21:26:21
I wrote a script that uses xcodebuild to generate an AdHoc build of an iPhone application. I would like to edit this script to output the name of the Provisioning Profile used to sign the build. This would allow me to include the Provisioning Profile in the zip that is automatically generated. This way, I could automatically send the archive to the AdHoc testers and be sure that they have the right Provisioning Profile to install the app. Is there any way to extract the Provisioning Profile name or file used to sign the application : from the builded and signed application from the Xcode

How to synchronize SVN revision and version ressources of EXE/DLL files?

点点圈 提交于 2019-12-02 20:46:09
Say I have some C++ project which builds an exe or dll file. The project is checked into a SVN repository. I want to automatically synchronize the revision from SVN with the version resource embedded in my exe/dll file, i.e. the version should be something like $major.$minor.$svn_revision . Any ideas on how to achieve this? Are there any out-of-the-box solutions available? If you have TortoiseSVN installed, then there is a program installed with it, SubWCRev . If, in your file, you have this value: $WCREV$ Then it'll be replaced with the highest committed revision number if you execute

Automate custom war files using maven

我怕爱的太早我们不能终老 提交于 2019-12-02 20:24:28
问题 I know about maven war overlays, but they assume that the original war file is a maven project. What if I only have access to the packaged war file and I need to modify it by adding new resources or updating few values in properties file using maven and push the new overplayed packaged war file to tomcat on a server? Is it too complex to do this in maven? If I install the war file in my repository does the maven build process automatically use it? 回答1: It doesn't assume that the WAR is a

Is there a way to separate long running (e.g. stress tests) out so they're not run by default in Maven 2?

血红的双手。 提交于 2019-12-02 19:43:31
We've had an ongoing need here that I can't figure out how to address using the stock Maven 2 tools and documentation. Some of our developers have some very long running JUnit tests (usually stress tests) that under no circumstances should be run as a regular part of the build process / nightly build. Of course we can use the surefire plugin's exclusion mechanism and just punt them from the build, but ideally we'd love something that would allow the developer to run them at will through Maven 2. Normally you would add a profile to your maven configuration that runs a different set of tests:

Are there any good build frameworks written in Python?

偶尔善良 提交于 2019-12-02 19:28:12
I switched from NAnt to using Python to write build automation scripts. I am curious if whether any build frameworks worth using that are similar to Make, Ant, and NAnt, but, instead, are Python-based. For example, Ruby has Rake. What about Python? Try SCons Or are you looking for something just to build python projects? The following look good, but I haven't used them (yet): Paver waf doIt Paver looks especially promising. My Rapid Throughts: SCons is quite mature and oriented also to other languages (es C++) Waf is very simlar to ant/maven, so you will prefer it if you are used to ant/maven

How to make System command calls in Java/Groovy?

北战南征 提交于 2019-12-02 18:56:46
What I want to do is invoke maven from a groovy script. The groovy script in question is used as a maven wrapper to build J2EE projects by downloading a tag and invoking maven on what was downloaded. How should I accomplish invoking maven to build/package the EAR (the groovy script is already capable of downloading the tag from SCM). The simplest way to invoke an external process in Groovy is to use the execute() command on a string. For example, to execute maven from a groovy script run this: "cmd /c mvn".execute() If you want to capture the output of the command and maybe print it out, you