Class ModuleProject

java.lang.Object
com.iizix.server.devel.ModuleProject

public class ModuleProject extends Object
Class used to load an IIZI Module project from a directory for the Server when running as an Eclipse Run Configuration.
Author:
Christopher Mindus
  • Field Details

    • MODULE_DIRECTORY_NAME

      public static final String MODULE_DIRECTORY_NAME
      The Module project subdirectory name: "iiziModule".
      See Also:
    • MODULE_PROJECT_FILE_NAME

      public static final String MODULE_PROJECT_FILE_NAME
      The Module project settings file name: ".iiziModuleProject";
      See Also:
  • Constructor Details

    • ModuleProject

      public ModuleProject()
  • Method Details

    • readProjectName

      public static String readProjectName(File dir) throws IOException
      Reads the name of a Module project from the Eclipse ".project" file of its directory: it contains the original name of the project, used in all references, which may differ from the directory name.
      Parameters:
      dir - The directory containing the ".project" file.
      Returns:
      The project name.
      Throws:
      IOException - If the ".project" file cannot be loaded or parsed.
    • loadAppDistributionProps

      public static ServerAppDistributionProps loadAppDistributionProps(IAppLoader loader, File dir) throws IOException, PropException
      Loads the App Distribution properties of a Module project directory, the ".iiziApp" file, without loading the project (CC-FIX-APP-MODULE-REFERENCES: its modules list names the Module projects the project references).
      Parameters:
      loader - The loader instance.
      dir - The directory containing the ".iiziApp" file.
      Returns:
      The properties, or null when the directory has no ".iiziApp" file.
      Throws:
      IOException - For file errors.
      PropException - For property errors, or if the file is not an App Distribution properties file.
    • loadModuleProject

      public static ModuleProjectPropCnr loadModuleProject(IAppLoader loader, File dir, HotDeploy hotDeploy, boolean isVerbose) throws IOException, PropException
      Loads an IIZI Module project that consists of discrete files in a directory structure.
      Parameters:
      loader - The loader instance.
      dir - The directory containing the ".project" file, the ".iiziModuleProject" project file, and optionally the ".iiziPush" and ".iiziPWA" files (Push Notification and Progressive Web App respectively).
      hotDeploy - The hot deploy instance for the app, null for cold deploy.
      isVerbose - Verbose output.
      Throws:
      IOException - For file errors.
      PropException - For property errors.