Package org.jostraca

Examples of org.jostraca.Service


  }



  public void generate( String pTemplate, String pOptions ) throws Exception {
    Service s = new Service();
    s.setTemplatePaths( ListUtil.make( new BasicTemplatePath( iDependsFolder+pTemplate ) ) );
    s.setConfigFolder( iConfigFolder );
    s.addPropertySet( Service.CONF_system,  s.loadBaseConfigFiles( new File( iConfigFolder, "system.conf" ) ) );

    PropertySet props = new PropertySet();
    props.set( Property.main_OutputFolder,      iDependsFolder );
    props.set( Property.main_WorkFolder,        iDependsFolder );
    props.set( Property.main_CodeWriterOptions, pOptions );
    s.addPropertySet( Service.CONF_cmdline, props );

    UserMessageHandler umh = new CommandLineUserMessageHandler();
    umh.setThreshold( umh.DEBUG );
    s.setUserMessageHandler( umh );
    s.build();
  }
View Full Code Here


                    +"  main.FileNameSuffix = .txt %>\n"
                    +"start\n"
                    +"[<%=\"expr\"%>]\n"
                    );

    Service s = new Service();
    s.addPropertySet( Service.CONF_system, ps );
    s.build( vt01 );
  }
View Full Code Here

TOP

Related Classes of org.jostraca.Service

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.