|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wlai.client.ApplicationViewPublisher
This class provides utility methods for interacting with the AI client manager EJBs for doing common design time tasks. This class is helpful for other environments outside the standard design-time framework provided by WLI.
Constructor Summary | |
ApplicationViewPublisher()
|
Method Summary | |
static File |
createOrUpdateChannelFile(IApplicationViewDescriptor avd,
String appName,
File appRootDir)
Generate the .channel file for the given ApplicationView, and write it into the first available Schemas project within the app rooted at appRootDir. |
static File |
distributeApplicationViewResources(IApplicationViewDescriptor avd,
File srcRepositoryRootDir,
String appName,
File appRootDir,
File tempDir)
For the ApplicationView represented by the given descriptor, collect all the resources referenced in the descriptor from the given source directory, and distribute them to the given application directory (in the repository dir for the app) |
static File |
getSchemasDirectory(File[] files)
|
static boolean |
isApplicationViewPublished(QualifiedName appViewQName,
String appName,
File appRootDir)
Is the ApplicationView given by appViewQName already published to the application given by appName and appRootDir? |
static boolean |
isWebAppProject(File projectDir)
|
static void |
main(String[] args)
|
static void |
printUsage()
|
static File |
publishApplicationView(IApplicationViewDescriptor avd,
boolean containerManagedSignOnEnabled,
File srcRepositoryRootDir,
String appName,
File appRootDir)
Compile and publish the given application view descriptor, given by the avd argument, to the J2EE app given by appName, and appRootDir. |
static File |
publishApplicationView(String appViewQName,
boolean containerManagedSignOnEnabled,
File srcRepositoryRootDir,
String appName,
File appRootDir)
Compile and publish the application view, with the given qualified name, to the J2EE app given by appName, and appRootDir. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationViewPublisher()
Method Detail |
public static File publishApplicationView(String appViewQName, boolean containerManagedSignOnEnabled, File srcRepositoryRootDir, String appName, File appRootDir) throws com.bea.wlai.client.DeploymentException
appViewQName
- The qualified name for the ApplicationView to publish.containerManagedSignOnEnabled
- If true, enable container-managed
sign-on for this ApplicationView.srcRepositoryRootDir
- The root directory of the AI repository from
which the ApplicationView artifacts will be retrieved during the
publish process.appName
- The name of the J2EE application that will receive the
newly published ApplicationView.appRootDir
- The root directory of the destination J2EE
application
DeploymentException
- If any communication error with the servlet
occurs, or the deployment fails for any reason.public static File publishApplicationView(IApplicationViewDescriptor avd, boolean containerManagedSignOnEnabled, File srcRepositoryRootDir, String appName, File appRootDir) throws com.bea.wlai.client.DeploymentException
avd
- The deployment descriptor documentcontainerManagedSignOnEnabled
- If true, enable container-managed
sign-on for this ApplicationView.srcRepositoryRootDir
- The root directory of the AI repository from
which the ApplicationView artifacts will be retrieved during the
publish process.appName
- The name of the J2EE application that will receive the
newly published ApplicationView.appRootDir
- The root directory of the destination J2EE
application
DeploymentException
- If any communication error with the servlet
occurs, or the deployment fails for any reason.public static boolean isApplicationViewPublished(QualifiedName appViewQName, String appName, File appRootDir)
public static File distributeApplicationViewResources(IApplicationViewDescriptor avd, File srcRepositoryRootDir, String appName, File appRootDir, File tempDir) throws com.bea.wlai.client.DeploymentException
avd
- The AppView descriptor to handle distribution forsrcRepositoryRootDir
- The source directory for gathering resourcesappName
- The target application's nameappRootDir
- The target app's root directorytempDir
- A temporary directory this method can use to generate temp
working files.
DeploymentException
- If any error occurs collecting or distributing
resources.public static File createOrUpdateChannelFile(IApplicationViewDescriptor avd, String appName, File appRootDir) throws com.bea.wlai.client.DeploymentException
com.bea.wlai.client.DeploymentException
public static boolean isWebAppProject(File projectDir)
public static File getSchemasDirectory(File[] files)
public static void printUsage()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |