Questions tagged [build-script]

204 questions
7
votes
2 answers

Use msbuild community tasks without installing

In our developer environment, no users have administration rights. As such, it's not possible to install MSBuild.CommunityTasks without getting admin to do so. What I'm wondering is similar to NAnt, i.e. is it possible to include the files in your…
mickyjtwin
  • 4,960
  • 13
  • 58
  • 77
7
votes
2 answers

How to define repositories for all subprojects in Gradle

I am writing Gradle scripts to build a lot of projects. They are using the same repositories so I would like to define repositories for all of my sub-projects instead of defining in each of them. So I try to move the repositories definition from…
user1695166
  • 621
  • 7
  • 9
6
votes
1 answer

How can I import a source file from my library into build.rs?

I have the following file structure: src/ lib.rs foo.rs build.rs I would like to import something from foo.rs (lib.rs has pub mod foo in it already) into build.rs. (I'm trying to import a type in order to generate some JSON schema at build…
Foobar
  • 7,458
  • 16
  • 81
  • 161
6
votes
3 answers

cargo rust build script - print output of command

I am new to rust and cargo, and I am trying to do something very simple! I have something like this (in build.rs): use std::process::Command; fn main() { Command::new("echo 123"); } And I want to see the output of the command echo 123. I want…
code_fodder
  • 15,263
  • 17
  • 90
  • 167
6
votes
1 answer

Why does generating a static HashMap with ~30K entries at compile time consume so many resources?

I'm trying to write a build.rs script that creates an up-to-date HashMap that maps the first 6 characters of a MAC address with its corresponding vendor. It has 29231 key-value pairs which causes cargo check to spend more than 7 minutes on my source…
6
votes
0 answers

Xcode 8 update build number for multiple target before building

I have an app with 3 targets: app target message app app extension I'm trying to update the build number for each build, this number must be equal for all the target or App Store will invalid the build. I've tried different approach, also this…
Andrea
  • 26,120
  • 10
  • 85
  • 131
6
votes
2 answers

MSBuild Target BeforeBuild not Executing

I seem to have a situation where code that I put into the BeforeBuild target is not successfully executing. Here is what I have: I can’t see the message output in the build…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
6
votes
1 answer

"ant clean" doesn't clean my project in a way I can use

After I run ant clean , my project still needs to be "cleaned" in Eclipse, before I can run ant release successfully. If I try to run ant release immediately after ant clean it will fail in the -compile component of the predefined build script on…
CQM
  • 42,592
  • 75
  • 224
  • 366
5
votes
3 answers

Build script with C#

For insight into the below, read: http://martinfowler.com/articles/rake.html I've been using Rake (with Albacore) recently, and like it alot. Mostly the strength of having the Ruby language right at hand when I need it. I must admit I am alot more…
user191152
5
votes
2 answers

OpenSSL build script fails when run as a 'run script' phase within Xcode (succeeds outside of Xcode)

I'm attempting to run a script to build OpenSSL for iOS (armv6, armv7 and i386) as a 'run script' phase in Xcode. The script builds successfully when run from the command line as a stand alone script. The result is a compiled libcrypto.a, libssl.a…
Jasarien
  • 58,279
  • 31
  • 157
  • 188
5
votes
2 answers

Can you use an ANT build file as a Phing build file?

I just started playing around with Phing build scripts (built with PHP). From what I have read is that Phing is based on Apache Ant (built with Java). Both use XML build files and have similar syntax, so I am asking someone with experience, if I…
JasonDavis
  • 48,204
  • 100
  • 318
  • 537
5
votes
1 answer

All buildscript {} blocks must appear before any plugins {} blocks in the script in Jitpack

I am trying to publish my android library with jitpack. But getting buildscript {} blocks must appear before any plugins {} blocks error. I have already referred to this question : Getting 'buildscript {} blocks must appear before any plugins {}…
SIDDHARTH SINGH
  • 138
  • 3
  • 8
5
votes
1 answer

Gradle creating duplicate start scripts into bin directory

I am trying to create multiple start script files through gradle. But somehow one particular start script file is getting duplicated. startScripts.enabled = false run.enabled = false def createScript(project, mainClass, name) { …
suraj_fale
  • 978
  • 2
  • 21
  • 53
5
votes
3 answers

Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin

I want a simple android hello world program in with maven.here is my pom.xml file
peter
  • 1,028
  • 9
  • 21
5
votes
2 answers

Internet Explorer, Closure Compiler and Trailing Commas

I'm using html5boilerplate build script and when minifying the scripts (which uses Google Closure Compiler) I'm getting this error -js.all.minify: [echo] Minifying scripts [copy] Copying 3 files to…
1
2
3
13 14