Skip to content

Commit

Permalink
Align aspectj documentation and implementation
Browse files Browse the repository at this point in the history
see #117
  • Loading branch information
larsgrefer committed Oct 2, 2019
1 parent a009992 commit 70d103f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public class AjcAction implements Action<Task> {

private final AspectJCompileOptions options;

public void options(Action<AspectJCompileOptions> action) {
action.execute(getOptions());
}

@Getter(AccessLevel.NONE)
private final JavaExecHandleFactory javaExecHandleFactory;

Expand All @@ -44,7 +48,6 @@ public AjcAction(ObjectFactory objectFactory, JavaExecHandleFactory javaExecHand
this.javaExecHandleFactory = javaExecHandleFactory;
}


void addToTask(Task task) {
task.doLast("ajc", this);
task.getExtensions().add("ajc", this);
Expand Down
8 changes: 8 additions & 0 deletions examples/aspectj/weaving/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ compileTestKotlin {
jvmTarget = "1.8"
}
}

compileJava {
ajc {
options {
compilerArgs += "-noImportError"
}
}
}
2 changes: 1 addition & 1 deletion src/docs/asciidoc/_aspectj.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ compileJava {
classpath = configurations.aspectj //<2>
options {
aspectpath = configurations.aspect //<3>
compilerArgs = [] = //<4>
compilerArgs = [] //<4>
}
}
}
Expand Down

0 comments on commit 70d103f

Please sign in to comment.