We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b67540 commit 5d8bbe7Copy full SHA for 5d8bbe7
scripts/copyFilesOnBuild.ps1
@@ -15,11 +15,12 @@ Param(
15
[Parameter(Mandatory = $true)][string]$inputPath
16
)
17
18
+$fullPath = (Get-Item $inputPath).FullName
19
$parentDirectory = (Get-Item $inputPath).Parent
20
Push-Location $inputPath
21
22
Get-ChildItem '*' -Filter *.java -recurse | ForEach-Object {
- $TargetDirectory = $_.DirectoryName.Replace($inputPath, "")
23
+ $TargetDirectory = $_.DirectoryName.Replace($fullPath, "")
24
$TargetPath = Join-Path -Path $parentDirectory -ChildPath $TargetDirectory
25
If (!(Test-Path $TargetPath)) {
26
mkdir $TargetPath | out-null
0 commit comments