From 52aa7088f8343a21596e8e5d95835460f02335b6 Mon Sep 17 00:00:00 2001 From: Benedikt Heinrichs <heinrichs@itc.rwth-aachen.de> Date: Wed, 16 Dec 2020 15:15:21 +0100 Subject: [PATCH] Fix: Directory dependency is now C: for /voc --- src/GraphDeployer/Program.cs | 4 ++-- src/GraphDeployer/getRepository.ps1 | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GraphDeployer/Program.cs b/src/GraphDeployer/Program.cs index 31b7b19..5787b0e 100644 --- a/src/GraphDeployer/Program.cs +++ b/src/GraphDeployer/Program.cs @@ -1,4 +1,4 @@ -using Coscine.Configuration; +using Coscine.Configuration; using Coscine.Metadata; using System; using System.Collections.Generic; @@ -24,7 +24,7 @@ namespace Coscine.GraphDeployer VirtuosoManager virtuosoManager = new VirtuosoManager($"Server={virtuosoHost};Uid={virtuosoUser};pwd={virtuosoPassword}"); var _rdfStoreConnector = new RdfStoreConnector(virtuosoServer); - var folder = "/voc"; + var folder = "C:/voc"; var virtuosoISQLLocation = configuration.GetString( "coscine/local/virtuoso/isql", "C:/Programs/Virtuoso/bin/isql.exe" diff --git a/src/GraphDeployer/getRepository.ps1 b/src/GraphDeployer/getRepository.ps1 index 785cf08..d1dd0c1 100644 --- a/src/GraphDeployer/getRepository.ps1 +++ b/src/GraphDeployer/getRepository.ps1 @@ -1,4 +1,4 @@ -param ( +param ( [Parameter(Mandatory=$true, Position=0)] [string] $repositoryUrl, [Parameter(Mandatory=$true, Position=1)] @@ -30,7 +30,7 @@ if ($branch -And $branch -ne 'master' ) { cd .. -$path = '/voc' +$path = 'C:/voc' # Twice remove, because of: https://stackoverflow.com/questions/7909167/how-to-quietly-remove-a-directory-with-content-in-powershell#comment10316056_7909195 If(Test-Path $path) { Remove-Item -LiteralPath $path -Force -Recurse } @@ -44,4 +44,4 @@ Copy-Item "./$repositoryFolder/*" $path -Recurse; If(Test-Path $repositoryFolder) { Remove-Item -LiteralPath $repositoryFolder -Force -Recurse } If(Test-Path $repositoryFolder) { Remove-Item -LiteralPath $repositoryFolder -Force -Recurse } -Pop-Location \ No newline at end of file +Pop-Location -- GitLab