mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Updated gradle build so that eclipse is configured for AJDT
This commit is contained in:
parent
8978a3af3d
commit
bd53ff1832
@ -50,3 +50,17 @@ class Ajc extends DefaultTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(hasProperty('eclipseProject')) {
|
||||
eclipseProject.whenConfigured { project ->
|
||||
project.natures.add(0, 'org.eclipse.ajdt.ui.ajnature')
|
||||
project.buildCommands = [new org.gradle.plugins.eclipse.model.BuildCommand('org.eclipse.ajdt.core.ajbuilder',[:])]
|
||||
}
|
||||
}
|
||||
|
||||
if(hasProperty('eclipseClasspath')) {
|
||||
eclipseClasspath.withXml { xml ->
|
||||
def ssa = xml.asNode().'classpathentry'.find { it.@path == '/spring-security-aspects' }
|
||||
ssa?.appendNode('attributes')?.appendNode('attribute',[name:'org.eclipse.ajdt.aspectpath',value:'org.eclipse.ajdt.aspectpath'])
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user