org.codehaus.mojo.weblogic.util
Class WeblogicMojoUtilities

java.lang.Object
  extended by org.codehaus.mojo.weblogic.util.WeblogicMojoUtilities

public class WeblogicMojoUtilities
extends Object

This class contains some utilities that are useful during use of the Weblogic Mojo.

Version:
$Id: ListAppsMojo.java 2166 2006-07-18 21:32:16Z carlos $
Author:
Scott Ryan

Method Summary
static String getAdminUrl(String inProtocol, String inServerName, String inServerPort)
          This method will contstruct the Admin URL to the given server.
static String getDependencies(Set inArtifacts)
          This method will get the dependencies from the pom and construct a classpath string to be used to run a mojo where a classpath is required.
static String updateArtifactName(String inName, String inProjectPackaging)
          This method will make sure there is a type appended to the file name and if it is the appropriate type for the project packaging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAdminUrl

public static String getAdminUrl(String inProtocol,
                                 String inServerName,
                                 String inServerPort)
This method will contstruct the Admin URL to the given server.

Parameters:
inProtocol - The protocol to contact the server with (i.e. t3 or http)
inServerName - The name of the server to contact.
inServerPort - The listen port for the server to contact.
Returns:
The value of admin url.

updateArtifactName

public static String updateArtifactName(String inName,
                                        String inProjectPackaging)
This method will make sure there is a type appended to the file name and if it is the appropriate type for the project packaging. If the project packaging is ear the artifact must end in .ear. If the project packaging is war then the artifact must end in .war. If the project packaging is ejb then the artifact must end in .jar.

Parameters:
inName - The name of the artifact.
inProjectPackaging - The type of packaging for this project.
Returns:
The updated artifact name.

getDependencies

public static String getDependencies(Set inArtifacts)
This method will get the dependencies from the pom and construct a classpath string to be used to run a mojo where a classpath is required.

Parameters:
inArtifacts - The Set of artifacts for the pom being run.
Returns:
A string representing the current classpath for the pom.


Copyright © 2005-2008 Codehaus. All Rights Reserved.