Codota Logo
ModuleManagementTool.setVerbose
Code IndexAdd Codota to your IDE (free)

How to use
setVerbose
method
in
org.alfresco.repo.module.tool.ModuleManagementTool

Best Java code snippets using org.alfresco.repo.module.tool.ModuleManagementTool.setVerbose (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: Alfresco/alfresco-sdk

mmt.setVerbose(verbose);
origin: org.alfresco/alfresco-repository

    if (OPTION_VERBOSE.equals(option) == true)
      manager.setVerbose(true);
      manager.setVerbose(true);
      manager.setVerbose(true);
manager.setVerbose(true);
manager.uninstallModule(moduleId, warLocation,preview, purge);
System.exit(SUCCESS_EXIT_CODE);
origin: Alfresco/alfresco-repository

public void testWhiteSpaceInCustomMapping()
      throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");
  String ampLocation = getFileLocation(".amp", "module/test_v3.amp");
  
  // Initial install of module
  this.manager.installModule(ampLocation, warLocation, false, false, true);
  
  List<String> files = new ArrayList<String>(10);
  files.add("/WEB-INF/classes/alfresco/module/test/module.properties");
  files.add("/WEB-INF/classes/alfresco/module/test/modifications.install");
  files.add("/WEB-INF/lib/test.jar");
  files.add("/WEB-INF/classes/alfresco/module/test/module-context.xml");
  files.add("/images/test.jpg");
  files.add("/css/test.css");
  files.add("/extra.txt");
  checkForFileExistance(warLocation, files);   
}

origin: Alfresco/alfresco-repository

    if (OPTION_VERBOSE.equals(option) == true)
      manager.setVerbose(true);
      manager.setVerbose(true);
      manager.setVerbose(true);
manager.setVerbose(true);
manager.uninstallModule(moduleId, warLocation,preview, purge);
System.exit(SUCCESS_EXIT_CODE);
origin: Alfresco/alfresco-repository

public void testPreviewInstall()
  throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");
  String ampLocation = getFileLocation(".amp", "module/test_v1.amp");
  
  // Initial install of module
  this.manager.installModule(ampLocation, warLocation, true, false, true);
  
  // TODO need to prove that the war file has not been updated in any way
}

origin: Alfresco/alfresco-repository

public void testUninstall()
  throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");
  String ampLocation = getFileLocation(".amp", "module/test_v1.amp");
  
  // Initial install of module
  this.manager.installModule(ampLocation, warLocation, false, false, false);
  this.manager.listModules(warLocation);
  this.manager.uninstallModule("test", warLocation, false, false);
  
  List<String> files = new ArrayList<String>(10);
  files.add("/WEB-INF/classes/alfresco/module/test/module.properties");
  files.add("/WEB-INF/classes/alfresco/module/test/modifications.install");
  files.add("/WEB-INF/lib/test.jar");
  files.add("/WEB-INF/classes/alfresco/module/test/module-context.xml");
  checkForFileNonExistance(warLocation, files);  
}

origin: Alfresco/alfresco-repository

public void testInstallFromDir()
  throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");
  String ampLocation = getFileLocation(".amp", "module/test_v1.amp");
  String ampV2Location = getFileLocation(".amp", "module/test_v2.amp");
  int index = ampV2Location.lastIndexOf(File.separator);
  System.out.println(index);
  String directoryLocation = ampV2Location.substring(0, index);
  
  try
  {
    this.manager.installModules(directoryLocation, warLocation);
  }
  catch (ModuleManagementToolException exception)
  {
    exception.printStackTrace();
    System.out.println("Expected failure: " + exception.getMessage());
  }
}

origin: Alfresco/alfresco-repository

public void testBasicInstall()
  throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");
  String ampLocation = getFileLocation(".amp", "module/test_v1.amp");
  String ampV2Location = getFileLocation(".amp", "module/test_v2.amp");
  
  installerSharedTests(warLocation, ampLocation, ampV2Location);        
}
origin: Alfresco/alfresco-sdk

mmt.setVerbose(false);
origin: Alfresco/alfresco-repository

public void testExistingFilesInWar() throws Exception
{
  manager.setVerbose(true);
  
  String warLocation = getFileLocation(".war", "module/test.war");   //Version 4.0.1
  String ampLocation = getFileLocation(".amp", "module/test_v4.amp");
  
  try
  {
   this.manager.installModule(ampLocation, warLocation, false, false, true);
  }
  catch(ModuleManagementToolException exception)
  {
    assertTrue(exception.getMessage().contains("will overwrite an existing file in the war"));
  }
  
  this.manager.installModule(ampLocation, warLocation, false, true, true);  //Now force it
  checkContentsOfFile(warLocation + "/jsp/relogin.jsp", "VERSIONONE");
  checkContentsOfFile(warLocation + "/css/main.css", "p{margin-bottom:1em;}");
  this.manager.installModule(ampLocation, warLocation, false, true, false); //install it again
}

origin: Alfresco/alfresco-repository

public void testDependencySuccess() throws Exception
  manager.setVerbose(true);
origin: Alfresco/alfresco-repository

public void testForcedInstall()
  throws Exception
  manager.setVerbose(true);
origin: Alfresco/alfresco-repository

public void testBasicFolderInstall() throws Exception
{
  manager.setVerbose(true);
  String warDirectory = extractToDir(".war", "module/test.war");
  String ampDirectory = extractToDir(".amp", "module/test_v1.amp");
  String ampV2Directory = getFileLocation(".amp", "module/test_v2.amp");
  assertNotNull(warDirectory);
  assertNotNull(ampDirectory);  
  assertNotNull(ampV2Directory);         
  installerSharedTests(warDirectory, ampDirectory, ampV2Directory);
  
  //Now try it on share
  warDirectory = extractToDir(".war", "module/share-3.4.11.war");
  assertNotNull(warDirectory);
  assertNotNull(ampDirectory);  
  this.manager.installModule(ampDirectory, warDirectory);
  
  warDirectory = extractToDir(".war", "module/share-4.2.a.war");
  assertNotNull(warDirectory);
  String ampV2Location = getFileLocation(".amp", "module/test_v6.amp");
  this.manager.installModule(ampV2Location, warDirectory);
}

org.alfresco.repo.module.toolModuleManagementToolsetVerbose

Javadoc

Sets the verbose setting for the mangement tool

Popular methods of ModuleManagementTool

  • installModule
    Installs a given AMP file into a given WAR file.
  • installModules
  • <init>
    Constructor
  • listModules
    Lists all the currently installed modules in the WAR
  • uninstallModule
    Cleans the WAR file of all files relating to the currently installed version of the the Module.
  • backupWar
    Backsup a given WAR file.
  • calculateChanges
  • calculateCopyToWar
    Copies a file from the AMP location to the correct location in the WAR, interating on directories wh
  • generateGuid
    Generates a GUID, avoiding undesired imports.
  • getCustomFileMappings
  • outputErrorMessage
    Outputs a message the console (in verbose mode).
  • outputMessage
    Outputs a message the console. Errors are always output, but others are only output in verbose mode.
  • outputErrorMessage,
  • outputMessage,
  • outputUsage,
  • outputVerboseMessage,
  • removeFile,
  • uninstallIfNecessary

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BoxLayout (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now