source: trunk/j/src/bsh/commands/addClassPath.bsh @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 290 bytes
Line 
1
2bsh.help.addClassPath= "usage: addClassPath( string | URL )";
3import java.net.URL;
4import bsh.BshClassManager;
5
6addClassPath( path ) {
7  URL url;
8  if ( path instanceof URL )
9    url = path;
10  else
11    url = pathToFile( path ).toURL();
12
13  BshClassManager.getClassManager().addClassPath( url );
14}
15
Note: See TracBrowser for help on using the repository browser.