Questions tagged [build-script]
204 questions
3
votes
1 answer
how to build different variants of android through gradle
I already have
2 flavours (staging, production)
2 buildTypes (debug, release)
beyond that, I want to have different variants for, say, different vendors.
like a production-release build for samsung and htc. is it possible through build…

Ankit
- 6,554
- 6
- 49
- 71
3
votes
1 answer
Gradle - How to run a JAR provided by buildscript
I would like to have a gradle script that executes a jar file. The problem that this jar file should be downloaded from maven central.
I checked that the class exists in the lib.
apply plugin: 'application'
buildscript {
repositories {
…

Marcel
- 4,054
- 5
- 36
- 50
3
votes
6 answers
How to make Gradle run tasks in certain order?
Let's say that I have created separate tasks for running integration and acceptance tests in my gradle build script. When I run the build task I want to run testing tasks before in this order: unit tests(test task), integration tests…

Rade Milovic
- 965
- 4
- 13
- 29
3
votes
1 answer
Is it possible to extend a gradle build script configured in a binary plugin?
I've created a Gradle plugin below:
class CommandServiceProjectPlugin implements Plugin {
public void apply(Project project) {
project.buildscript{
repositories {
maven: {
url:…

Roscoe Lotriet
- 101
- 1
- 8
3
votes
5 answers
Capturing MSBuild.exe output in a PowerShell script
I'm creating some new build scripts for a project using PowerShell, and would like to capture the output of MSBuild when I call it and save that to a text file. I've tried a couple different methods of doing so with no luck so far--here's what I…

DashRantic
- 1,448
- 4
- 19
- 32
3
votes
1 answer
Excluding references from Typescript compilation?
I have a bit of a strange (but in my view sensible) scenario.
I have a web site, mobile application and maybe going forward a web server all written in Javascript. I have a huge chunk of functionality which is shared between all these systems. This…

Grofit
- 17,693
- 24
- 96
- 176
3
votes
1 answer
How to use ant replaceregex task to replace a line with file path in windows?
In my build file i have an ant target in which i have following snippet ,
…

jay
- 791
- 8
- 20
2
votes
2 answers
Implementing single script build - non-portable dependencies
It seems that a build system best-practice is to have a single script that can build all source and package the releases. See Joel Test #2
How do you account for non-portable dependencies? For example, if you code for .net 4, then you need .net 4…

Suraj
- 35,905
- 47
- 139
- 250
2
votes
2 answers
How to create script to deploy asp.net application direct from clearcase?
I am trying to write a script to deploy asp.net application from Clear Case. I am using Clear Case Remote Client.
How will i start? what is the easiest way?

Amit
- 197
- 2
- 2
- 8
2
votes
0 answers
Custom buildscript for vscode extension
I am trying to build an extension for vscode for a specific file format.
Now I want to run a custom build script (a batch file that is placed inside the custom extension) that gets exectued when the user presses ctrl+shift+B
I successfully created…

tmp
- 21
- 2
2
votes
0 answers
How to manage external dependencies of a Gradle Plugin
Gradle Version: 1.12/2.0 (restricted due to Org policies)
JDK: 1.8
I have created a custom gradle plugin that performs some installation using code that has been defined in another sub-project of our source-code. The build.gradle for the plugin…

palkarrohan
- 459
- 1
- 4
- 16
2
votes
1 answer
Linking to a static library that requires a frameworks
I have a main project and a few smaller sub-projects. The smaller projects contain both a self contained Cocos2d app and a static library containing only the classes that are relevant to the main project (the sub-projects all use the Cocos2D…

Benedict Cohen
- 11,912
- 7
- 55
- 67
2
votes
2 answers
ftptask on nant 0.85
how do u upload files to a fpt server in nant?
i used the following code but it says that attribute server is unknown.

new coder
- 313
- 2
- 24
2
votes
0 answers
Using third-party libraries in gradle's buildscript section
To use a third-party library in a gradle script I have to declare the dependency in a special buildscript block.
But can I use a library in the buildscript block?
The case is the following (maybe I'm doing something wrong here).
I'm developing a…

Alexey Pomelov
- 196
- 1
- 9
2
votes
1 answer
Gradle multi-project build: how to specify different build files?
Gradle multi-project build: how to set different build files? e.g.
/foo/bar/build-hello.gradle
/foo/bar/build-world.gradle
settings.gradle
include 'hello'
project(':hello').projectDir = new File('/foo/bar')
project(':hello').buildFile = new…

eastwater
- 4,624
- 9
- 49
- 118