mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
generate 'ant' tasks instead of 'antcall' for post/pre processing tasks (IDEA-65622)
This commit is contained in:
@@ -47,8 +47,10 @@ public class ArtifactsGenerator {
|
||||
private final PackagingElementResolvingContext myResolvingContext;
|
||||
private final ArtifactAntGenerationContextImpl myContext;
|
||||
private final List<Artifact> myAllArtifacts;
|
||||
private final GenerationOptions myGenOptions;
|
||||
|
||||
public ArtifactsGenerator(Project project, GenerationOptions genOptions) {
|
||||
myGenOptions = genOptions;
|
||||
myResolvingContext = ArtifactManager.getInstance(project).getResolvingContext();
|
||||
|
||||
myAllArtifacts = new ArrayList<Artifact>(Arrays.asList(ArtifactManager.getInstance(project).getSortedArtifacts()));
|
||||
@@ -174,7 +176,7 @@ public class ArtifactsGenerator {
|
||||
|
||||
private void generateTasksForArtifacts(Artifact artifact, Target artifactTarget, final boolean preprocessing) {
|
||||
for (ChunkBuildExtension extension : ChunkBuildExtension.EP_NAME.getExtensions()) {
|
||||
extension.generateTasksForArtifact(myResolvingContext.getProject(), artifact, preprocessing, artifactTarget);
|
||||
extension.generateTasksForArtifact(artifact, preprocessing, myResolvingContext.getProject(), myGenOptions, artifactTarget);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ public abstract class ChunkBuildExtension {
|
||||
public void generateProperties(final PropertyFileGenerator generator, final Project project, final GenerationOptions options) {
|
||||
}
|
||||
|
||||
public void generateTasksForArtifact(Project project, Artifact artifact, boolean preprocessing, CompositeGenerator generator) {
|
||||
public void generateTasksForArtifact(Artifact artifact, boolean preprocessing, Project project, GenerationOptions genOptions,
|
||||
CompositeGenerator generator) {
|
||||
}
|
||||
|
||||
public List<String> getCleanTargetNames(Project project, GenerationOptions genOptions) {
|
||||
|
||||
Reference in New Issue
Block a user