-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #2086: Copy files of sub packages to the target path.
- Loading branch information
Showing
6 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
. $(dirname "${BASH_SOURCE[0]}")/common.sh | ||
cd "${CURR_DIR}/issue2086-copyfiles-subpackage-targetpath" || die "Could not cd." | ||
|
||
rm -f "sub/to_be_deployed.txt" | ||
|
||
"$DUB" build | ||
./sub/sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "root", | ||
"targetType": "none", | ||
"dependencies": { | ||
"root:sub": "*" | ||
}, | ||
"subPackages": [ | ||
"sub" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "sub", | ||
"targetType": "executable", | ||
"targetName": "sub", | ||
"copyFiles": [ | ||
"files/*" | ||
] | ||
} |
Empty file.
9 changes: 9 additions & 0 deletions
9
test/issue2086-copyfiles-subpackage-targetpath/sub/source/app.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import std.exception: enforce; | ||
import std.file: exists, thisExePath; | ||
import std.path: dirName, buildPath; | ||
|
||
void main() | ||
{ | ||
string filePath = buildPath(thisExePath.dirName, "to_be_deployed.txt"); | ||
enforce(filePath.exists); | ||
} |