public class PR102746 { | |||||
public static void main(String[] args) { | |||||
if (!("hello".equals(lib.Lib.hello()))) { | |||||
throw new Error("no hello"); | |||||
} | |||||
} | |||||
} |
Would test with | |||||
<ajc-test dir="bugs/pr102746" title="log to file with -log in classpath"> | |||||
<compile files="lib/Lib.java" outjar="foo-logging.jar"/> | |||||
<compile files="PR102746.java" classpath="foo-logging.jar"/> | |||||
</ajc-test> | |||||
except that the harness is I think snooping for foo-logging.jar wrong. |
package lib; | |||||
public class Lib { | |||||
public static String hello() { | |||||
return "hello"; | |||||
} | |||||
} |