build-process

Package and run a Java application with spring dependencies

让人想犯罪 __ 提交于 2019-12-10 14:43:13
问题 I built a stand-alone Java application that has a bunch of dependencies (Apache Commons libs, etc) as well as a dependency on the Spring framework, which in turn has a bunch of dependencies. I built this in Eclipse, where it runs fine. Now I need to deploy it to production and so I'm trying to figure out the best way to package it with all dependencies and also how to even invoke the thing (it will be invoked from the command line). The brute-force way would be to export my project as a jar,

Maven: include folder in resource folder in the war build

醉酒当歌 提交于 2019-12-10 14:25:12
问题 I've a folder named extra-jars in the src/main/rescource, but how can I include these in the build? I want them to be put in the lib folder with the rest of the jars. I tried including them through , but that didnt work. 回答1: For jars that are not distributed by a Maven repository, the simplest way is place the extra jars in the src/main/webapp/WEB-INF/lib directory of your project. Maven will by convention, include everything under the src/main/webapp in the final war artifact. An additional

How to configure lazy or incremental build in general with Ant?

天大地大妈咪最大 提交于 2019-12-10 13:35:05
问题 Java compiler provides incremental build, so javac ant task as well. But most other processes don't. Considering build processes, they transform some set of files (source) into another set of files (target). I can distinct two cases here: Transformator cannot take a subset of source files, only the whole set. Here we can only make lazy build - if no files from source was modified - we skip processing. Transformator can take a subset of sources files and produce a partial result - incremental

Subversion - Is it possible to disable all commits and make the repository read only?

假装没事ソ 提交于 2019-12-10 13:16:52
问题 I have a subversion repository that is a mirror of another remote repository. I use svnsync to mirror the repository every week. The mirrored repository (local copy) is only there for backup. I would like to keep the mirrored repository as READ-ONLY, i.e. nobody should be able to commit any changes to this repository but they can use it for reading source files as it is faster than the remote repository. I had a look around on Google and it seems that a Hook is probably the best option. The

How to remove build products

本秂侑毒 提交于 2019-12-10 12:56:43
问题 Is it possible to automatically remove build products that are generated by a setup.py script based on setuptools ? I've just started with a new Python project and it's the first time I'm using setuptools as a developer, so I may be getting something wrong. when I build the project using python setup.py bdist , three directories, build , dist and one ending in .egg-info are created. When I then run python setup.py clean it doesn't seem to be doing anything and just prints this: running clean

MSBuild Defintion - Suppress Warning Messages for Specific Solutions

女生的网名这么多〃 提交于 2019-12-10 12:04:40
问题 Within the MSBuild Build Definitions, I'm trying to suppress all warning messages output for specific C# and vb.net solutions. I want the warnings to return 0 for a particular solution. I've been reading that you can fix this using NoWarn within MSBuild Arguments but i can't find the syntax for an entire solution $/Etc/Etc1/Etc2/Etc3/Etc4/Solution.sln - 0 error(s), 500 warning(s) MSBuild Arguments: /p:NoWarn"Solution.sln" **There are multiple solutions within the Build but I only want to

Gradle Multiproject Build: How to include JAR of a WAR project into another WAR without creating pseudo projects

♀尐吖头ヾ 提交于 2019-12-10 11:38:15
问题 I have two web apps A and B . B uses parts of code from A . If I declare A as a dependency for B the A.war is included WEB-INF/lib of B.war This kind of include is meaningless to the container. The only solution I see is to change A to a Java project (JAR) and create a dummy web project (WAR) called A_WEB . Then declare A as dependency for A_WEB and B However this will require me to meddle with the project structure. A big reason for choosing gradle was that it promised not to make the

Referencing private .net assemblies in a subfolder

落花浮王杯 提交于 2019-12-10 10:49:24
问题 In Visual Studio 2008 I can add a project reference and set Copy Local property to true. As result the referenced assembly will be copied to the same folder the main assembly is build to. But what if I want to have all referenced assemblies in a subfolder near the main assembly? Something like this: .. myApp.exe Libs myLib1.dll myLib2.dll Data myDatabase.sqlite PS: This is the smart device application build against .NET Compact Framework 3.5 回答1: For other versions of the framework, this is

Can you configure TeamCity “Artifacts” to be checked back into source control?

左心房为你撑大大i 提交于 2019-12-10 10:28:05
问题 I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving this with TeamCity? 回答1: The two ways I can think of are VCS Labeling specify a path in your working directory to label and the location relative to the trunk

How do you recursively call tasks in MSBuild?

不羁岁月 提交于 2019-12-10 09:46:57
问题 E.g. I want to call these scripts passing diff params each time: <ItemGroup> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\Tables\*.sql" /> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\Functions\*.sql" /> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\Views\*.sql" /> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\ForeignKeys\*.sql" /> <SqlFiles