git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271205 13f79535-47bb-0310-9956-ffa450edef68master
@@ -23,5 +23,24 @@ public class ExtensionsTest | |||||
throws TaskException | throws TaskException | ||||
{ | { | ||||
ExtensionsLoadedClass.doSomething(); | ExtensionsLoadedClass.doSomething(); | ||||
Class clazz = null; | |||||
try | |||||
{ | |||||
clazz = Class.forName( "sun.tools.javac.Main" ); | |||||
} | |||||
catch( ClassNotFoundException e ) | |||||
{ | |||||
try | |||||
{ | |||||
clazz = Class.forName( "com.sun.tools.javac.Main" ); | |||||
} | |||||
catch( ClassNotFoundException e1 ) | |||||
{ | |||||
throw new TaskException( "Unable to locate compilers from tools.jar" ); | |||||
} | |||||
} | |||||
System.out.println( "Compiler loaded from tools.jar = " + clazz ); | |||||
} | } | ||||
} | } |
@@ -6,4 +6,6 @@ Specification-Vendor: Jakarta Apache | |||||
Implementation-Vendor-Id: org.apache.avalon | Implementation-Vendor-Id: org.apache.avalon | ||||
Implementation-Vendor: Apache Avalon Project | Implementation-Vendor: Apache Avalon Project | ||||
Implementation-Version: 1.0.2 | Implementation-Version: 1.0.2 | ||||
Extension-List: tools | |||||
tools-Extension-Name: com.sun.tools | |||||
tools-Specification-Version: 1.0 |