comparison core/src/luan/modules/PackageLuan.java @ 258:4dfa86dbca45

rename "java:" to "classpath:" git-svn-id: https://luan-java.googlecode.com/svn/trunk@259 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 28 Oct 2014 20:38:04 +0000
parents 2a54cb7d1cf4
children f9b201530b85
comparison
equal deleted inserted replaced
257:c5c60eca33dd 258:4dfa86dbca45
20 public static final LuanFunction LOADER = new LuanFunction() { 20 public static final LuanFunction LOADER = new LuanFunction() {
21 @Override public Object call(LuanState luan,Object[] args) { 21 @Override public Object call(LuanState luan,Object[] args) {
22 LuanTable module = Luan.newTable(); 22 LuanTable module = Luan.newTable();
23 module.put( "loaded", loaded(luan) ); 23 module.put( "loaded", loaded(luan) );
24 module.put( "preload", Luan.newTable() ); 24 module.put( "preload", Luan.newTable() );
25 module.put( "path", "?.luan;java:luan/modules/?.luan" ); 25 module.put( "path", "?.luan;classpath:luan/modules/?.luan" );
26 module.put( "jpath", jpath ); 26 module.put( "jpath", jpath );
27 try { 27 try {
28 module.put("require",requireFn); 28 module.put("require",requireFn);
29 add( module, "load", LuanState.class, String.class ); 29 add( module, "load", LuanState.class, String.class );
30 add( module, "load_lib", LuanState.class, String.class ); 30 add( module, "load_lib", LuanState.class, String.class );