looking to implement google closure with msbuild.
i found a few solutions but struggling to get it working.
any suggestions on how i can read multiple js files in and create .min versions during build?
thanks
EDIT: with the answer from below i was able to make some alterations with a view to fully implement what was recommended but in a simple form here is what i’ve wrote:
<ItemGroup>
<JSMin Include="$(OutputPath)Scripts\*.js"/>
</ItemGroup>
<Target Name="AfterBuild" Inputs="@(JSMin)" Outputs="@(JSMin ->'%(Directory)%(Filename).min%(Extension)')">
<Exec Command="java -jar C:\temp\compiler.jar --js %(JSMin.Identity) --js_output_file C:\temp\%(JSMin.Filename).min.js"/>
</Target>
the output path will be changed to a dynamic path later on.
many thanks
I haven’t looked at Google Closure, but you can run any command through the
<Exec>task:Edit: To run a command over a set of files: