Package org.jostraca

Examples of org.jostraca.TemplatePath


    template.modifyForOldVersion();

    validateMergedPropertySet( template.getMergedPropertySet() );

    tmps = template.getMergedPropertySet();
    TemplatePath tp   = template.getTemplatePath();
    dumpPropertySet(    tmps, tp );
    dumpTemplateSource( tmps, tp, template );
  }
View Full Code Here


    String includeFilePath
      = null == includeBaseFolder ? pPath
          : new File( includeBaseFolder, pPath).getAbsolutePath();
   
    try {
      TemplatePath tmpath = pTemplate.getTemplatePath();
      PropertySet tmps = pTemplate.getMergedPropertySet();

      // template relative is the default
      String includeBase = tmpath.getTemplateFolder();

      if( pArguments.contains(INCLUDE_MOD_output_relative) ) {
        includeBase = tmps.get( Property.main_OutputFolder );
      }
View Full Code Here

    String includeFilePath
      = null == includeBaseFolder ? pPath
          : new File( includeBaseFolder, pPath).getAbsolutePath();
   
    try {
      TemplatePath tmpath = pTemplate.getTemplatePath();
      PropertySet tmps = pTemplate.getMergedPropertySet();

      // template relative is the default
      String includeBase = tmpath.getTemplateFolder();

      if( pArguments.contains(INCLUDE_MOD_output_relative) ) {
        includeBase = tmps.get( Property.main_OutputFolder );
      }
View Full Code Here

    template.modifyForOldVersion();

    //validateMergedPropertySet( template.getMergedPropertySet() );

    tmps = template.getMergedPropertySet();
    TemplatePath tp   = template.getTemplatePath();
    dumpPropertySet(    tmps, tp );
    dumpTemplateSource( tmps, tp, template );
  }
View Full Code Here

  public static void saveMetaData( Template pTemplate ) {
    Template    tm   = (Template) Internal.null_arg( pTemplate );
    PropertySet tmps = (PropertySet) tm.getMergedPropertySet();

    if( tmps.isYes( Property.main_EnableMeta ) ) {
      TemplatePath tp       = tm.getTemplatePath();
      File         metaFile = makeMetaFilePath( tmps, tp );

      try {
        FileUtil.ensureParentFolder( metaFile );
        tmps.set( Property.jostraca_properties_NameValueList, Standard.EMPTY );
View Full Code Here

    Template    tm   = (Template) Internal.null_arg( pTemplate );
    PropertySet tmps = (PropertySet) tm.getMergedPropertySet();
    PropertySet ps   = new PropertySet();

    if( tmps.isYes( Property.main_EnableMeta ) ) {
      TemplatePath tp       = tm.getTemplatePath();
      File         metaFile = makeMetaFilePath( tmps, tp );

      try {
        ps.load( metaFile );
      }
View Full Code Here

TOP

Related Classes of org.jostraca.TemplatePath

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.