Tabnine Logo
ApplicationModel.setApplicationName
Code IndexAdd Tabnine to your IDE (free)

How to use
setApplicationName
method
in
org.jboss.windup.graph.model.ApplicationModel

Best Java code snippets using org.jboss.windup.graph.model.ApplicationModel.setApplicationName (Showing top 3 results out of 315)

origin: windup/windup

/**
 * Gets the project model used for shared libraries (libraries duplicated in multiple places within one or
 * more applications).
 */
public ProjectModel getOrCreateSharedLibsProject()
{
  ProjectService service = new ProjectService(getGraphContext());
  ProjectModel sharedLibsProject = service.getByUniqueID(SHARED_LIBS_UNIQUE_ID);
  if (sharedLibsProject == null)
  {
    sharedLibsProject = service.create();
    sharedLibsProject.setName(SHARED_LIBS_APP_NAME);
    sharedLibsProject.setUniqueID(SHARED_LIBS_UNIQUE_ID);
    sharedLibsProject.setProjectType(ProjectModel.TYPE_VIRTUAL);
    // attach a directory to it, as we generally assume that all projects have a location on disk
    Path archivesDirectory = WindupConfigurationService.getArchivesPath(getGraphContext());
    Path sharedLibsPath = archivesDirectory.resolve("shared-libs-" + RandomStringUtils.randomAlphabetic(6)).resolve(SHARED_LIBS_FILENAME);
    PathUtil.createDirectory(sharedLibsPath, "shared libs virtual app");
    FileModel sharedLibsFileModel = new FileService(getGraphContext()).createByFilePath(sharedLibsPath.toString());
    ApplicationModel applicationModel = GraphService.addTypeToModel(getGraphContext(), sharedLibsFileModel, ApplicationModel.class);
    applicationModel.setApplicationName(SHARED_LIBS_FILENAME);
    sharedLibsProject.setRootFileModel(sharedLibsFileModel);
    sharedLibsProject.addFileModel(sharedLibsFileModel);
    // attach this to the configuration, so that reporting treats it as a standalone app
    WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(getGraphContext());
    configuration.addInputPath(sharedLibsFileModel);
  }
  return sharedLibsProject;
}
origin: org.jboss.windup.graph/windup-graph-api

/**
 * Gets the project model used for shared libraries (libraries duplicated in multiple places within one or
 * more applications).
 */
public ProjectModel getOrCreateSharedLibsProject()
{
  ProjectService service = new ProjectService(getGraphContext());
  ProjectModel sharedLibsProject = service.getByUniqueID(SHARED_LIBS_UNIQUE_ID);
  if (sharedLibsProject == null)
  {
    sharedLibsProject = service.create();
    sharedLibsProject.setName(SHARED_LIBS_APP_NAME);
    sharedLibsProject.setUniqueID(SHARED_LIBS_UNIQUE_ID);
    sharedLibsProject.setProjectType(ProjectModel.TYPE_VIRTUAL);
    // attach a directory to it, as we generally assume that all projects have a location on disk
    Path archivesDirectory = WindupConfigurationService.getArchivesPath(getGraphContext());
    Path sharedLibsPath = archivesDirectory.resolve("shared-libs-" + RandomStringUtils.randomAlphabetic(6)).resolve(SHARED_LIBS_FILENAME);
    PathUtil.createDirectory(sharedLibsPath, "shared libs virtual app");
    FileModel sharedLibsFileModel = new FileService(getGraphContext()).createByFilePath(sharedLibsPath.toString());
    ApplicationModel applicationModel = GraphService.addTypeToModel(getGraphContext(), sharedLibsFileModel, ApplicationModel.class);
    applicationModel.setApplicationName(SHARED_LIBS_FILENAME);
    sharedLibsProject.setRootFileModel(sharedLibsFileModel);
    sharedLibsProject.addFileModel(sharedLibsFileModel);
    // attach this to the configuration, so that reporting treats it as a standalone app
    WindupConfigurationModel configuration = WindupConfigurationService.getConfigurationModel(getGraphContext());
    configuration.addInputPath(sharedLibsFileModel);
  }
  return sharedLibsProject;
}
origin: windup/windup

  applicationModelService.addTypeToModel(applicationModel).setApplicationName(applicationModel.getFileName());
});
  ApplicationModel applicationModel = applicationModelService.addTypeToModel(fileModel);
  if (i < applicationNames.size())
    applicationModel.setApplicationName(applicationNames.get(i));
  else
    applicationModel.setApplicationName(fileModel.getFileName());
org.jboss.windup.graph.modelApplicationModelsetApplicationName

Popular methods of ApplicationModel

    Popular in Java

    • Creating JSON documents from java classes using gson
    • onCreateOptionsMenu (Activity)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • compareTo (BigDecimal)
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • Runnable (java.lang)
      Represents a command that can be executed. Often used to run code in a different Thread.
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • IsNull (org.hamcrest.core)
      Is the value null?
    • Top 12 Jupyter Notebook extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now