public class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
expandVars(String expression,
Map<?,?> properties)
Expands any variable found in the given expression with the values in the
given map.
|
static File |
getFile(URL url) |
static File |
getFile(org.jboss.virtual.VirtualFile vf)
Try to convert a virtual file to a real java file.
|
static File |
getJarFile(URL url) |
static File |
getRealHomeDir(org.jboss.virtual.VirtualFile vf) |
static File |
getRealHomeDir(org.jboss.virtual.VirtualFile vf,
long lastModified)
Unzip only if the given lastModified is greater than the already unzipped
home (if any).
|
static String[] |
split(String str,
char delimiter,
boolean trim) |
static File |
tryGetFile(URL url) |
public static File getFile(org.jboss.virtual.VirtualFile vf) throws Exception
Exception
public static File getRealHomeDir(org.jboss.virtual.VirtualFile vf) throws Exception
Exception
public static File getRealHomeDir(org.jboss.virtual.VirtualFile vf, long lastModified) throws Exception
Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.