Class 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 take outputRootDir from (assumes it comes from jetbrains.mps.project.SModuleOperations#getOutputRoot(SModel) while it's common to see invocations of getDefaultOutputDir(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 Detail

      • FileGenerationUtil

        public FileGenerationUtil()
        Deprecated.
    • Method Detail

      • getCachesPath

        public static String getCachesPath​(String outputRoot)
        Deprecated.
      • getCachesDir

        public static IFile getCachesDir​(IFile outputRoot)
        Deprecated.
      • 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.