All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hudsonci.plugins.deploy.weblogic.util.DeployerClassPathUtils Maven / Gradle / Ivy

Go to download

This plugin deploy artifacts built on a CI server Hudson to a weblogic target (managed server, cluster ...) as an application or a library component.

The newest version!
/**
 * 
 */
package org.hudsonci.plugins.deploy.weblogic.util;

import org.codehaus.plexus.util.FileUtils;
import org.hudsonci.plugins.deploy.weblogic.properties.WebLogicDeploymentPluginConstantes;

/**
 * @author rchaumie
 *
 */
public class DeployerClassPathUtils {

	/**
	 * 
	 * @return
	 */
	public static boolean checkDefaultPathToWebLogicJar() {
		return FileUtils.fileExists(getDefaultPathToWebLogicJar());
	}
	
	/**
	 * 
	 * @return
	 */
	public static String getDefaultPathToWebLogicJar() {
		String envWlHome = System.getenv(WebLogicDeploymentPluginConstantes.WL_HOME_ENV_VAR_NAME);
		return FileUtils.normalize(envWlHome+WebLogicDeploymentPluginConstantes.WL_HOME_LIB_DIR+WebLogicDeploymentPluginConstantes.WL_WEBLOGIC_LIBRARY_NAME);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy