protected void setUp() throws Exception {
    super.setUp();
    origFactory = AspectJPlugin.getDefault().getCompilerFactory();
    AspectJPlugin.getDefault().setCompilerFactory(new MockCompilerFactory());

    Utils.setAutobuilding(true);

    proj2 = createPredefinedProject("ExportAsJar");
    AspectJCorePreferences.setProjectOutJar(proj2, "export.jar");
    proj2.build(IncrementalProjectBuilder.FULL_BUILD, null);
    proj1 = createPredefinedProject("JarOnInpath");
    waitForAutoBuild();
  }
 protected void tearDown() throws Exception {
   super.tearDown();
   Utils.setAutobuilding(true);
 }
 protected void setUp() throws Exception {
   super.setUp();
   Utils.setAutobuilding(false);
 }