Examples of JarFileWriter


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

                   //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

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

           
            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

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

                   //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

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

                   //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

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

            new FileCopier().copyFiles(serviceFile, metaInfFolder,null);
            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

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

           
            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

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

                   //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

Examples of org.apache.ideaplugin.bean.JarFileWriter

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

                   //Delete the temp folders
                   deleteDir(tempClassFile );

                 }
View Full Code Here

Examples of org.apache.ideaplugin.bean.JarFileWriter

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

                   //Delete the temp folders
                   deleteDir(tempClassFile );

                 }
View Full Code Here

Examples of org.apache.ideaplugin.bean.JarFileWriter

            final String name = wsdl.substring(wsdl.lastIndexOf(File.separatorChar) + 1, wsdl.lastIndexOf(".")) + "-stub";
            final File lib = new File(codegenBean.getActiveProject().getProjectFile().getParent().getPath() + File.separator + "lib");
            if (!lib.isDirectory()) {
                lib.mkdir();
            }
            JarFileWriter jarFileWriter = new JarFileWriter();
            jarFileWriter.writeJarFile(lib, name + ".jar", new File(temp + File.separator + "classes"));
            Project project = codegenBean.getActiveProject();

            final LibraryTable table = (LibraryTable) project.getComponent(LibraryTable.class);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.