From c2986f66f180c979464a411860fe82f2b2255a82 Mon Sep 17 00:00:00 2001 From: Peter Breuls Date: Thu, 9 May 2013 18:58:46 +0200 Subject: [PATCH] Additions to readme. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a99746..e19de42 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,11 @@ Assuming you have managed your own autoloader, set your own includes or are usin $compiler->addSourceFile('four'); $compiler->compile(); +The `compile()` method uses a system call to execute the Jar-file. By default, the resulting file is called `compiled.js`. You can change this by calling this before you compile: + $compiler->setTargetFile('somethingElse.js'); -The `compile()` method uses a system call to execute the Jar-file. +When you make a mistake, an exception of the class `Devize\ClosureCompiler\CompilerException` will be thrown. ## License This library packages the Closure Compiler from Google. The folder `compiler-latest` is the result of unpacking the Google-supplied [Zip file](http://closure-compiler.googlecode.com/files/compiler-latest.zip). Its license is included.