anchor.diff: +import 'dart:async';
   import 'dart:io';
   
  +import 'package:analyzer/src/generated/sdk_io.dart';
   import 'package:js_wrapping_generator/dart_generator.dart';
   import 'package:path/path.dart' as path;
   
   void main(List<String> args) {
  +  if (DirectoryBasedDartSdk.defaultSdkDirectory == '.') {
  +    print('WARNING: Default SDK directory not detected. You may need to set the DART_SDK environment variable.');
  +  }
  +
  +  Stopwatch stopwatch = new Stopwatch()..start();
     bool clean = true;
   
     Directory base = new File.fromUri(Platform.script).parent.parent;
  
positive.code:   Generator _generator = new CustomGenerator('${base.path}/packages');
  
    template
      .listSync()
      .where((fse) => fse is File)
      .forEach((file) {
        print('Wrapping file: ' + file.path);
        _generator.transformFile(file, file, target);
      });
  }
  
  
negative.code:     File output = new File(path.join(to.path, path.basename(from.path)));
      String code = output.readAsStringSync();
  
      code = code.replaceFirst(
        new RegExp("import 'package:js_wrapping_generator/dart_generator.dart';\n"),
        ''
      );
  
      if (Platform.isWindows) {
        code = code.replaceAll(
            new RegExp('\n'),
            '\r\n'
        );
      }
  
      output.writeAsStringSync(code);
      print('Generated file: ${output.path}');
    }
  }
  