build-process

The dreaded java.lang.NoClassDefFoundError

坚强是说给别人听的谎言 提交于 2019-11-27 06:16:55
问题 I've looked through many of the existing threads about this error, but still no luck. I'm not even trying to package a jar or use any third-party packaging tools. I'm simply running from within Eclipse (works great) and then trying to run the exact same app from the command line, in the same location it's built to (getting this error). My goal is to be able to zip up the bin folder and send it off to be run by someone else via a command line script. Some details: It's a command-line app and I

Can a program depend on a library during compilation but not runtime?

核能气质少年 提交于 2019-11-27 06:03:32
I understand the difference between runtime and compile-time and how to differentiate between the two, but I just don't see the need to make a distinction between compile-time and runtime dependencies . What I'm choking on is this: how can a program not depend on something at runtime that it depended on during compilation? If my Java app uses log4j, then it needs the log4j.jar file in order to compile (my code integrating with and invoking member methods from inside log4j) as well as runtime (my code has absolutely no control over what happens once code inside log4j.jar is ran). I'm reading up

Maven: how to do parallel builds?

假装没事ソ 提交于 2019-11-27 06:01:58
When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever? Maven 3 (as of beta 1) now supports parallel builds as an experimental feature. For example, mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install # 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu core Full documentation can be found on the Maven wiki. https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 Some of the CI build

How can I combine and compress multiple script and css files for production use?

我只是一个虾纸丫 提交于 2019-11-27 05:57:39
问题 I want to use YUI Compressor to combine and compress my css and js file sets when I compile my project. YUI Compressor only takes as input single files. I've tried using the following (Windows) commands to append to the output files, but strange characters appear in the output where appendage occurs. How can I use windows command line or powershell to achieve this? java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery-1.3.2.js > scripts-all.min.js java -jar yuicompressor-2.4.2.jar -

Perl build, unit testing, code coverage: A complete working example

爱⌒轻易说出口 提交于 2019-11-27 05:48:25
Most Stackoverflow answers that I have found in regards to the Perl build process and unit testing and code coverage simply point me to CPAN for the documentation there. There's absolutely nothing wrong with pointing to CPAN modules because that's where the full documentation is supposed to reside. I've had trouble finding complete working code examples in many cases, though. I've been searching all over the Internet for actual working code samples that I can download or paste into my IDE, like your typical tutorial "Hello World" example source code, but of an example that demonstrates the

Gradle zipAlign task not working?

烈酒焚心 提交于 2019-11-27 05:47:06
问题 It appears the Gradle zipAlign task isn't working for me, not sure what I'm doing wrong. I've tried including the zipAlign task, and not including it, but it doesn't seem to make a difference. My gradle scripts spit out a "release" build, but it's never zipAligned according to the developer console when I try to upload my .apk. Here's my build script: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android'

Does a gulp task have to return anything?

自闭症网瘾萝莉.ら 提交于 2019-11-27 05:35:24
问题 In online examples showing usage of gulp, some tasks return the stream and others don't. For example, without a return: gulp.task('tsc', function() { gulp.src('**/*.ts') // ... }); And the same code, with a return: gulp.task('tsc', function() { return gulp.src('**/*.ts') // ... }); Is it necessary to return the stream? 回答1: If you do not return a stream, then the asynchronous result of each task will not be awaited by its caller, nor any dependent tasks. For example, when not returning

Is there a way to specify assembly references based on build configuration in Visual Studio?

感情迁移 提交于 2019-11-27 05:14:09
问题 I have a project that adds some extensibility to another application through their API. However, I want to be able to use the same project for multiple versions of their application, because most of the code is the same. However, each version of the application requires a reference to the proper assembly for that version of the software. They load their assemblies into the GAC, so even if I could specify the version of the assembly to use based on build configuration I would be fine. Is there

Best .NET build tool [duplicate]

百般思念 提交于 2019-11-27 05:00:32
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the best build tool for .NET? I currently use NAnt but only because I have experience with Ant. Is MSBuild preferred? 回答1: We actually use a combination of NAnt and MSBuild with CruiseControl. NAnt is used for script flow control and calls MSBuild to compile projects. After the physical build is triggered, NAnt is used to publish the individual project build

What is the point of a “Build Server”? [closed]

人盡茶涼 提交于 2019-11-27 04:59:34
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I haven't worked for very large organizations and I've never worked for a company that had a "Build Server". What is their purpose? Why aren't the developers building the project on their local machines, or are they? Are some projects so large that more powerful machines are