Package net.sf.minuteProject.configuration.bean

Examples of net.sf.minuteProject.configuration.bean.TemplateTarget


  }
 
  // method

  public String getTechnicalPackage(Template template) {
    TemplateTarget templateTarget = template.getTemplateTarget();
    Configuration configuration = (Configuration)templateTarget.getTarget().getAbstractConfigurationRoot();
      StringBuffer sb = new StringBuffer(
        templateTarget.getPackageRoot()+"."+
        configuration.getModel().getName()+"."+
        template.getTechnicalPackage());
    return sb.toString();
  }
View Full Code Here


public class TemplateTargetUtils {
 
  public static List <TemplateTarget> getDistinctTemplateTargetDirs (Model model) {
    List list = new ArrayList<TemplateTarget>();
    for (Iterator<TemplateTarget> iter = model.getConfiguration().getTarget().getTemplateTargets().iterator(); iter.hasNext();) {
      TemplateTarget templateTarget = (TemplateTarget)iter.next();
      addTemplateTarget(list, templateTarget);
    }
    return list;
  }
View Full Code Here

    protected String getTemplatePath (Template template) {
      if ((templatePath==null || templatePath.equals("")) && isTemplatePathToReset) {
        isTemplatePathToReset = false;
        Configuration c = (Configuration)template.getTemplateTarget().getTarget().getAbstractConfigurationRoot();
        Hashtable<String, String> ht = new Hashtable<String, String>();
          TemplateTarget templateTarget = template.getTemplateTarget();
          Target target = templateTarget.getTarget();
       
        for (TemplateTarget templateTarget2 : target.getTemplateTargets()) {
          String absoluteRootDir = templateTarget2.getAbsoluteRootDir();
          if (absoluteRootDir!=null) {
            ht.put(absoluteRootDir, absoluteRootDir);
View Full Code Here

    private String getTemplateRelativeLibPath (Template template) {
      if (templateLibPath==null && isTemplateLibPathToReset) {
        isTemplateLibPathToReset = false;
        Configuration c = (Configuration)template.getTemplateTarget().getTarget().getAbstractConfigurationRoot();
        Hashtable<String, String> ht = new Hashtable<String, String>();
          TemplateTarget templateTarget = template.getTemplateTarget();
          Target target = templateTarget.getTarget();
//        StringBuffer sb = new StringBuffer();
        for (TemplateTarget templateTarget2 : target.getTemplateTargets()) {
          String libdir = templateTarget2.getLibdir();
          if (libdir!=null && !libdir.equals("")) {
            ht.put(libdir, libdir);
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.TemplateTarget

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.