Package org.apache.tools.ant.types

Examples of org.apache.tools.ant.types.ZipFileSet.createInclude()


        final String[] exports = lib.getExports();
        for (int i = 0; i < exports.length; i++) {
            final String export = exports[i];
            if (export.equals("*")) {
                checkPackageExists(jarName, export, f);
                fs.createInclude().setName("**/*");               
            } else {
                String exp = export.replace('.', '/');
                fs.createInclude().setName(exp + ".*");
                if (!exp.endsWith("*")) {
                    checkPackageExists(jarName, exp, f);
View Full Code Here


            if (export.equals("*")) {
                checkPackageExists(jarName, export, f);
                fs.createInclude().setName("**/*");               
            } else {
                String exp = export.replace('.', '/');
                fs.createInclude().setName(exp + ".*");
                if (!exp.endsWith("*")) {
                    checkPackageExists(jarName, exp, f);
                    fs.createInclude().setName(exp + "*");
                } else {
                    checkPackageExists(jarName, exp, f);
View Full Code Here

            } else {
                String exp = export.replace('.', '/');
                fs.createInclude().setName(exp + ".*");
                if (!exp.endsWith("*")) {
                    checkPackageExists(jarName, exp, f);
                    fs.createInclude().setName(exp + "*");
                } else {
                    checkPackageExists(jarName, exp, f);
                    fs.createInclude().setName(exp);
                }
            }
View Full Code Here

                if (!exp.endsWith("*")) {
                    checkPackageExists(jarName, exp, f);
                    fs.createInclude().setName(exp + "*");
                } else {
                    checkPackageExists(jarName, exp, f);
                    fs.createInclude().setName(exp);
                }
            }
        }
    }
   
View Full Code Here

                {
                    webXmlFile = f;
                }
                else
                {
                    fileSet.createInclude().setName(f.getName());
                }
            }
            addWebinf(fileSet);
        }
        catch (IOException ioe)
View Full Code Here

        ZipFileSet zip = new ZipFileSet();
        zip.setSrc(getDeployableFile().getFile());
        jar.addZipfileset(zip);
        ZipFileSet fileSet = new ZipFileSet();
        fileSet.setDir(this.tmpDir);
        fileSet.createInclude().setName("weblogic.xml");
        fileSet.setPrefix("WEB-INF");
        jar.addZipfileset(fileSet);
        jar.execute();
    }
View Full Code Here

                    final File dir = fres.getFile().getParentFile();
                    final String name = fres.getFile().getName();
                    final ZipFileSet fileset = new ZipFileSet();
                    fileset.setProject(getProject());
                    fileset.setDir(dir);
                    fileset.createInclude().setName(name);
                    filesets.add(fileset);
                } else {
                    throw new BuildException("Not a file resource: " + res);
                }
            }         
View Full Code Here

        ZipFileSet zip = new ZipFileSet();
        zip.setSrc(getDeployableFile().getFile());
        jar.addZipfileset(zip);
        ZipFileSet fileSet = new ZipFileSet();
        fileSet.setDir(this.tmpDir);
        fileSet.createInclude().setName("weblogic.xml");
        fileSet.setPrefix("WEB-INF");
        jar.addZipfileset(fileSet);
        jar.execute();
    }
View Full Code Here

                {
                    webXmlFile = f;
                }
                else
                {
                    fileSet.createInclude().setName(f.getName());
                }
            }
            addWebinf(fileSet);
        }
        catch (IOException ioe)
View Full Code Here

        ZipFileSet zip = new ZipFileSet();
        zip.setSrc(getDeployableFile().getFile());
        jar.addZipfileset(zip);
        ZipFileSet fileSet = new ZipFileSet();
        fileSet.setDir(this.tmpDir);
        fileSet.createInclude().setName("weblogic.xml");
        fileSet.setPrefix("WEB-INF");
        jar.addZipfileset(fileSet);
        jar.execute();
    }
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.