| java.lang.Object org.netbeans.modules.web.project.Utils
Utils | public class Utils (Code) | | |
SPECIFICATION_J2SE | final public static String SPECIFICATION_J2SE(Code) | | |
correctDebugClassPath | public static String correctDebugClassPath(String debugClassPath)(Code) | | Correct given classpath, that means remove obsolete properties, add missing ones etc.
If the given parameter is null or empty, the default debug classpath is returned.
corrected classpath, never null . See Also: Utils.getDefaultClassPath() |
createDefaultContext | public static String createDefaultContext(String projectName)(Code) | | Create a valid default for context path from project name.
|
findJ2seJavaPlatform | public static JavaPlatform findJ2seJavaPlatform(String platformName)(Code) | | Searches Java platform according to platform name
Specification of the platform has to be J2SE
Parameters: platformName - related JavaPlatform object if found, otherwise null |
findJavaPlatform | public static JavaPlatform findJavaPlatform(String platformName)(Code) | | Searches Java platform according to platform name
The platform sepecification does not need to be J2SE
Parameters: platformName - related JavaPlatform object if found, otherwise null |
getDefaultDebugClassPath | public static String getDefaultDebugClassPath()(Code) | | Get the default value of the debug.classpath property.
the default value of the debug.classpath property. |
getGeneratedJavaResource | static String getGeneratedJavaResource(String jspUri)(Code) | | Returns a slash-delimited resource path for the servlet generated from
JSP, given a resource path of the original JSP. Uses code copied from Tomcat.
Note: does not handle tag files yet, only JSP files.
|
isParentOrEqual | public static boolean isParentOrEqual(File folder, File file)(Code) | | Recursively checks whether the file lies underneath or equals the folder
Parameters: folder - the root of folders hierarchy to search in Parameters: file - the file to search for true , if file lies somewhere underneath or equals the folder ,false otherwise |
toClasspathString | public static String toClasspathString(File[] classpathEntries)(Code) | | |
updateProperties | public static void updateProperties(AntProjectHelper h, String path, EditableProperties ep)(Code) | | Updates property file at given location of ant based project
Parameters: h - helper of the project Parameters: path - a relative URI in the project directory Parameters: ep - new or updated properties |
|
|