summaryrefslogtreecommitdiff
path: root/jps/model-serialization/src/org/jetbrains/jps/model/serialization/JpsPathMacroContributor.java
blob: 39dcfde76c2bc7e8088deffd6f18ff93df8b08fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.jps.model.serialization;

import org.jetbrains.annotations.NotNull;

import java.util.Map;

/**
 * <p>
 *   This is an alternative Path Macro contributor specifically for JPS.
 * </p>
 * <p>
 *   Note: all path macros contributed by {@link com.intellij.openapi.application.PathMacroContributor} are already handled by the JPS.
 *   Contrary, path macros contributed by {@link com.intellij.openapi.components.impl.ProjectWidePathMacroContributor} are not
 *   automatically handled by the JPS so in such cases you may want to use this {@link JpsPathMacroContributor}
 * </p>
 *
 * @see com.intellij.openapi.components.impl.ProjectWidePathMacroContributor
 */
public interface JpsPathMacroContributor {
  /**
   * You are supposed to pass path macros into JPS process via System properties. You can pass custom
   * System properties to the JPS process using {@link com.intellij.compiler.server.BuildProcessParametersProvider}
   */
  @NotNull Map<@NotNull String, @NotNull String> getPathMacros();
}