/* 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());
/* */ }