Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Allow sources to be provided as a file #614

Closed
nex3 opened this issue Jul 28, 2016 · 2 comments
Closed

Allow sources to be provided as a file #614

nex3 opened this issue Jul 28, 2016 · 2 comments

Comments

@nex3
Copy link

nex3 commented Jul 28, 2016

Currently, all sources for a compilation must be provided as command-line arguments. However, if a module contains many sources, it can run up against command-line length limits. This could be avoided by providing an argument that takes a file that contains newline-separated source file names, like tar's --files-from. Bonus points if it's possible to provide files via stdin by passing --sources-from - or something like that.

@jmesserly
Copy link
Contributor

Oh! so it turns out you can supply args via @file_path and all of those will be loaded:
https://github.com/dart-lang/dev_compiler/blob/617e3b69a61e6994bfc8eb9e2a807deda52cfd45/bin/dartdevc.dart#L143

I presume we have @jakemac53 to thank for this feature :)

@nex3
Copy link
Author

nex3 commented Aug 12, 2016

Cool! I'll add that to #613.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants