Package org.apache.commons.attributes.compiler

Examples of org.apache.commons.attributes.compiler.AttributeCompiler


    File root = new File("./");
   
    project.setBaseDir(root);
    project.init();

    AttributeCompiler commonsAttributesCompiler = new AttributeCompiler();
    commonsAttributesCompiler.setProject(project);

    //commonsAttributesCompiler.setSourcepathref("test");
    String tempPath = "target/generated-commons-attributes-src";
    commonsAttributesCompiler.setDestdir(new File(tempPath));
    FileSet fileset = new FileSet();
    fileset.setDir(new File(root.getPath() + File.separator + "test"));
    String attributeClasses = testWildcards;
    fileset.setIncludes(attributeClasses);
    commonsAttributesCompiler.addFileset(fileset);

    commonsAttributesCompiler.execute();

    System.out.println("Compiling Java sources generated by Commons Attributes using Javac: requires tools.jar on Eclipse project classpath");
    // We now have the generated Java source: compile it.
    // This requires Javac on the source path
    Javac javac = new Javac();
View Full Code Here

TOP

Related Classes of org.apache.commons.attributes.compiler.AttributeCompiler

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.