Bug 18967 – Allow wildcard for subfolders with the -J option

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-10T14:39:55Z
Last change time
2018-06-11T05:27:58Z
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2018-06-10T14:39:55Z
e.g dmd -J/home/fantomas/includes/* instead of dmd -J/home/fantomas/includes/default.css ^ -J/home/fantomas/includes/icons.data ^ -J/home/fantomas/includes/EN.po ^ -J/home/fantomas/includes/FR.po ^ -J/home/fantomas/includes/RU.po ^ -J/home/fantomas/includes/JP.po
Comment #1 by ag0aep6g — 2018-06-10T21:33:45Z
-J takes a directory, not a single file name. So your long version doesn't actually work. The correct way would be `dmd -J/home/fantomas/includes`, with `import("default.css")`, `import("icons.data")`, etc. in the D code. https://run.dlang.io/is/xKQoJZ So judging from your example, the current -J already does what you want. Closing as WORKSFORME. Feel free to reopen if I'm missing the point.
Comment #2 by b2.temp — 2018-06-11T05:26:46Z
Sorry, i meant dmd -J/home/fantomas/includes/* instead of dmd -J/home/fantomas/includes/default.css ^ -J/home/fantomas/includes/assets/icons.data ^ -J/home/fantomas/includes/assets/strings.rc ^ -J/home/fantomas/includes/translation/EN.po ^ -J/home/fantomas/includes/translation/FR.po ^ -J/home/fantomas/includes/translation/RU.po ^ -J/home/fantomas/includes/translation/JP.po