Class FileGenerationUtil
- java.lang.Object
 - 
- jetbrains.mps.generator.fileGenerator.FileGenerationUtil
 
 
- 
@Deprecated public class FileGenerationUtil extends Object
Deprecated.This class doesn't respect overridden output location (GeneratableSModel.isGenerateIntoModelFolder()nor does it tell anything about where to takeoutputRootDirfrom (assumes it comes fromjetbrains.mps.project.SModuleOperations#getOutputRoot(SModel)while it's common to see invocations ofgetDefaultOutputDir(SModel, IFile)with((AbstractModule) module).getOutputPath()TODO remove once 3.5 is out as replacement API,GenerationTargetFacet, has been introduced in 3.5 and there's no legitimate way to get rid of used of the class prior to that. Uses of the class in MPS code are implementation dependencies and shall get refactored one the class is gone (either copy implementation or drop transitional uses). 
- 
- 
Constructor Summary
Constructors Constructor Description FileGenerationUtil()Deprecated. 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IFilegetCachesDir(IFile outputRoot)Deprecated.static StringgetCachesPath(String outputRoot)Deprecated.static IFilegetDefaultOutputDir(SModelReference reference, IFile outputRootDir)Deprecated.Returns a (sub-)subdirectory of outputRootDir matching the reference model package.static IFilegetDefaultOutputDir(SModel model, IFile outputRootDir)Deprecated. 
 - 
 
- 
- 
Method Detail
- 
getDefaultOutputDir
public static IFile getDefaultOutputDir(SModel model, @NotNull IFile outputRootDir)
Deprecated. 
- 
getDefaultOutputDir
public static IFile getDefaultOutputDir(SModelReference reference, @NotNull IFile outputRootDir)
Deprecated.Returns a (sub-)subdirectory of outputRootDir matching the reference model package. 
 - 
 
 -