build-process

ant regex for android package names

删除回忆录丶 提交于 2019-12-10 09:25:22
问题 in my android project all of my .java view files import the R file based on the name of the current package. When I change the name of my package name in the Android Manifest (dynamically, not refactoring via Eclipse or any other IDE), I need to the references of all my java files to point to the new R file that gets generated I am making a build script via Ant, but I am not sure what the regular expression convention would look like The strings that need to be replaced look like this: import

C++ Build Process

北城以北 提交于 2019-12-10 08:42:48
问题 I am currently working on an opensource C++ project. I don't have much experience in C++ as my daily job mainly involves with Java. I am now planning to release my C++ project and I would like to know how should I should I arrange the packaging of my project. E.g, in Java, all the class files are packaged into jar file. So what is the equivalent approach in C++? Is there any good practise for organizing the source code/binary? My target platform is Linux by the way. Another question is I am

Gradle: War Task has Conflicting Includes/Excludes

江枫思渺然 提交于 2019-12-10 04:13:19
问题 I am trying to build a war file with Gradle, but I'm having an issue excluding one directory and including another that happen to have the same names, but different parent directories. Please notice in the first code example below that neither of the css/ directories are being included in the final war file -- I assume because Gradle thinks that I want to exclude any directory named css/ regardless of its absolute path. Basically I want to exclude src/main/webapp/css and include build/tmp/css

Multiple Output paths for a C# Project file

大憨熊 提交于 2019-12-10 01:23:44
问题 Can I use multiple output paths. like when i build my project, the exe should generate in two different paths. If so, How can I specify in Project Properties-> Build -> output path? I tried using , and ; but neither of those work. 回答1: You have a section build events in your project's properties. You can use post-build events to copy your output to different locations. Just press 'Edit Post-build' and 'Macros', so that you can even use shortcuts to your output directory. For more informations

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-10 00:58:48
问题 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? 回答1: 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

Can Xcode include application resource files that are generated during the build process?

落花浮王杯 提交于 2019-12-09 23:22:21
问题 I have a bunch of content files for my iPhone app that I generate via shell script. It takes way too long to be a part of the Xcode build process, so I run it periodically. I don't want to have to continually add these files to my Xcode project in order to get them included my app resources folder. Is there a way to get Xcode to copy the contents of a folder into the app resources at build time? (It'd be a bonus if I could specify other locations, such as the approot documents folder.) I

How to encrypt bundled text/json files?

倾然丶 夕夏残阳落幕 提交于 2019-12-09 19:33:01
问题 I have a couple of files bundled with my iOS app. Now - if someone would download the app, and access the .ipa file, he could easily read them. I would like to make it harder. Do you know of any resources dealing with the subject? I guess I need an encryption library, and some scripts in my build script encoding the file... Of course I know that someone may decompile my sources and break the code, but I just want it to be harder. 回答1: As @Alex point out since the key will be in the source

Testing and Managing database versions against code versions

此生再无相见时 提交于 2019-12-09 16:40:49
问题 As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse. My question is what are the tips and tricks to keep the database in step with the code? What about when you roll back the code? Branching? 回答1: Version numbers embedded in the

Team Build, SGen & Mixed mode assembly

家住魔仙堡 提交于 2019-12-09 15:18:28
问题 Bit of a strange one here guys. We have a fairly complex (111 projects spread across asp.net, silverlight, WFC, Ria Services etc) solution, which builds correctly on my dev box (2010). If I fire up VS on our build machine, I can also build the solution correctly. However, when I queue a build, it almost makes it through, until it attempts to run SGen - at which point I get the old "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime

Perfect makefile

十年热恋 提交于 2019-12-09 12:56:01
问题 I'd like to use make to get a modular build in combination with continuous integration, automatic unit testing and multi-platform builds . Similar setups are common in Java and .NET, but I'm having a hard time putting this together for make and C/C++. How can it be achieved? My requirements: fast build; non-recursive make (Stack Overflow question What is your experience with non-recursive make? ) modular system (that is, minimal dependencies, makefile in subdirectory with components)