Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building java from MSBuild

We are using MSBuild to run our build which compiles and outputs a number of .NET projects/assemblies. Now we are faced with the need to also include a java version of on of our assemblies and are unsure how we should go about integrating the building of this java source into MSBuild.

There is always the option to shell out to a command prompt and have it perform the compilation and jar'ing manually, but are there any other and more elegant ways to go about consuming java building in MSBuild?

like image 397
soren.enemaerke Avatar asked Jan 14 '10 09:01

soren.enemaerke


1 Answers

The Exec task is the perfect thing. Easy, works. Not sure if that's what you mean by "Shell out".

like image 199
Cheeso Avatar answered Oct 17 '22 17:10

Cheeso