public class EclipseIni extends Object
Api for manipulating eclipse.ini, see Eclipse docs for more details.
Constructor and Description |
---|
EclipseIni() |
Modifier and Type | Method and Description |
---|---|
String |
getAfter(String input)
Returns the line after the given line, and ensures that the returned value does not start with a dash.
|
String[] |
getLinesAsArray()
Returns all lines as an array.
|
static EclipseIni |
parseFrom(File file)
Parses an eclipse.ini from the given file.
|
void |
set(String key,
File file)
Sets the given property to a file.
|
void |
set(String key,
String value)
Sets a property, replacing its existing value or inserting just before vmargs.
|
void |
vmargs(String... vmargs)
Sets the vmargs arguments, such as
-Xmx2g to set the maximum heap size. |
void |
writeTo(File file)
Writes this eclipse.ini out to a file.
|
public static EclipseIni parseFrom(File file) throws FileNotFoundException, IOException
Parses an eclipse.ini from the given file.
FileNotFoundException
IOException
public void writeTo(File file) throws FileNotFoundException
Writes this eclipse.ini out to a file.
FileNotFoundException
public String getAfter(String input)
Returns the line after the given line, and ensures that the returned value does not start with a dash.
public String[] getLinesAsArray()
Returns all lines as an array.
public void set(String key, String value)
Sets a property, replacing its existing value or inserting just before vmargs.
public void vmargs(String... vmargs)
Sets the vmargs arguments, such as -Xmx2g
to set the maximum heap size.