Changeset 34 for trunk/Target


Ignore:
Timestamp:
Feb 18, 2012, 11:17:14 PM (13 years ago)
Author:
chronos
Message:
  • Removed: Action Compile and run. Now Compile is executed before Run action if not compiled yet.
Location:
trunk/Target
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Target/UTarget.pas

    r33 r34  
    259259    Process.Free;
    260260  end else raise Exception.Create(Format(SCompilerNotFound, [CompilerPath]));
    261 end;
    262 
    263 procedure TTarget.Run;
    264 var
    265   CompiledFile: string;
    266   Process: TProcess;
    267 begin
     261
    268262  CompiledFile := ExtractFilePath(ProjectFileName) +
    269263    'compiled' + DirectorySeparator + Name + DirectorySeparator +
     
    280274end;
    281275
     276procedure TTarget.Run;
     277begin
     278end;
     279
    282280procedure TTarget.Pause;
    283281begin
  • trunk/Target/UTargetC.pas

    r33 r34  
    139139procedure TTargetC.Run;
    140140begin
    141   inherited Run;
     141  CompileToFile;
     142  inherited;
    142143end;
    143144
  • trunk/Target/UTargetDelphi.pas

    r33 r34  
    1717    constructor Create; override;
    1818    procedure Compile; override;
     19    procedure Run; override;
    1920  end;
    2021
     
    101102end;
    102103
     104procedure TTargetDelphi.Run;
     105begin
     106  CompileToFile;
     107  inherited Run;
     108end;
     109
    103110end.
    104111
  • trunk/Target/UTargetPHP.pas

    r33 r34  
    9898procedure TTargetPHP.Run;
    9999begin
     100  CompileToFile;
    100101  inherited Run;
    101102end;
Note: See TracChangeset for help on using the changeset viewer.