2012-05-28 97 views
1

我試圖在Windows 7中使用'closure-library \ closure \ bin \ build \ depswriter.py'創建deps.js文件。我的Python版本是2.7.3 。它抱怨'命令行太長了'。depswriter.py抱怨'命令行太長'

它在Linux中工作得很好。

任何解決方案,使其在Windows中工作。

回答

1

上班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標誌來指定。