Package org.jostraca.util

Examples of org.jostraca.util.FileRef


  public void load( TemplatePath pTemplatePath ) throws TemplateException {
    if( pTemplatePath instanceof VirtualTemplatePath ) {
      try {
        iTemplatePath   = pTemplatePath;
        iTemplateScript = BasicTemplateScript.defineByPath( Standard.EMPTY );
        iCodeWriterRef  = new FileRef( new File( iTemplatePath.getTemplateName() ) );
      }
      catch( Exception e ) {
        // REVIEW
        throw new TemplateException( e );
      }
View Full Code Here


      iLastMod      = FileUtil.lastMod( path );
      iPath         = path;
      iTemplatePath = tp;

      // set this to the template at first - the code writer is unknown at this point
      iCodeWriterRef = new FileRef( new File( path ) );

      // by default, assume executable is same as source (fine for scripting langs)
      iCodeWriterExecRef = new FileRef( iCodeWriterRef.getFile() );

      // FIX: does this conflict with init() later?
      if( tp.isLibraryTemplate() ) {
        forceIncludeBase( Standard.DOT );
      }
View Full Code Here

          = source.substring( 0, startOfInclude )
          + includeContent
          + source.substring( startOfInclude + lengthOfInclude, source.length() )
          ;

        FileRefBuildResource includeBuildResource = new FileRefBuildResource( new FileRef( new File( includeFilePath ) ), iCodeWriterRef );
        iBuildResource.add( includeBuildResource );
      }
    }
    catch( IOException ioe ) {
      //ioe.printStackTrace();
View Full Code Here

      iLastMod      = FileUtil.lastMod( path );
      iPath         = path;
      iTemplatePath = tp;

      // set this to the template at first - the code writer is unknown at this point
      iCodeWriterRef = new FileRef( new File( path ) );

      // by default, assume executable is same as source (fine for scripting langs)
      iCodeWriterExecRef = new FileRef( iCodeWriterRef.getFile() );

      //if( tp.isLibraryTemplate() ) {
      //  forceIncludeBase( Standard.DOT );
      //}
View Full Code Here

  }
 

  @Override
  public void addFileBuildResource(String pIncludeFilePath) {
    FileRefBuildResource includeBuildResource = new FileRefBuildResource( new FileRef( new File( pIncludeFilePath ) ), iCodeWriterRef );
    iBuildResource.add( includeBuildResource );
  }
View Full Code Here

    if( pTemplatePath instanceof VirtualTemplatePath ) {
      try {
        iTemplatePath   = pTemplatePath;
        //iTemplateScript = BasicTemplateScript.defineByPath( Standard.EMPTY );
        //iTemplateScript = BasicTemplateScript.defineByPath( pTemplatePath.getTemplatePath() );
        iCodeWriterRef  = new FileRef( new File( iTemplatePath.getTemplateName() ) );
      }
      catch( Exception e ) {
        // REVIEW
        throw new TemplateException( e );
      }
View Full Code Here

TOP

Related Classes of org.jostraca.util.FileRef

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.