File: README.md

package info (click to toggle)
webjars-locator 0.32-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: java: 482; xml: 152; javascript: 5; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
webjars-locator
===============

This project provides a means to locate assets within WebJars.

[![Build Status](https://travis-ci.org/webjars/webjars-locator.svg?branch=master)](https://travis-ci.org/webjars/webjars-locator)

Obtain the full path of an asset
--------------------------------

	WebJarAssetLocator locator = new WebJarAssetLocator();
	String fullPathToRequirejs = locator.getFullPath("require.js");
	
Obtain all of the assets within a base folder
---------------------------------------------
	
	WebJarAssetLocator locator = new WebJarAssetLocator();
	Set<String> fullPathsOfAssets = locator.listAssets("/multiple/1.0.0");

Advanced usage
--------------

The locator can also be configured with the class loaders that it should use for looking up resources and filter the types of resources that should be included for searching. Please visit the source code for more information.