Package org.codehaus.enunciate.config

Examples of org.codehaus.enunciate.config.APIImport


    createSourceFile("org.codehaus.enunciate.pckg3.SampleClassTen", dirToZipUp);
    File jarFile2 = File.createTempFile("enunciatetest", ".jar");
    enunciate.zip(jarFile2, dirToZipUp);
    enunciate.setRuntimeClasspath(dirEntry.getAbsolutePath() + File.pathSeparator + jarFile.getAbsolutePath() + File.pathSeparator + jarFile2.getAbsolutePath());
    EnunciateConfiguration config = new EnunciateConfiguration(Collections.<DeploymentModule>emptyList());
    APIImport apiImport = new APIImport();
    apiImport.setPattern("org.codehaus.enunciate.pckg1.SampleClassOne");
    config.addAPIImport(apiImport);
    apiImport = new APIImport();
    apiImport.setPattern("org.codehaus.enunciate.pckg1.with.**");
    config.addAPIImport(apiImport);
    apiImport = new APIImport();
    apiImport.setPattern("org.codehaus.enunciate.pckg2.*");
    config.addAPIImport(apiImport);
    apiImport = new APIImport();
    apiImport.setPattern("some.other.class.that.is.Explicit");
    config.addAPIImport(apiImport);
    enunciate.setConfig(config);

    ImportedClassesClasspathHandler handler = new ImportedClassesClasspathHandler(enunciate);
    enunciate.scanClasspath(Arrays.asList((ClasspathHandler) handler));
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.config.APIImport

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.