Package net.sf.minuteProject.configuration.bean

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


    if (ENABLE_UPDATABLE_CODE.equals(type))
      applyEnableUpdatableCode(configuration);
  }

  private void applyEnableUpdatableCode(Configuration configuration) {
    Target target = configuration.getTarget();
    applyEnableUpdatableCode(target);
    for (Target t : configuration.getTargets().getTargets())
      applyEnableUpdatableCode(t);
  }
View Full Code Here


  }


  public void copyAndComplementWithTargetInfo (AbstractConfigurationRoot abstractConfigurationRoot, Target target) throws Exception {
//    target = new Target();//(abstractConfigurationRoot, target);
    Target target2 = abstractConfigurationRoot.getTarget();
    target.setTemplateTargets(target2.getTemplateTargets());
    target.setAbstractConfigurationRoot(target2.getAbstractConfigurationRoot());
    target.setArchitectureTarget(target2.getArchitectureTarget());
    target.setPlugins(target2.getPlugins());
//    for (Target target2 : abstractConfigurationRoot.getTargets().getTargets()) {
//      if (target2==target) {
//        target2.setDir(target.getDir());
//        target2.setCanonicalDir(target.getCanonicalDir());
//        target2.setOutputdirRoot(target.getOutputdirRoot());
View Full Code Here

//      }
//    }
  }
 
  public void complementWithTargetInfo (AbstractConfigurationRoot abstractConfigurationRoot, Target target) {
    Target target2 = abstractConfigurationRoot.getTarget();
    target2.setDir(target.getDir());
    target2.setCanonicalDir(target.getCanonicalDir());
    target2.setOutputdirRoot(target.getOutputdirRoot());
    target2.setTemplatedirRoot(target.getTemplatedirRoot());
    target2.getProperties().addAll(target.getProperties());
    target.setAbstractConfigurationRoot(abstractConfigurationRoot);
  }
View Full Code Here

      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);
          }
          String templateFullDir = templateTarget2.getTemplateFullDir();
          if (templateFullDir!=null) {
            ht.put(templateFullDir, templateFullDir);
          }
        }
      for (String templateAssociated : target.getTemplatedirRefs()) {
        for (String absoluteRootDir :target.getAbsoluteRootDirs(templateAssociated))
          ht.put(absoluteRootDir, absoluteRootDir);
      }
        templatePath = getVelocityPath(ht,null);//getVelocityPath(ht, c.getCatalogDir());
      }
      return templatePath;
View Full Code Here

      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);
//            sb.append(templateTarget2.getLibdir());
//            sb.append(","); //TODO change for last element
View Full Code Here

//        lines = FileUtils.getLines(file, separator);
      }
  }

  private Target populateTarget (Targetlocation initTarget) {
    Target target = new Target();
    target.setDir(initTarget.getDir());
    target.setFileName(initTarget.getFilename());
    return target;
  }
View Full Code Here

      Mapping loader = new Mapping(dir, filename);
    mappingHolder = loader.load();   
  }

  private Target populateTarget (Targetlocation initTarget) {
    Target target = new Target();
    target.setDir(initTarget.getDir());
    target.setFileName(initTarget.getFilename());
    return target;
  }
View Full Code Here

    }
    return false;
  }

  private Target getTarget(Technology technology, boolean isDefaultOutputToAppend) {
    Target target = new Target();
    target.setName(technology.getName());
    target.setProperties(technology.getProperties());
    target.setFileName(technology.getTemplateConfigFileName());
    target.setDir(getTemplateSetFullPath(technology.getTemplateConfigFileName()));
    target.setTemplatedirRoot(TechnologyUtils.getTechnologyTemplateDir(technology, templateRootDir));   
    target.setOutputdirRoot(getOutputDir(technology, isDefaultOutputToAppend));
    target.setIsGenerable(technology.isGenerable());
    return target;
  }
View Full Code Here

      Presentation loader = new Presentation(dir, filename);
    presentationholder = loader.load();   
  }

  private Target populateTarget (Targetlocation initTarget) {
    Target target = new Target();
    target.setDir(initTarget.getDir());
    target.setFileName(initTarget.getFilename());
    return target;
  }
View Full Code Here

    loadTarget(model.getConfiguration(), target);
    applyTargetConventionAndGenerate(model.getConfiguration().getTarget());   
  }

  protected void loadAndGenerate (Targets targets) throws MinuteProjectException {
    Target targetFinal = new Target();
    Configuration configuration = model.getConfiguration();
    for (Target target : targets.getTargets()) {
//      TargetHolder targetHolder = new TargetHolder();
      loadTarget(configuration, target);
      configuration.getTarget().setIsGenerable(target.isGenerable());
//      generate(configuration.getTarget());
//      targetHolder.setTarget(model.getConfiguration().getTarget());
     
      targetFinal.complement(configuration.getTarget());
      targetFinal.complementAdditional (target);
      configuration.setTarget(new Target());
   
    configuration.setTarget(targetFinal);
    applyTargetConventionAndGenerate(configuration.getTarget());
//    for (Target target : targets.getTargets()) {
//      complementWithTargetInfo(configuration, target);
View Full Code Here

TOP

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

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.