X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=blobdiff_plain;f=platform%2Fexternal-system-api%2Fsrc%2Fcom%2Fintellij%2Fopenapi%2FexternalSystem%2Fmodel%2Fproject%2FModuleData.java;h=4179681ab59ba6594a789320c3ca0568eb230f86;hp=0dd514a23718fac3a166dbb5fd74aa89d6dd89ee;hb=8d7d8a03842dd0b266ac42073d0d5356d0a64e40;hpb=13556f976c5eb87078da14078628221c6db229a1;ds=sidebyside diff --git a/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/project/ModuleData.java b/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/project/ModuleData.java index 0dd514a23718..4179681ab59b 100644 --- a/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/project/ModuleData.java +++ b/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/project/ModuleData.java @@ -33,6 +33,7 @@ public class ModuleData extends AbstractNamedData implements Named, ExternalConf @Nullable private String[] myIdeModuleGroup; @Nullable private String mySourceCompatibility; @Nullable private String myTargetCompatibility; + @Nullable private String myProductionModuleId; private boolean myInheritProjectCompileOutputPath = true; @@ -97,6 +98,19 @@ public class ModuleData extends AbstractNamedData implements Named, ExternalConf myModuleFileDirectoryPath = path; } + /** + * @return an internal id of production module corresponding to a test-only module, this information is used to populate + * {@link com.intellij.openapi.roots.TestModuleProperties} + */ + @Nullable + public String getProductionModuleId() { + return myProductionModuleId; + } + + public void setProductionModuleId(@Nullable String productionModuleId) { + myProductionModuleId = productionModuleId; + } + public boolean isInheritProjectCompileOutputPath() { return myInheritProjectCompileOutputPath; }