| java.lang.Object org.netbeans.modules.ruby.railsprojects.RailsProjectUtil
RailsProjectUtil | public class RailsProjectUtil (Code) | | Miscellaneous utilities for the Rails project module.
author: Jiri Rechtacek |
Method Summary | |
public static void | getAllScripts(String prefix, FileObject sourcesRoot, List<String> result) | public static Object | getEvaluatedProperty(Project p, String value) Returns the property value evaluated by RailsProject's PropertyEvaluator. | public static String | getRailsVersion(Project project) | public static URL | getRootURL(File root, String offset) Creates an URL of a classpath or sourcepath root
For the existing directory it returns the URL obtained from
File.toUri For archive file it returns an URL of the root of the archive file
For non existing directory it fixes the ending '/'
Parameters: root - the file of a root Parameters: offset - a path relative to the root file or null (eg. | public static String | getVersionString(File versionFile) |
getAllScripts | public static void getAllScripts(String prefix, FileObject sourcesRoot, List<String> result)(Code) | | |
getEvaluatedProperty | public static Object getEvaluatedProperty(Project p, String value)(Code) | | Returns the property value evaluated by RailsProject's PropertyEvaluator.
Parameters: p - project Parameters: value - of property evaluated value of given property or null if the property not set orif the project doesn't provide RakeProjectHelper |
getRailsVersion | public static String getRailsVersion(Project project)(Code) | | |
getRootURL | public static URL getRootURL(File root, String offset) throws MalformedURLException(Code) | | Creates an URL of a classpath or sourcepath root
For the existing directory it returns the URL obtained from
File.toUri For archive file it returns an URL of the root of the archive file
For non existing directory it fixes the ending '/'
Parameters: root - the file of a root Parameters: offset - a path relative to the root file or null (eg. src/ for jar:file:///lib.jar!/src/)" an URL of the root throws: MalformedURLException - if the URL cannot be created |
getVersionString | public static String getVersionString(File versionFile)(Code) | | Get the version string out of a ruby version.rb file
|
|
|