瀏覽代碼

gradle 1.0-M3 update - AspectJPlugin to integrate with GenerateEclipseProject instead of GenerateEclipseClasspath

Rob Winch 14 年之前
父節點
當前提交
f37f5d43bc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy

+ 2 - 1
buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy

@@ -9,6 +9,7 @@ import org.gradle.api.tasks.SourceSet
 import org.gradle.api.DefaultTask
 import org.gradle.api.GradleException
 
+import org.gradle.plugins.ide.eclipse.GenerateEclipseProject
 import org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath
 import org.gradle.plugins.ide.eclipse.model.BuildCommand
 import org.gradle.tooling.model.ProjectDependency
@@ -52,7 +53,7 @@ class AspectJPlugin implements Plugin<Project> {
             aspectPath = project.files(project.configurations.aspectpath, project.jar.archivePath)
         }
 
-        project.tasks.withType(GenerateEclipseClasspath).all {
+        project.tasks.withType(GenerateEclipseProject).all {
             whenConfigured { p ->
                 p.natures.add(0, 'org.eclipse.ajdt.ui.ajnature')
                 p.buildCommands = [new BuildCommand('org.eclipse.ajdt.core.ajbuilder',[:])]