Esempio n. 1
0
def DeployToTarget(packageName,
                   fullPathToPackage,
                   target,
                   targetType="server",
                   upload=True):
    print 'Deploying:' + packageName + ' to target : ' + target + '...'
    wlst.deploy(packageName,
                fullPathToPackage,
                targets='com.bea:Name=' + target + ',Type=' + targetType,
                upload='true')
    print 'Deploying:' + packageName + ' to target : ' + target + '...end.'
def deploy_application(application_name, *args, **kwargs):
    """
    Deploy the application in the connected domain.
    :param application_name: the application name
    :param args: the positional arguments to the WLST function
    :param kwargs: the keywork arguments to the WLST function
    :return: progress object (depends on whether it is blocked)
    :raises: PyWLSTException: if a WLST error occurs
    """
    _method_name = 'deploy_application'
    _logger.entering(application_name, args, kwargs, class_name=_class_name, method_name=_method_name)

    try:
        result = wlst.deploy(application_name, *args, **kwargs)
    except wlst.WLSTException, e:
        pwe = exception_helper.create_pywlst_exception('WLSDPLY-00058', application_name, args, kwargs,
                                                       _format_exception(e), error=e)
        _logger.throwing(class_name=_class_name, method_name=_method_name, error=pwe)
        raise pwe
Esempio n. 3
0
def deploy(appName, path, map):
    return wlst.deploy(appName, path, **map)