Changeset 9142
- Timestamp:
- 07/02/08 15:13:00 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
helma-ng/trunk/src/org/helma/javascript/GlobalFunctions.java
r8988 r9142 47 47 "importJar", 48 48 "getResource", 49 "getResources", 49 50 "parseSkin" 50 51 }, helma-ng/trunk/src/org/helma/javascript/RhinoEngine.java
r9108 r9142 342 342 } 343 343 344 345 public ScriptableObject getTopLevelScope() { 346 return topLevelScope; 347 } 348 344 349 /** 345 350 * Get the repository associated with the scope or one of its prototypes … … 395 400 */ 396 401 public List<Resource> getResources(String path) { 402 for (Repository repo: repositories) { 403 Repository repository = repo.getChildRepository(path); 404 if (repository.exists()) { 405 return repo.getAllResources(); 406 } 407 } 397 408 return repositories.get(0).getResources(path); 398 409 }