|
19 | 19 | enclosed by brackets [] replaced by your own identifying information:
|
20 | 20 | "Portions Copyrighted [year] [name of copyright owner]"
|
21 | 21 | ====================
|
22 |
| - Portions Copyrighted 2012-2013 ForgeRock AS |
| 22 | + Portions Copyrighted 2012-2014 ForgeRock AS |
23 | 23 | -->
|
24 | 24 | <Project DefaultTargets="Clean" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
25 | 25 | <PropertyGroup>
|
26 | 26 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
| 27 | + <ForgeRockLegal>false</ForgeRockLegal> |
27 | 28 | </PropertyGroup>
|
28 | 29 | <Target Name="BeforeBuild">
|
29 | 30 | <!-- write out the top of the file.. -->
|
|
33 | 34 | <WriteLinesToFile File="Files.wxs" Lines="@(FileTopLines)" Overwrite="true" />
|
34 | 35 |
|
35 | 36 | <ItemGroup>
|
36 |
| - <AllFiles Include="..\Service\bin\$(Configuration)\*.*" |
| 37 | + <AllFiles Include="..\Service\bin\$(Configuration)\*.dll;..\Service\bin\$(Configuration)\*.config" |
37 | 38 | Exclude="..\Service\bin\$(Configuration)\*.exe"/>
|
38 | 39 | <EXEFiles Include="..\Service\bin\$(Configuration)\ConnectorServer.exe"/>
|
39 | 40 | <PowerShellScriptExecutorFactoryFiles Include="..\PowerShellScriptExecutorFactory\bin\$(Configuration)\*.ScriptExecutorFactory.*"/>
|
40 | 41 | <ShellScriptExecutorFactoryFiles Include="..\ShellScriptExecutorFactory\bin\$(Configuration)\*.ScriptExecutorFactory.*"/>
|
41 | 42 | <LegalFiles Include="..\legal\*.txt"
|
42 | 43 | Exclude="..\legal\ForgeRock*.txt"/>
|
43 | 44 | <ForgeRockLegalFiles Include="..\legal\ForgeRock*.txt"/>
|
44 |
| - <LegalFiles Include="@(ForgeRockLegalFiles)" Condition=" '$(Configuration)' == 'Release' "/> |
| 45 | + <LegalFiles Include="@(ForgeRockLegalFiles)" Condition=" '$(ForgeRockLegal)' == 'true' "/> |
45 | 46 | </ItemGroup>
|
46 | 47 |
|
47 | 48 | <!-- Write out the majority of base files -->
|
|
52 | 53 | <WriteLinesToFile File="Files.wxs"
|
53 | 54 | Lines="@(PowerShellScriptExecutorFactoryFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" />')"/>
|
54 | 55 | <WriteLinesToFile File="Files.wxs"
|
55 |
| - Lines="@(ShellScriptExecutorFactoryFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" />')"/> |
| 56 | + Lines="@(ShellScriptExecutorFactoryFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" />')"/> |
56 | 57 |
|
| 58 | + <!-- Write out the Service Executable (should only be one) --> |
| 59 | + <WriteLinesToFile File="Files.wxs" |
| 60 | + Lines="@(EXEFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" Checksum="yes" KeyPath="yes" />')"/> |
| 61 | + |
| 62 | + <WriteLinesToFile File="Files.wxs" Lines="</Component>"/> |
| 63 | + <WriteLinesToFile File="Files.wxs" Lines="</ComponentGroup>"/> |
| 64 | + <WriteLinesToFile File="Files.wxs" Lines="<ComponentGroup Id="LegalFilesComponents" Directory="LEGALDIR">"/> |
| 65 | + <WriteLinesToFile File="Files.wxs" Lines="<Component Id="LegalNotices" Guid="84d57160-13d5-11e4-9191-0800200c9a66" DiskId="1">"/> |
57 | 66 | <!-- Write out the Legal files -->
|
58 | 67 | <WriteLinesToFile File="Files.wxs"
|
59 | 68 | Lines="@(LegalFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" />')"/>
|
60 |
| - |
61 |
| - <!-- Write out the Service Executable (should only be one) --> |
62 |
| - <WriteLinesToFile File="Files.wxs" |
63 |
| - Lines="@(EXEFiles->'<File Source="%(Fullpath)" Name="%(Filename)%(Extension)" KeyPath="yes" />')"/> |
| 69 | + |
64 | 70 | <!-- Write out the bottom of the file -->
|
65 | 71 | <ReadLinesFromFile File="File.bottom" >
|
66 | 72 | <Output TaskParameter="Lines" ItemName="FileBottomLines"/>
|
|
77 | 83 | <Copy SourceFiles="@(PowerShellScriptExecutorFactoryFiles)" DestinationFolder="bin\$(Configuration)\target" />
|
78 | 84 | <Copy SourceFiles="@(ShellScriptExecutorFactoryFiles)" DestinationFolder="bin\$(Configuration)\target" />
|
79 | 85 | <Copy SourceFiles="@(EXEFiles)" DestinationFolder="bin\$(Configuration)\target" />
|
80 |
| - <Copy SourceFiles="..\legal\CDDLv1.txt" DestinationFolder="bin\$(Configuration)\target" /> |
81 |
| - <Copy SourceFiles="..\legal\THIRDPARTYREADME.txt" DestinationFolder="bin\$(Configuration)\target" /> |
82 |
| - <Copy SourceFiles="..\legal\ForgeRock_License.txt" DestinationFolder="bin\$(Configuration)\target" Condition=" '$(Configuration)' == 'Release' "/> |
| 86 | + <Copy SourceFiles="..\legal\CDDLv1.txt" DestinationFolder="bin\$(Configuration)\target\legal-notices" /> |
| 87 | + <Copy SourceFiles="..\legal\ForgeRock_License.txt" DestinationFolder="bin\$(Configuration)\target\legal-notices" Condition=" '$(ForgeRockLegal)' == 'true' "/> |
83 | 88 | <ItemGroup>
|
84 |
| - <ZipFiles Include="bin\$(Configuration)\target\*.*" Exclude="*.zip" /> |
| 89 | + <ZipFiles Include="bin\$(Configuration)\target\**\*.dll; |
| 90 | + bin\$(Configuration)\target\**\*.exe; |
| 91 | + bin\$(Configuration)\target\**\*.config; |
| 92 | + bin\$(Configuration)\target\**\*.txt" Exclude="*.zip;*.pdb" /> |
85 | 93 | </ItemGroup>
|
86 | 94 | <Zip Files="@(ZipFiles)" WorkingDirectory="bin\$(Configuration)\target" ZipFileName="bin\$(Configuration)\openicf-$(OpenICFVersion)-dotnet.zip" />
|
87 | 95 | </Target>
|
|
0 commit comments