build-automation

How to use Ant?

最后都变了- 提交于 2019-12-05 08:59:48
I've been trying to understand what Ant is used for but i still don't get it. Can someone give me one use case for which Ant is used for, something I can try to see why Ant is useful and what kind of things I can use it for? I do Java development in Eclipse and I'm just getting started with servlets and Google Web Toolkit. Ant is a build tool. Say for example you have several projects in your Eclipse workspace, all of which are pieces of a larger application. To build it all into a jar file with dependencies included, you could select all the projects and export them as a jar file, but that's

Gradle 1.3: build.gradle not building classes

丶灬走出姿态 提交于 2019-12-05 08:27:12
a newb question here: I have a build.gradle file with apply plugin: java in it, and associated with a java project/package. when I run gradle build from the command line I get: :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :check UP-TO-DATE :build UP-TO-DATE BUILD SUCCESSFUL Total time: 4.312 secs but when I check the build folder, there are no classes. What am I doing wrong ? I have: lib, reports, test-results & tmp under the

Jenkins “run only if build succeeds” still runs for unsuccessful builds

拈花ヽ惹草 提交于 2019-12-05 08:25:50
I'am using Jenkins for continuous integration and I have some projects having upstream and downstream build connections. I have selected Run only if build succeeds in each project's configuration. However, the post-build step is still getting triggered for unstable builds. Jenkins version is 1.480.3 . I wonder if is there anyone having a similar experience. Thanks in advance This is an existing issue in Jenkins 1.480.3. It got resolved 1.509.1. The link of jira is as follows. https://issues.jenkins-ci.org/browse/JENKINS-14102 来源: https://stackoverflow.com/questions/16829715/jenkins-run-only-if

using different string files in android

て烟熏妆下的殇ゞ 提交于 2019-12-05 07:02:38
I'm porting my iPhone app to android and I'm having a problem with the string files now. The app is a translation tool and users can switch the languages, so all the localized strings are in both languages and they are independent from what locale the OS is running. For iOS version I have different files like de.strings, en.strings and fr.strings and so on. For every target with specified language pair I read the strings from the string tables, e.g. for de-fr I will include de.strings and fr.strings in project and set the name of the string tables in the info-list file and read strings from

Continuous Integration with Nant

亡梦爱人 提交于 2019-12-05 05:23:02
问题 I am preparing to use continuous integration for the first time. I will be using Nant for the automated build and testing tasks, and am trying to find the appropriate CI tool to poll the repository and execute the Nant script. I have so far loosely researched the following: Hudson Cruise Control Draco My sense so far is that since most of the work will be done by Nant, Draco would be fine because it is supposed to be easy to install/setup. Cruise Control and Hudson, on the other hand might

Running xunit.net tests in VSTS

孤人 提交于 2019-12-05 03:34:34
I have an issue running xunit.net tests in VSTS . When running the Build plan, the Test assemblies step produces the following log: 2017-03-21T12:11:39.3302859Z ##[section]Starting: Test Assemblies 2017-03-21T12:11:39.3382932Z ============================================================================== 2017-03-21T12:11:39.3382932Z Task : Visual Studio Test 2017-03-21T12:11:39.3382932Z Description : Run tests with Visual Studio test runner 2017-03-21T12:11:39.3382932Z Version : 1.0.84 2017-03-21T12:11:39.3382932Z Author : Microsoft Corporation 2017-03-21T12:11:39.3382932Z Help : More

Build Automation & MySQL Workbench Scripting: Forward Engineer SQL CREATE SCRIPT

倾然丶 夕夏残阳落幕 提交于 2019-12-05 02:55:53
I'm currently looking into automating a software build process that includes a database schema defined in MySQL Workbench. Using Workbench's scripting capabilities, I'd like to open a Workbench document and export its schema as an SQL CREATE script. What I'd like to know is if there is a function that exports the entire schema in one step as Workbench's File | Export | Forward Engineer SQL CREATE Script , automatically handling any dependencies between tables. I've found some candidates in the DbMySQL module that might do that ( generateSQL(GrtNamedObject, dict, string) and makeSQLExportScript

Automating builds from subversion tags

风流意气都作罢 提交于 2019-12-05 00:07:22
I'm trying to automate the build process for engineering group. As part of that automation, I'm trying to get to a point where the act of applying a specific tag that adheres to a pattern will kick off an automated process that will do the following: Check out source code Create a build script from a template Build the project I'm pretty certain I could do this with a post-hook in subversion, but I'm trying to figure out a way to do this with something other than a subversion hook. Would it make sense to monitor the tags directory in the subversion repository to kick off my workflow? Are there

Pre-Build events in Eclipse

柔情痞子 提交于 2019-12-04 23:53:05
I have a project that uses jaxb for some xml processing. How can I setup a pre-build event in eclipse to execute xjc before building my project? Goto Project->Properties->Builders. Create your own builder and enable it. And in the configuration of the builder enable "During auto builds" etc. as shown below: At the moment, eclipse doesn't support this. However, you can use a build tool like Ant, Maven or Gradle for getting the same result. There are functions in these tools which specifically allow you to execute a given task at any stage of the build. 来源: https://stackoverflow.com/questions

In a Visual Studio pre-build event how do I execute an exe in the context of its own folder instead of the bin folder?

南笙酒味 提交于 2019-12-04 23:13:28
I have a pre-build event defined like this: $(ProjectDir)PreBuild\runthis.exe When the runthis.exe executes, it runs in the context of the bin folder of my project instead of the PreBuild folder where it lives. How can I make the build event execute runthis.exe in the context of the PreBuild folder instead of the bin folder? Add cd $(ProjectDir)PreBuild first to switch to that folder. 来源: https://stackoverflow.com/questions/13767157/in-a-visual-studio-pre-build-event-how-do-i-execute-an-exe-in-the-context-of-its