Package org.jboss.wsf.spi.tools

Examples of org.jboss.wsf.spi.tools.WSContractConsumer


   }


   private int importServices(URL wsdl)
   {
      WSContractConsumer importer = WSContractConsumer.newInstance();

      importer.setGenerateSource(generateSource);
      importer.setOutputDirectory(outputDir);
      importer.setExtension(extension);
      if (sourceDir != null)
         importer.setSourceDirectory(sourceDir);

      if (! quiet)
         importer.setMessageStream(System.out);

      if (catalog != null)
         importer.setCatalog(catalog);

      if (targetPackage != null)
         importer.setTargetPackage(targetPackage);

      if (wsdlLocation != null)
         importer.setWsdlLocation(wsdlLocation);

      if (bindingFiles != null && bindingFiles.size() > 0)
         importer.setBindingFiles(bindingFiles);

      if(target!=null)
         importer.setTarget(target);

      try
      {
         importer.consume(wsdl);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not import. (use --verbose to see full traces)");
View Full Code Here


      }

      // debug output
      if(loadConsumer)
      {
         WSContractConsumer importer = WSContractConsumer.newInstance();
         System.out.println("WSContractConsumer instance: " + importer.getClass().getCanonicalName());
         System.exit(0);
      }

      int wsdlPos = getopt.getOptind();
      if (wsdlPos >= args.length)
View Full Code Here

   }


   private int importServices(URL wsdl)
   {
      WSContractConsumer importer = WSContractConsumer.newInstance();

      importer.setGenerateSource(generateSource);
      importer.setOutputDirectory(outputDir);
      importer.setExtension(extension);
      if (sourceDir != null)
         importer.setSourceDirectory(sourceDir);

      if (! quiet)
         importer.setMessageStream(System.out);

      if (catalog != null)
         importer.setCatalog(catalog);

      if (targetPackage != null)
         importer.setTargetPackage(targetPackage);

      if (wsdlLocation != null)
         importer.setWsdlLocation(wsdlLocation);

      if (bindingFiles != null && bindingFiles.size() > 0)
         importer.setBindingFiles(bindingFiles);

      if(target!=null)
         importer.setTarget(target);

      try
      {
         importer.consume(wsdl);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not import. (use --verbose to see full traces)");
View Full Code Here

      ClassLoader prevCL = Thread.currentThread().getContextClassLoader();
      ClassLoader antLoader = this.getClass().getClassLoader();
      Thread.currentThread().setContextClassLoader(antLoader);
      try
      {
         WSContractConsumer importer = WSContractConsumer.newInstance();
         importer.setGenerateSource(keep);
         importer.setExtension(extension);
         if (destdir != null)
            importer.setOutputDirectory(destdir);
         if (sourcedestdir != null)
            importer.setSourceDirectory(sourcedestdir);
         if (targetPackage != null)
            importer.setTargetPackage(targetPackage);
         if (wsdlLocation != null)
            importer.setWsdlLocation(wsdlLocation);
         if (catalog != null)
            importer.setCatalog(catalog);
         if (bindingFiles != null && bindingFiles.size() > 0)
            importer.setBindingFiles(bindingFiles);
         if (target != null)
            importer.setTarget(target);

         log("Consuming wsdl: " + wsdl, Project.MSG_INFO);

         if (verbose)
         {
            importer.setMessageStream(new PrintStream(new LogOutputStream(this, Project.MSG_INFO)));
         }

         try
         {
            importer.setAdditionalCompilerClassPath(getTaskClassPathStrings());
            importer.consume(wsdl);
         }
         catch (MalformedURLException e)
         {
            throw new BuildException(e, getLocation());
         }
View Full Code Here

      ClassLoader prevCL = Thread.currentThread().getContextClassLoader();
      ClassLoader antLoader = this.getClass().getClassLoader();
      Thread.currentThread().setContextClassLoader(antLoader);
      try
      {
         WSContractConsumer consumer = WSContractConsumer.newInstance();
         consumer.setGenerateSource(keep);
         consumer.setExtension(extension);
         consumer.setNoCompile(nocompile);
         if (destdir != null)
            consumer.setOutputDirectory(destdir);
         if (sourcedestdir != null)
            consumer.setSourceDirectory(sourcedestdir);
         if (targetPackage != null)
            consumer.setTargetPackage(targetPackage);
         if (wsdlLocation != null)
            consumer.setWsdlLocation(wsdlLocation);
         if (catalog != null)
            consumer.setCatalog(catalog);
         if (bindingFiles != null && bindingFiles.size() > 0)
            consumer.setBindingFiles(bindingFiles);
         if (target != null)
            consumer.setTarget(target);

         log("Consuming wsdl: " + wsdl, Project.MSG_INFO);

         if (verbose)
         {
            consumer.setMessageStream(new PrintStream(new LogOutputStream(this, Project.MSG_INFO)));
         }

         try
         {
            consumer.setAdditionalCompilerClassPath(getTaskClassPathStrings());
            consumer.consume(wsdl);
         }
         catch (Throwable e)
         {
            throw new BuildException(e, getLocation());
         }
View Full Code Here

      }

      // debug output
      if(loadConsumer)
      {
         WSContractConsumer importer = WSContractConsumer.newInstance();
         System.out.println("WSContractConsumer instance: " + importer.getClass().getCanonicalName());
         System.exit(0);
      }

      int wsdlPos = getopt.getOptind();
      if (wsdlPos >= args.length)
View Full Code Here

   }


   private int importServices(URL wsdl)
   {
      WSContractConsumer consumer = WSContractConsumer.newInstance();

      consumer.setGenerateSource(generateSource);
      consumer.setOutputDirectory(outputDir);
      consumer.setExtension(extension);
      if (sourceDir != null)
         consumer.setSourceDirectory(sourceDir);

      if (! quiet)
         consumer.setMessageStream(System.out);

      if (catalog != null)
         consumer.setCatalog(catalog);

      if (targetPackage != null)
         consumer.setTargetPackage(targetPackage);

      if (wsdlLocation != null)
         consumer.setWsdlLocation(wsdlLocation);

      if (bindingFiles != null && bindingFiles.size() > 0)
         consumer.setBindingFiles(bindingFiles);

      if(target!=null)
         consumer.setTarget(target);
           
      if (noCompile)
         consumer.setNoCompile(noCompile);    

      try
      {
         consumer.consume(wsdl);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not import. (use --verbose to see full traces)");
View Full Code Here

/* 174 */     ClassLoader prevCL = Thread.currentThread().getContextClassLoader();
/* 175 */     ClassLoader antLoader = getClass().getClassLoader();
/* 176 */     Thread.currentThread().setContextClassLoader(antLoader);
/*     */     try
/*     */     {
/* 179 */       WSContractConsumer importer = WSContractConsumer.newInstance();
/* 180 */       importer.setGenerateSource(this.keep);
/* 181 */       if (this.destdir != null)
/* 182 */         importer.setOutputDirectory(this.destdir);
/* 183 */       if (this.sourcedestdir != null)
/* 184 */         importer.setSourceDirectory(this.sourcedestdir);
/* 185 */       if (this.targetPackage != null)
/* 186 */         importer.setTargetPackage(this.targetPackage);
/* 187 */       if (this.wsdlLocation != null)
/* 188 */         importer.setWsdlLocation(this.wsdlLocation);
/* 189 */       if (this.catalog != null)
/* 190 */         importer.setCatalog(this.catalog);
/* 191 */       if ((this.bindingFiles != null) && (this.bindingFiles.size() > 0))
/* 192 */         importer.setBindingFiles(this.bindingFiles);
/* 193 */       if (this.target != null) {
/* 194 */         importer.setTarget(this.target);
/*     */       }
/* 196 */       log("Consuming wsdl: " + this.wsdl, 2);
/*     */
/* 198 */       if (this.verbose)
/*     */       {
/* 200 */         importer.setMessageStream(new PrintStream(new LogOutputStream(this, 2)));
/*     */       }
/*     */
/*     */       try
/*     */       {
/* 205 */         importer.setAdditionalCompilerClassPath(getTaskClassPathStrings());
/* 206 */         importer.consume(this.wsdl);
/*     */       }
/*     */       catch (MalformedURLException e)
/*     */       {
/* 210 */         throw new BuildException(e, getLocation());
/*     */       }
View Full Code Here

/*     */
/*     */     }
/*     */
/* 149 */     if (this.loadConsumer)
/*     */     {
/* 151 */       WSContractConsumer importer = WSContractConsumer.newInstance();
/* 152 */       System.out.println("WSContractConsumer instance: " + importer.getClass().getCanonicalName());
/* 153 */       System.exit(0);
/*     */     }
/*     */
/* 156 */     int wsdlPos = getopt.getOptind();
/* 157 */     if (wsdlPos >= args.length)
View Full Code Here

/* 183 */     return url;
/*     */   }
/*     */
/*     */   private int importServices(URL wsdl)
/*     */   {
/* 189 */     WSContractConsumer importer = WSContractConsumer.newInstance();
/*     */
/* 191 */     importer.setGenerateSource(this.generateSource);
/* 192 */     importer.setOutputDirectory(this.outputDir);
/* 193 */     if (this.sourceDir != null) {
/* 194 */       importer.setSourceDirectory(this.sourceDir);
/*     */     }
/* 196 */     if (!this.quiet) {
/* 197 */       importer.setMessageStream(System.out);
/*     */     }
/* 199 */     if (this.catalog != null) {
/* 200 */       importer.setCatalog(this.catalog);
/*     */     }
/* 202 */     if (this.targetPackage != null) {
/* 203 */       importer.setTargetPackage(this.targetPackage);
/*     */     }
/* 205 */     if (this.wsdlLocation != null) {
/* 206 */       importer.setWsdlLocation(this.wsdlLocation);
/*     */     }
/* 208 */     if ((this.bindingFiles != null) && (this.bindingFiles.size() > 0)) {
/* 209 */       importer.setBindingFiles(this.bindingFiles);
/*     */     }
/* 211 */     if (this.target != null) {
/* 212 */       importer.setTarget(this.target);
/*     */     }
/*     */     try
/*     */     {
/* 216 */       importer.consume(wsdl);
/* 217 */       return 0;
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
/* 221 */       System.err.println("Error: Could not import. (use --verbose to see full traces)");
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.tools.WSContractConsumer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.