com.sun.tools.xjc.api.util.ToolsJarNotFoundException Maven / Gradle / Ivy
Go to download
Old JAXB Binding Compiler. Contains source code needed for binding customization files into java sources.
In other words: the *tool* to generate java classes for the given xml representation.
package com.sun.tools.xjc.api.util;
import java.io.File;
/**
* Signals an error when tools.jar was not found.
*
* Simply print out the message obtained by {@link #getMessage()}.
*
* @author Kohsuke Kawaguchi
*/
public final class ToolsJarNotFoundException extends Exception {
/**
* Location where we expected to find tools.jar
*/
public final File toolsJar;
public ToolsJarNotFoundException(File toolsJar) {
super(calcMessage(toolsJar));
this.toolsJar = toolsJar;
}
private static String calcMessage(File toolsJar) {
return Messages.TOOLS_JAR_NOT_FOUND.format(toolsJar.getPath());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy