build-automation

How to build same project with multiple configuration C# VisualStudio2012

好久不见. 提交于 2019-12-02 13:40:05
问题 I have a solution with many projects. I Would like to build several projects with multiple configuration settings. e.g: ProjectA is set as target framework: 3.5 and platform target x86. output assembly name is: ProjectA.dll. I want, when clicking the build button, to build the project in several output files: ProjectA_3.5_x86.dll - for Target framework 3.5 and platform x86 ProjectA_4.5_x64.dll - ... This is what buildservers does. Is there a way to have config file that build operation looks

Automate custom war files using maven

馋奶兔 提交于 2019-12-02 10:55:14
I know about maven war overlays, but they assume that the original war file is a maven project. What if I only have access to the packaged war file and I need to modify it by adding new resources or updating few values in properties file using maven and push the new overplayed packaged war file to tomcat on a server? Is it too complex to do this in maven? If I install the war file in my repository does the maven build process automatically use it? It doesn't assume that the WAR is a Maven project, whatever that means, just that the WAR is a Maven artifact. You can install any WAR as an

Script to remove comments in Java

一个人想着一个人 提交于 2019-12-02 10:25:12
问题 Does anyone know how (or process) to remove comments from Java class file at build time? i would like to do this for specific packages in the project when the project is build using Ant. Any ANT scripts or some custom code most welcome. 回答1: There are no comments in the compiled .class file. 回答2: I believe the Java compiler does this for you already. 回答3: Class files don't have comments, they are removed by the compiler. If you want to strip comments from the source files, you could use the

Force regeneration of Settings.settings file after change in app.config

岁酱吖の 提交于 2019-12-02 10:09:37
问题 I have an automated build process that sets up the application for a specified mode (e.g. Dev, uat, live). Depending on this mode I want to update Connection Strings to the relevant one. However, in my Data Access Layer there is an app.config file which stores the connection string and this is used to feed the Settings.Settings file. In my builder I update the app.config's xml with the new Connection String and then the solution is built, however the Settings.setting file doesn't get

Script to remove comments in Java

三世轮回 提交于 2019-12-02 07:14:06
Does anyone know how (or process) to remove comments from Java class file at build time? i would like to do this for specific packages in the project when the project is build using Ant. Any ANT scripts or some custom code most welcome. There are no comments in the compiled .class file. I believe the Java compiler does this for you already. Jason Day Class files don't have comments, they are removed by the compiler. If you want to strip comments from the source files, you could use the Ant ReplaceRegExp task. But I'm curious as to why you would want to do this. To shrink a Java jar file you

How to build same project with multiple configuration C# VisualStudio2012

半腔热情 提交于 2019-12-02 06:51:22
I have a solution with many projects. I Would like to build several projects with multiple configuration settings. e.g: ProjectA is set as target framework: 3.5 and platform target x86. output assembly name is: ProjectA.dll. I want, when clicking the build button, to build the project in several output files: ProjectA_3.5_x86.dll - for Target framework 3.5 and platform x86 ProjectA_4.5_x64.dll - ... This is what buildservers does. Is there a way to have config file that build operation looks at, and then determine how to build each projects, with different assembly names and different build

Pulling Upside/downside Capture Ratio from morningstar.com

我的梦境 提交于 2019-12-02 06:51:02
问题 First Time Long Time. New to this VBA thing, however catching on. I'm interested in pulling the upside/downside capture ratio for a lot of mutual funds and want to automate the process. The table I am taking the info from is not your typical table; I guess it's a "dynamic object" on morningstar's website Here is the website. http://performance.morningstar.com/fund/ratings-risk.action?t=FDSAX&region=USA&culture=en-us This is specically for SunAmerica's Focus Dividend Fund; however I want to do

Makefile.in without Makefile.am in projects

谁都会走 提交于 2019-12-02 06:25:55
问题 In several projects I have seen the Makefile.in without Makefile.am . E.g. bash http://git.savannah.gnu.org/cgit/bash.git/tree/ and dtach http://dtach.cvs.sourceforge.net/viewvc/dtach/dtach/ I always thought that Makefile.in was generated by automake. Also with Makefile.am being a user written file I would not have thought it would be omitted from the code repository. In the bash source tree, the Makefile.in is far too big to be hand written and the Makefile.in in dtach also looks generated.

Automating Team Foundation Build configuration

好久不见. 提交于 2019-12-02 05:51:41
问题 I am currently searching for a way to configure a Team Foundation Build service + one build agent without having to use the configuration wizard. Is there a way to do this? Whether it be through command line (I haven't found any command line installation options for TFS Build), or through the API. Thanks! 回答1: To add to Pantelif: And there is a 3rd option, also unsupported: use the undocumented "/setup" commandline switch. And there is a 4th option, officially supported but still in beta: Use

Force regeneration of Settings.settings file after change in app.config

无人久伴 提交于 2019-12-02 05:28:14
I have an automated build process that sets up the application for a specified mode (e.g. Dev, uat, live). Depending on this mode I want to update Connection Strings to the relevant one. However, in my Data Access Layer there is an app.config file which stores the connection string and this is used to feed the Settings.Settings file. In my builder I update the app.config's xml with the new Connection String and then the solution is built, however the Settings.setting file doesn't get regenerated with the updated app.config connection string and so the app doesn't connect to the correct DB. Is