Extension SDK 9.0.5

oracle.jdeveloper.jsp.utils
Class WARUtil

java.lang.Object
  extended byoracle.jdeveloper.jsp.utils.WARUtil

public class WARUtil
extends java.lang.Object

The WARUtil class.


Constructor Summary
WARUtil()
           
 
Method Summary
static java.util.ArrayList expand(java.net.URL dir, java.net.URL war)
          Expand a WAR/Jar file in a directory.
static java.util.ArrayList expand(java.net.URL dir, java.net.URL war, java.lang.String[] suffixExcludes, java.lang.String[] nameExcludes)
          Expand a WAR/Jar file in a directory.
 boolean importWarToProject(java.net.URL war, JProject project, java.lang.String[] suffixExcludes, java.lang.String[] nameExcludes)
          This method adds files to the project
 boolean importWarToProject(java.net.URL war, JProject project, java.lang.String[] suffixExcludes, java.lang.String[] nameExcludes, boolean addToNavigator)
          This method adds files to the project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WARUtil

public WARUtil()
Method Detail

expand

public static java.util.ArrayList expand(java.net.URL dir,
                                         java.net.URL war)
                                  throws java.net.MalformedURLException,
                                         java.io.IOException
Expand a WAR/Jar file in a directory.

Parameters:
dir - destination directory
war - URL for the source WAR/JAR/ZIP file. Starting and ending "/" will be removed
Throws:
java.net.MalformedURLException
java.io.IOException

importWarToProject

public boolean importWarToProject(java.net.URL war,
                                  JProject project,
                                  java.lang.String[] suffixExcludes,
                                  java.lang.String[] nameExcludes)
                           throws java.io.IOException
This method adds files to the project

Throws:
java.io.IOException

importWarToProject

public boolean importWarToProject(java.net.URL war,
                                  JProject project,
                                  java.lang.String[] suffixExcludes,
                                  java.lang.String[] nameExcludes,
                                  boolean addToNavigator)
                           throws java.io.IOException
This method adds files to the project

Throws:
java.io.IOException

expand

public static java.util.ArrayList expand(java.net.URL dir,
                                         java.net.URL war,
                                         java.lang.String[] suffixExcludes,
                                         java.lang.String[] nameExcludes)
                                  throws java.net.MalformedURLException,
                                         java.io.IOException
Expand a WAR/Jar file in a directory.

Parameters:
dir - destination directory
war - URL for the source WAR/JAR/ZIP file. Starting and ending "/" will be removed
Throws:
java.net.MalformedURLException
java.io.IOException

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.