Package org.apache.axis2.tool.core

Examples of org.apache.axis2.tool.core.JarFileWriter


                }
            }

            // set the message payload to the message context
            InputStream in;
            ManagedDataSource dataSource;
            if (builder instanceof DataSourceMessageBuilder && entry.isStreaming()) {
                in = null;
                dataSource = ManagedDataSourceFactory.create(
                        new FileObjectDataSource(file, contentType));
            } else {
                in = content.getInputStream();
                dataSource = null;
            }
           
            try {
                OMElement documentElement;
                if (in != null) {
                    documentElement = builder.processDocument(in, contentType, msgContext);
                } else {
                    documentElement = ((DataSourceMessageBuilder)builder).processDocument(
                            dataSource, contentType, msgContext);
                }
                msgContext.setEnvelope(TransportUtils.createSOAPEnvelope(documentElement));
               
                handleIncomingMessage(
                    msgContext,
                    transportHeaders,
                    null, //* SOAP Action - not applicable *//
                    contentType
                );
            }
            finally {
                if (in != null) {
                    try {
                        in.close();
                    } catch (IOException ex) {
                        handleException("Error closing stream", ex);
                    }
                } else {
                    dataSource.destroy();
                }
            }

            if (log.isDebugEnabled()) {
                log.debug("Processed file : " + file + " of Content-type : " + contentType);
View Full Code Here


           
            if (isWSDLAvailable){
                new FileCopier().copyFiles(wsdlFile, metaInfFolder,wsdlFilter);
            }
            //jar the temp directory. the output folder will be created if missing
            new JarFileWriter().writeJarFile(outputFolder,
                    outputFileName,
                    tempFileFolder);
        } catch (Exception e) {
            throw new ProcessException(e);
        } finally {
View Full Code Here

                   //Compile the source to another directory
                   SrcCompiler srcCompileTool = new SrcCompiler();
                   srcCompileTool.compileSource(tempClassFile, tempProjectSrcLocation);
                   //create the jar file and add that to the lib directory
                   String projectLib = outputPage.getOutputLocation()+File.separator+"lib";
                   JarFileWriter jarFileWriter = new JarFileWriter();
                   String jarFileName = "CodegenResults.jar";
                   if (!outputPage.getJarFilename().equals("")){
                     jarFileName=outputPage.getJarFilename();
                   }
                   outputPage.setJarFileName(jarFileName);
                   jarFileWriter.writeJarFile(new File(projectLib), jarFileName, tempClassFile);
                  
                   //Delete the temp folders
                   deleteDir(tempCodegenFile);

                 }
View Full Code Here

                   //Compile the source to another directory
                   SrcCompiler srcCompileTool = new SrcCompiler();
                   srcCompileTool.compileSource(tempClassFile, tempProjectSrcLocation);
                   //create the jar file and add that to the lib directory
                   String projectLib = outputPage.getOutputLocation()+File.separator+"lib";
                   JarFileWriter jarFileWriter = new JarFileWriter();
                   String jarFileName = "CodegenResults.jar";
                   if (!outputPage.getJarFilename().equals("")){
                     jarFileName=outputPage.getJarFilename();
                   }
                   outputPage.setJarFileName(jarFileName);
                   jarFileWriter.writeJarFile(new File(projectLib), jarFileName, tempClassFile);
                  
                   //Delete the temp folders
                   deleteDir(tempCodegenFile);

                 }
View Full Code Here

           
            if (isWSDLAvailable){
                new FileCopier().copyFiles(wsdlFile, metaInfFolder,wsdlFilter);
            }
            //jar the temp directory. the output folder will be created if missing
            new JarFileWriter().writeJarFile(outputFolder,
                    outputFileName,
                    tempFileFolder);
        } catch (Exception e) {
            throw new ProcessException(e);
        } finally {
View Full Code Here

                   //Compile the source to another directory
                   SrcCompiler srcCompileTool = new SrcCompiler();
                   srcCompileTool.compileSource(tempClassFile, tempProjectSrcLocation);
                   //create the jar file and add that to the lib directory
                   String projectLib = outputPage.getOutputLocation()+File.separator+"lib";
                   JarFileWriter jarFileWriter = new JarFileWriter();
                   String jarFileName = "CodegenResults.jar";
                   if (!outputPage.getJarFilename().equals("")){
                     jarFileName=outputPage.getJarFilename();
                   }
                   outputPage.setJarFileName(jarFileName);
                   jarFileWriter.writeJarFile(new File(projectLib), jarFileName, tempClassFile);
                  
                   //Delete the temp folders
                   deleteDir(tempCodegenFile);

                 }
View Full Code Here

            if (isWSDLAvailable){
                new FileCopier().copyFiles(wsdlFile, metaInfFolder,wsdlFilter);
            }
            //jar the temp directory. the output folder will be created if missing
           
            new JarFileWriter().writeJarFile(outputFolder,
                    outputFileName,
                    tempFileFolder);
        } catch (Exception e) {
            throw new ProcessException(e);
        } finally {
View Full Code Here

            if (isWSDLAvailable){
                new FileCopier().copyFiles(wsdlFile, metaInfFolder,wsdlFilter);
            }
            //jar the temp directory. the output folder will be created if missing
           
            new JarFileWriter().writeJarFile(outputFolder,
                    outputFileName,
                    tempFileFolder);
        } catch (Exception e) {
            throw new ProcessException(e);
        } finally {
View Full Code Here

                   //Compile the source to another directory
                   SrcCompiler srcCompileTool = new SrcCompiler();
                   srcCompileTool.compileSource(tempClassFile, tempProjectSrcLocation);
                   //create the jar file and add that to the lib directory
                   String projectLib = outputPage.getOutputLocation()+File.separator+"lib";
                   JarFileWriter jarFileWriter = new JarFileWriter();
                   String jarFileName = "CodegenResults.jar";
                   if (!outputPage.getJarFilename().equals("")){
                     jarFileName=outputPage.getJarFilename();
                   }
                   outputPage.setJarFileName(jarFileName);
                   jarFileWriter.writeJarFile(new File(projectLib), jarFileName, tempClassFile);
                  
                   //Delete the temp folders
                   deleteDir(tempCodegenFile);

                 }
View Full Code Here

           
            if (isWSDLAvailable){
                new FileCopier().copyFiles(wsdlFile, metaInfFolder,null);
            }
            //jar the temp directory. the output folder will be created if missing
            new JarFileWriter().writeJarFile(outputFolder,
                    outputFileName,
                    tempFileFolder);
        } catch (Exception e) {
            throw new ProcessException(e);
        } finally {
View Full Code Here

TOP

Related Classes of org.apache.axis2.tool.core.JarFileWriter

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.