Nayigiziki / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.addDependency should add support for absolute roots #302

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using depswriter to generate absolute roots would be beneficial when working on 
lots of projects that rely on closure lib.  This would allow all these projects 
to share a closure lib repo.

Being able to:
--root_with_prefix=". http://localhost:8082/resources/scripts/src/" ^

Would enable that.  However the goog.require code does not like this as it 
always tries to goog.basePath + path of the dependency.  This patch checks if 
the registered dependency appears to be an absolute uri, if so then we do not 
prefix the goog.basePath.

Also added supporting tests.

Original issue reported on code.google.com by guido.tapia@gmail.com on 30 Mar 2011 at 10:04

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by nn...@google.com on 9 May 2012 at 9:57