Tabnine Logo
WscompileMessages
Code IndexAdd Tabnine to your IDE (free)

How to use
WscompileMessages
in
com.sun.tools.ws.resources

Best Java code snippets using com.sun.tools.ws.resources.WscompileMessages (Showing top 20 results out of 315)

origin: com.sun.xml.ws/jaxws-tools

public List<String> getJavacOptions(List<String> existingOptions, WsimportListener listener) {
  List<String> result = new ArrayList<String>();
  for (String o: javacOptions) {
    if (o.contains("=") && !o.startsWith("A")) {
      int i = o.indexOf('=');
      String key = o.substring(0, i);
      if (existingOptions.contains(key)) {
        listener.message(WscompileMessages.WSCOMPILE_EXISTING_OPTION(key));
      } else {
        result.add(key);
        result.add(o.substring(i + 1));
      }
    } else {
      if (existingOptions.contains(o)) {
        listener.message(WscompileMessages.WSCOMPILE_EXISTING_OPTION(o));
      } else {
        result.add(o);
      }
    }
  }
  return result;
}
origin: com.sun.xml.ws/jaxws-tools

/**
 * Obtains an operand and reports an error if it's not there.
 */
public String requireArgument(String optionName, String[] args, int i) throws BadCommandLineException {
  //if (i == args.length || args[i].startsWith("-")) {
  if (args[i].startsWith("-")) {
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_MISSING_OPTION_ARGUMENT(optionName));
  }
  return args[i];
}
origin: com.sun.xml.ws/jaxws-tools

private File getWSDLDownloadDir() {
  File wsdlDir = new File(options.destDir, WSDL_PATH);
  boolean created = wsdlDir.mkdirs();
  if (options.verbose && !created) {
    listener.message(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(wsdlDir));
  }
  return wsdlDir;
}
origin: com.sun.xml.ws/jaxws-tools

serviceName = QName.valueOf(requireArgument(SERVICENAME_OPTION, args, ++i));
if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_LOCALNAME(args[i]));
portName = QName.valueOf(requireArgument(PORTNAME_OPTION, args, ++i));
if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_LOCALNAME(args[i]));
nonclassDestDir = new File(requireArgument("-r", args, ++i));
if (!nonclassDestDir.exists()) {
  throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(nonclassDestDir.getPath()));
origin: com.sun.xml.ws/jaxws-tools

out.println(WscompileMessages.WSCOMPILE_CANT_GET_COMPILER(property("java.home"), property("java.version"), property("java.vendor")));
return false;
out.println(WscompileMessages.WSCOMPILE_ERROR(WscompileMessages.WSCOMPILE_COMPILATION_FAILED()));
return false;
  endpointClass = classLoader.loadClass(endpoint);
} catch (ClassNotFoundException e) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));
origin: com.sun.xml.ws/jaxws-tools

    throw new BadCommandLineException(WscompileMessages.WSIMPORT_FAILED_TO_PARSE(catalog, e.getMessage()));
  String value = args[i].substring(11);
  if (value.length() == 0) {
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_INVALID_OPTION(args[i]));
    if(r==0) {
      throw new BadCommandLineException(WscompileMessages.WSIMPORT_NO_SUCH_JAXB_OPTION(subCmd[0]));
    implDestDir = new File(requireArgument("-implDestDir", args, ++i));
  if (!implDestDir.exists())
   throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(implDestDir.getPath()));
    return 2;
} else if (args[i].equals("-implServiceName")) {
origin: com.sun.xml.ws/jaxws-tools

if (arg.equals("-version")) {
  listener.message(
      WscompileMessages.WSIMPORT_VERSION(ToolVersion.VERSION.MAJOR_VERSION));
  return true;
      WscompileMessages.WSIMPORT_FULLVERSION(ToolVersion.VERSION.toString()));
  return true;
    listener.message(WscompileMessages.WSCOMPILE_COMPILATION_FAILED());
    return false;
origin: org.glassfish.metro/webservices-tools

  target = Target.parse(token);
  if(target == null)
    throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
  return 2;
} else if (args[i].equals("-classpath") || args[i].equals("-cp")) {
  destDir = new File(requireArgument("-d", args, ++i));
  if (!destDir.exists())
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(destDir.getPath()));
  return 2;
} else if (args[i].equals("-s")) {
  keep = true;
  if (!sourceDir.exists()) {
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(sourceDir.getPath()));
  try {
    if (!Charset.isSupported(encoding)) {
      throw new BadCommandLineException(WscompileMessages.WSCOMPILE_UNSUPPORTED_ENCODING(encoding));
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_UNSUPPORTED_ENCODING(encoding));
origin: com.sun.xml.ws/jaxws-tools

  protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException {
    ClassLoader cl = getClass().getClassLoader();
    if (doEndorsedMagic) {
      return Invoker.createClassLoader(cl);
    } else {
      Options.Target targetVersion;
      if (targetVersionAttribute != null) {
        targetVersion = Options.Target.parse(targetVersionAttribute);
      } else {
        targetVersion = Options.Target.getDefault();
      }
      Options.Target loadedVersion = Options.Target.getLoadedAPIVersion();
      //Check if the target version is supported by the loaded API version
      if (loadedVersion.isLaterThan(targetVersion)) {
        return cl;
      } else {
        if (Service.class.getClassLoader() == null)
          throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
        else {
          throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
        }
      }
    }
  }
}
origin: com.sun.xml.ws/jaxws-tools

  System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
else {
  System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
origin: org.glassfish.metro/webservices-tools

/**
 * Parses arguments and fill fields of this object.
 *
 * @exception BadCommandLineException
 *      thrown when there's a problem in the command-line arguments
 */
public void parseArguments( String[] args ) throws BadCommandLineException {
  for (int i = 0; i < args.length; i++) {
    if(args[i].length()==0)
      throw new BadCommandLineException();
    if (args[i].charAt(0) == '-') {
      int j = parseArguments(args,i);
      if(j==0)
        throw new BadCommandLineException(WscompileMessages.WSCOMPILE_INVALID_OPTION(args[i]));
      i += (j-1);
    } else {
      addFile(args[i]);
    }
  }
  if(destDir == null)
    destDir = new File(".");
  if(sourceDir == null)
    sourceDir = destDir;
}
origin: org.glassfish.metro/webservices-tools

serviceName = QName.valueOf(requireArgument(SERVICENAME_OPTION, args, ++i));
if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_LOCALNAME(args[i]));
portName = QName.valueOf(requireArgument(PORTNAME_OPTION, args, ++i));
if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_LOCALNAME(args[i]));
nonclassDestDir = new File(requireArgument("-r", args, ++i));
if (!nonclassDestDir.exists()) {
  throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(nonclassDestDir.getPath()));
