1
我试图在Windows 7中使用'closure-library \ closure \ bin \ build \ depswriter.py'创建deps.js文件。我的Python版本是2.7.3 。它抱怨'命令行太长了'。depswriter.py抱怨'命令行太长'
它在Linux中工作得很好。
任何解决方案,使其在Windows中工作。
我试图在Windows 7中使用'closure-library \ closure \ bin \ build \ depswriter.py'创建deps.js文件。我的Python版本是2.7.3 。它抱怨'命令行太长了'。depswriter.py抱怨'命令行太长'
它在Linux中工作得很好。
任何解决方案,使其在Windows中工作。
上班Windows command-line limitation周围depswriter.py
,您可以使用下面的标志,以递归扫描目录中的JavaScript文件:
--root A root directory to scan for JS source files. Paths of JS
files in generated deps file will be relative to this path.
This flag may be specified multiple times.
--root_with_prefix A root directory to scan for JS source files, plus a prefix
(if either contains a space, surround with quotes). Paths
in generated deps file will be relative to the root, but
preceded by the prefix. This flag may be specified multiple
times.
在许多情况下,整个项目可以使用一个--root
标志来指定。