Skip to content

Commit

Permalink
Unzip SLOOP Binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ugras-ergun-sonarsource committed Mar 5, 2024
1 parent c9c1c4b commit 2d5ac4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/DownloadDependencies/CommonProperties.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
</PropertyGroup>

<PropertyGroup>
<SloopBinaryFileName>sonarlint-backend-cli-$(EmbeddedSloopVersion)-windows_x64.zip</SloopBinaryFileName>
<SloopBinaryFileNameWithoutExtension>sonarlint-backend-cli-$(EmbeddedSloopVersion)-windows_x64</SloopBinaryFileNameWithoutExtension>
<SloopBinaryFileName>$(SloopBinaryFileNameWithoutExtension).zip</SloopBinaryFileName>
<SloopBinaryDownloadDir>$(LOCALAPPDATA)\SLVS_Build_Sloop</SloopBinaryDownloadDir>
<SloopExtractDir>$(SloopBinaryDownloadDir)\$(SloopBinaryFileNameWithoutExtension)</SloopExtractDir>
<SloopBinaryDownloadPath>$(SloopBinaryDownloadDir)\$(SloopBinaryFileName)</SloopBinaryDownloadPath>
<SloopBinaryRemoteUrl>https://repox.jfrog.io/artifactory/sonarsource/org/sonarsource/sonarlint/core/sonarlint-backend-cli/$(EmbeddedSloopVersion)/$(SloopBinaryFileName)</SloopBinaryRemoteUrl>
</PropertyGroup>
Expand Down
5 changes: 5 additions & 0 deletions build/DownloadDependencies/JarProcessing.targets
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<CallTarget Targets="ExtractJsonFromJars" />
<CallTarget Targets="ExtractRuleDescFromJson" />
<CallTarget Targets="DownloadSloop" />
<CallTarget Targets="UnzipSloop" />
<CallTarget Targets="WriteOutputFile" />
</Target>

Expand All @@ -53,6 +54,10 @@
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(SloopBinaryDownloadPath) --url $(SloopBinaryRemoteUrl)" />
</Target>

<Target Name="UnzipSloop">
<Unzip SourceFiles="$(SloopBinaryDownloadPath)" DestinationFolder="$(SloopExtractDir)" OverwriteReadOnlyFiles="true" />
</Target>

<Target Name="ExtractJsonFromJars">
<Message Importance="high" Text="[ProcessJarFiles] Removing existing json files ..." />
<ItemGroup>
Expand Down

0 comments on commit 2d5ac4f

Please sign in to comment.