开发者

compiler.jar compile list of files simple in one exec

Is it possible to provide a multiple source files each with their own destination file in a single command? That way Java won't hav开发者_StackOverflowe to load up for each file I compile. I am using SIMPLE_OPTIMIZATIONS.

I know there are better ways than the one at a time,, but they all seem to require code modifications which take too much time for the projects in question.


If you are using the closure library, you should use the dependency calculation script to consolidate your code to a single javascript file and then run the closure compiler on it.

If you aren't using the library such that the dependency calculator will work, just do this:

cat file1.js file2.js file3.js > alljs.js
java -jar closure-compiler.jar alljs.js


I guess it can't be done. I thought that might be the case.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