origin: org.glassfish.metro/webservices-tools

out.println(WscompileMessages.WSCOMPILE_CANT_GET_COMPILER(property("java.home"), property("java.version"), property("java.vendor")));
return false;
out.println(WscompileMessages.WSCOMPILE_ERROR(WscompileMessages.WSCOMPILE_COMPILATION_FAILED()));
return false;
  endpointClass = classLoader.loadClass(endpoint);
} catch (ClassNotFoundException e) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));
origin: org.glassfish.metro/webservices-tools

    throw new BadCommandLineException(WscompileMessages.WSIMPORT_FAILED_TO_PARSE(catalog, e.getMessage()));
  String value = args[i].substring(11);
  if (value.length() == 0) {
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_INVALID_OPTION(args[i]));
    if(r==0) {
      throw new BadCommandLineException(WscompileMessages.WSIMPORT_NO_SUCH_JAXB_OPTION(subCmd[0]));
    implDestDir = new File(requireArgument("-implDestDir", args, ++i));
  if (!implDestDir.exists())
   throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(implDestDir.getPath()));
    return 2;
} else if (args[i].equals("-implServiceName")) {
origin: org.glassfish.metro/webservices-tools

if (arg.equals("-version")) {
  listener.message(
      WscompileMessages.WSIMPORT_VERSION(ToolVersion.VERSION.MAJOR_VERSION));
  return true;
      WscompileMessages.WSIMPORT_FULLVERSION(ToolVersion.VERSION.toString()));
  return true;
    listener.message(WscompileMessages.WSCOMPILE_COMPILATION_FAILED());
    return false;
origin: com.sun.xml.ws/jaxws-tools

  target = Target.parse(token);
  if(target == null)
    throw new BadCommandLineException(WscompileMessages.WSIMPORT_ILLEGAL_TARGET_VERSION(token));
  return 2;
} else if (args[i].equals("-classpath") || args[i].equals("-cp")) {
  destDir = new File(requireArgument("-d", args, ++i));
  if (!destDir.exists())
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(destDir.getPath()));
  return 2;
} else if (args[i].equals("-s")) {
  keep = true;
  if (!sourceDir.exists()) {
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(sourceDir.getPath()));
  try {
    if (!Charset.isSupported(encoding)) {
      throw new BadCommandLineException(WscompileMessages.WSCOMPILE_UNSUPPORTED_ENCODING(encoding));
    throw new BadCommandLineException(WscompileMessages.WSCOMPILE_UNSUPPORTED_ENCODING(encoding));
origin: org.glassfish.metro/webservices-tools

  protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException {
    ClassLoader cl = getClass().getClassLoader();
    if (doEndorsedMagic) {
      return Invoker.createClassLoader(cl);
    } else {
      Options.Target targetVersion;
      if (targetVersionAttribute != null) {
        targetVersion = Options.Target.parse(targetVersionAttribute);
      } else {
        targetVersion = Options.Target.getDefault();
      }
      Options.Target loadedVersion = Options.Target.getLoadedAPIVersion();
      //Check if the target version is supported by the loaded API version
      if (loadedVersion.isLaterThan(targetVersion)) {
        return cl;
      } else {
        if (Service.class.getClassLoader() == null)
          throw new BuildException(WscompileMessages.WRAPPER_TASK_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
        else {
          throw new BuildException(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
        }
      }
    }
  }
}
origin: org.glassfish.metro/webservices-tools

  System.err.println(WscompileMessages.INVOKER_NEED_ENDORSED(loadedVersion.getVersion(), targetVersion.getVersion()));
else {
  System.err.println(WscompileMessages.WRAPPER_TASK_LOADING_INCORRECT_API(loadedVersion.getVersion(), Which.which(Service.class), targetVersion.getVersion()));
origin: com.sun.xml.ws/jaxws-tools

/**
 * Parses arguments and fill fields of this object.
 *
 * @exception BadCommandLineException
 *      thrown when there's a problem in the command-line arguments
 */
public void parseArguments( String[] args ) throws BadCommandLineException {
  for (int i = 0; i < args.length; i++) {
    if(args[i].length()==0)
      throw new BadCommandLineException();
    if (args[i].charAt(0) == '-') {
      int j = parseArguments(args,i);
      if(j==0)
        throw new BadCommandLineException(WscompileMessages.WSCOMPILE_INVALID_OPTION(args[i]));
      i += (j-1);
    } else {
      addFile(args[i]);
    }
  }
  if(destDir == null)
    destDir = new File(".");
  if(sourceDir == null)
    sourceDir = destDir;
}
origin: javaee/metro-jax-ws

serviceName = QName.valueOf(requireArgument(SERVICENAME_OPTION, args, ++i));
if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_SERVICENAME_MISSING_LOCALNAME(args[i]));
portName = QName.valueOf(requireArgument(PORTNAME_OPTION, args, ++i));
if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) {
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_NAMESPACE(args[i]));
  throw new BadCommandLineException(WscompileMessages.WSGEN_PORTNAME_MISSING_LOCALNAME(args[i]));
nonclassDestDir = new File(requireArgument("-r", args, ++i));
if (!nonclassDestDir.exists()) {
  throw new BadCommandLineException(WscompileMessages.WSCOMPILE_NO_SUCH_DIRECTORY(nonclassDestDir.getPath()));
com.sun.tools.ws.resourcesWscompileMessages

Javadoc

Defines string formatting method for each constant in the resource file

Most used methods

  • INVOKER_NEED_ENDORSED
    You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1}
  • WRAPPER_TASK_LOADING_INCORRECT_API
    You are loading JAX-WS {0} API from {1} but this tool requires JAX-WS {2} API.
  • WRAPPER_TASK_NEED_ENDORSED
    You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1}
  • WSCOMPILE_CANT_GET_COMPILER
    No Java compiler found. Perhaps environment/JDK problem? Used JVM: {0}, {1}/{2}
  • WSCOMPILE_COMPILATION_FAILED
    compilation failed, errors should have been reported
  • WSCOMPILE_ERROR
    error: {0}
  • WSCOMPILE_EXISTING_OPTION
    Ignoring already defined option {0}
  • WSCOMPILE_INVALID_OPTION
    unrecognized parameter {0}
  • WSCOMPILE_MISSING_OPTION_ARGUMENT
    option "{0}" requires an argument
  • WSCOMPILE_NO_SUCH_DIRECTORY
    directory not found: {0}
  • WSCOMPILE_UNSUPPORTED_ENCODING
    unsupported encoding: {0}
  • WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING
    wsgen can not generate WSDL for non-SOAP binding: {0} on Class {1}
  • WSCOMPILE_UNSUPPORTED_ENCODING,
  • WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING,
  • WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING,
  • WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS,
  • WSGEN_CLASS_NOT_FOUND,
  • WSGEN_FULLVERSION,
  • WSGEN_HELP,
  • WSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL,
  • WSGEN_INVALID_PROTOCOL,
  • WSGEN_MISSING_FILE

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now