Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
107 lines (87 sloc) 3.43 KB
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/MsBuild/2003">
<PropertyGroup>
<BuildDependsOn>
$(BuildDependsOn);
CopyAssets;
</BuildDependsOn>
</PropertyGroup>
<Target Name="CopyAssets" AfterTargets="BuildPackage" Condition="$(NCrunch) != '1'">
<ItemGroup>
<jqPlotFiles Include="$(SolutionDir)packages\jqPlot.1.0.0\Content\Scripts\jqPlot\*.*" />
<jqPlotPluginFiles Include="$(SolutionDir)packages\jqPlot.1.0.0\Content\Scripts\jqPlot\plugins\*.*" />
<QUnitFiles Include="$(SolutionDir)packages\QUnit-MVC.1.6.2.0\content\**\*.*" />
<MustacheFiles Include="$(SolutionDir)packages\mustache.js.0.4.1\content\**\*.*" />
<jquerySimulateFiles Include="$(SolutionDir)packages\jquery.simulate.1.0.0\content\Scripts\jQuery.Simulate\jquery.simulate.js" />
</ItemGroup>
<!-- jqPlot -->
<Message
Text="Copying jqPlot assets for project..."
Importance="high" />
<Copy
SkipUnchangedFiles="true"
SourceFiles="@(jqPlotFiles)"
DestinationFolder="$(ProjectDir)Scripts\jqPlot" >
<Output
TaskParameter="CopiedFiles"
ItemName="jqPlotCopiedFiles" />
</Copy>
<Copy
SkipUnchangedFiles="true"
SourceFiles="@(jqPlotPluginFiles)"
DestinationFolder="$(ProjectDir)Scripts\jqPlot\plugins" >
<Output
TaskParameter="CopiedFiles"
ItemName="jqPlotCopiedFiles" />
</Copy>
<Message
Text="@(jqPlotCopiedFiles)"
Importance="high" />
<!-- QUnit -->
<Message
Text="Copying QUnit assets for project..."
Importance="high" />
<Copy
SkipUnchangedFiles="true"
SourceFiles="@(QUnitFiles)"
DestinationFiles="@(QUnitFiles->'$(ProjectDir)%(RecursiveDir)%(Filename)%(Extension)')" >
<Output
TaskParameter="CopiedFiles"
ItemName="QUnitCopiedFiles" />
</Copy>
<Message
Text="@(QUnitCopiedFiles)"
Importance="high" />
<!-- mustache -->
<Message
Text="Copying Mustache assets for project..."
Importance="high" />
<Copy
SkipUnchangedFiles="true"
SourceFiles="@(MustacheFiles)"
DestinationFiles="@(MustacheFiles->'$(ProjectDir)%(RecursiveDir)%(Filename)%(Extension)')" >
<Output
TaskParameter="CopiedFiles"
ItemName="MustacheCopiedFiles" />
</Copy>
<Message
Text="@(MustacheCopiedFiles)"
Importance="high" />
<!-- jQuery.Simulate -->
<!-- mustache -->
<Message
Text="Copying jQuery.Simulate assets for project..."
Importance="high" />
<Copy
SkipUnchangedFiles="true"
SourceFiles="@(jquerySimulateFiles)"
DestinationFolder="$(ProjectDir)Scripts\jQuery.Simulate" >
<Output
TaskParameter="CopiedFiles"
ItemName="jquerySimulateCopiedFiles" />
</Copy>
<Message
Text="@(jquerySimulateCopiedFiles)"
Importance="high" />
</Target>
</Project>