It looks like you have created two copies of hello.soy.js: one in the
closure-library directory and one in the directory from which you are
running the Python command. Generally speaking, you should not be
adding files to the closure-library directory. If you delete the copy
of hello.soy.js from closure-library, then I think you will be all
set.
Also, you may want to look into using plovr (
http://plovr.com/) as it
will simplify your build command considerably.
On Oct 16, 9:42 am, Brad Rice <
bradri...@gmail.com> wrote:
> Well, I'm proceeding onward, but ran into another issue. When I try to
> compile using the books commands I get a dep duplicate error.
>
> Exception: Duplicate provide (example.templates) in
> (../closure-library/hello.soy.js, hello.soy.js)
>
> This is how I run the compiler:
>
> python ../closure-library/closure/bin/calcdeps.py --path
> ../closure-library --path
> ../closure-templates/javascript/soyutils_usegoog.js --path
> hello.soy.js --input hello.js --compiler_jar
> ../closure-compiler/build/compiler.jar --output_mode compiled
> --compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS"
> hello-compiled.js
>
>
>
> On Fri, Oct 15, 2010 at 7:41 PM, Brad Rice <
bradri...@gmail.com> wrote:
> > Ah. In your book, it goes across a page, so I didn't realize that was
> > important. Thank you.
>
> > On Fri, Oct 15, 2010 at 6:17 PM, Michael Bolin <
bolinf...@gmail.com> wrote:
> >> Blank line betwen soy doc and {template}?
>
> >> Sent from my iPhone
>
> >
bradri...@gmail.com
> > ~
> > “Christianity is one beggar telling another beggar where he found
> > bread.” - D.T. Niles
>
> --
> Brad Rice
>
bradri...@gmail.com