build-automation

Java: How do I build standalone distributions of Maven-based projects?

馋奶兔 提交于 2019-12-01 00:32:11
问题 I often encounter distributions of Java applications or libraries which use Maven as their build tool. Some of them, sadly, don't provide standalone (or redistributable) jars. Is it possible to build Maven-based applications in such a way, that the build result contains all dependencies and can be redistributed to work out-of-the box? I tried to build Jackrabbit's OCM module. For some very "intelligent" reasons there is no downloadable standalone version. So I built Jackrabbit with Maven (the

How to use master pom file to checkout all modules of a web application and build all modules

会有一股神秘感。 提交于 2019-11-30 22:18:11
I have a web application that relies on several modules. So to build it, I have a master pom.xml file. What I want this pom file to do is to checkout out all the modules. below is my pom file. <executions> <execution> <id>check-out-project1</id> <phase>generate-sources</phase> <goals> <goal>checkout</goal> </goals> <configuration> <checkoutDirectory>${project.build.directory}/module1</checkoutDirectory> <connectionUrl>scm:svn:svn://svnserver/svn/module1/trunk</connectionUrl> <!--<developerConnection>scm:svn:svn://svnserver/svn/module1/trunk</developerConnection>!--> <username>username<

UWP with Desktop Bridge package build automation with MSbuild

老子叫甜甜 提交于 2019-11-30 21:06:28
Does anyone know how to automate UWP with Desktop Bridge (Desktop Extension) package build (.appxupload/.appxbundle) by using MSbuild tool? I've got the setup like on the following blog . For the simple UWP app (without Desktop Extension) I’m able to this with the following command: msbuild UWP.sln /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms=”x86|x64|ARM”;UapAppxPackageBuildMode=StoreUpload However, when I try it on Package.wapproj I’ve got a bunch of errors. For instance, although Package project has a certificate, UWP project also demands one (why?), when I workaround that

What algorithm does buildbot use to assign builders to slaves?

随声附和 提交于 2019-11-30 20:30:41
I have a buildbot with some builders and two slave machines. Some of the builders can run on one slave, and some of them can run on both machines. What algorithm will buildbot use to schedule the builds? Will it notice that some builders can run on just one slave and that it should assign those that can run on both slaves to the less demanded one? (I know buildbot can be used to run the same build on multiple architectures, say Windows, Linux, etc. We are using it to distribute builds for performance, because a single build is enough for us). First it gets a list of all the slaves attached to

Install Oracle Client from command line without user-interaction

梦想的初衷 提交于 2019-11-30 18:04:13
问题 I am looking for a way to install Oracle client on Windows but running from command line. In order to run it automatically there shall be no user-interaction . The Oracle documentation is quite sparse for command line options of Oracle Universal Installer. Even when running the setup as setup.exe -silent -responseFile filename.rsp the user has to press ENTER at certain point. 回答1: After some investigations I found out how to get the full command line options: setup.exe -help This works for

How do I share a label value between multiple CruiseControl.NET builds?

心不动则不痛 提交于 2019-11-30 15:35:55
I have two projects set up in CruiseControl.NET: CI build and nightly build. Both of them execute the same NAnt script, but with different parameters. The CruiseControl.NET label (currently generated by the DefaultLabeler ) is embedded into AssemblyInfo as the build part of the version (for example, MajorVersion.MinorVersion.CCNET_Label.SVN_Revision ). For more consistent versioning I would like both projects to share the same CruiseControl.NET label value. I have investigated the labelers that are available as part of the CruiseControl.NET installation, but I could not find one that does what

Command line manipulation of PhotoShop images

╄→гoц情女王★ 提交于 2019-11-30 14:52:09
Are there any tools for editing PhotoShop files from a command line? I would like to add steps to our automated build process (MS Build) that takes original PhotoShop files that our artists make and produce .png files; I'm looking at a very few operations like photoshop-to-png, resize and possibly showing/hiding layers. I haven't had a lot of luck finding a tool I can use for this. If it is possible to script this with Photoshop itself, or a Photoshop utility, that'd be awesome. You've got a few options in your case: Using variables/datasets in Photoshop As b3bop, using JavaScript(jsx).

How to get Cobertura to fail M2 build for low code coverage

£可爱£侵袭症+ 提交于 2019-11-30 13:13:31
I'm trying to configure my WAR project build to fail if the line or branch coverage is below given thresholds. I've been using the configuration provided on page 455 of the excellent book Java Power Tools , but with no success. Here's the relevant snippet of my project's Maven 2 POM: <build> ... <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.2</version> <configuration> <check> <!-- Per-class thresholds --> <lineRate>80</lineRate> <branchRate>80</branchRate> <!-- Project-wide thresholds --> <totalLineRate>90</totalLineRate>

Command line compiling an iPhone Application

我怕爱的太早我们不能终老 提交于 2019-11-30 11:47:33
I would like to find a way to compile and package our iPhone application as part of our automated nightly build. At present we always have to manually kick off a build on a shared Mac that has the adhoc certificates installed on the box and then post the resulting test binaries some place where testers can pull them down and install them. Has anyone found an approach to automation that works for them? There's a command line tool to build Xcode projects: xcodebuild Try using xcodebuild, it'll build an Xcode project from the command line. You can then pull the binaries out of the build directory

Is there an automatic code formatter for C#? [closed]

感情迁移 提交于 2019-11-30 10:24:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . In my work I deal mostly with C# code nowadays, with a sprinkle of java from time to time. What I absolutely love about Eclipse (and I know people using it daily love it even more) is a sophisticated code formatter, able to mould code into any coding standard one might imagine. Is there such a tool for C#?