Examples of JarFileWriter


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(temp.getAbsolutePath() + File.separator + "lib");
            if (!lib.isDirectory()) {
                lib.mkdir();
            }
            JarFileWriter jarFileWriter = new JarFileWriter();
            jarFileWriter.writeJarFile(lib, name + ".jar", new File(temp.getAbsolutePath() + File.separator + "classes"));
            Project project = codegenBean.getActiveProject();

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

            ApplicationManager.getApplication().runWriteAction(new
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.