|
From: <ls...@us...> - 2007-07-01 09:25:24
|
Revision: 3346
http://jnode.svn.sourceforge.net/jnode/?rev=3346&view=rev
Author: lsantha
Date: 2007-07-01 02:25:23 -0700 (Sun, 01 Jul 2007)
Log Message:
-----------
Simplified code.
Modified Paths:
--------------
trunk/fs/src/fs/org/jnode/fs/jfat/command/JGrubInstallCommand.java
Modified: trunk/fs/src/fs/org/jnode/fs/jfat/command/JGrubInstallCommand.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/jfat/command/JGrubInstallCommand.java 2007-07-01 09:07:44 UTC (rev 3345)
+++ trunk/fs/src/fs/org/jnode/fs/jfat/command/JGrubInstallCommand.java 2007-07-01 09:25:23 UTC (rev 3346)
@@ -53,27 +53,24 @@
public class JGrubInstallCommand implements Command {
static final DeviceArgument ARG_DEVICE = new DeviceArgument("device", "device where grub will be installed");
static final FileArgument ARG_DIR = new FileArgument("directory", "the directory for stage2 and menu.lst");
- static final OptionArgument TYPE = new OptionArgument("action",
- "Type parameter",
- new OptionArgument.Option[] { new OptionArgument.Option("-p",
- "Set the partition point for installing Stage2,menu.lst") });
- static final OptionArgument PS_VAL = new OptionArgument("Partition Value",
- "Setting The Partition value like (-p 1) for the hdx1", new OptionArgument.Option[] {
- new OptionArgument.Option("0", "hdX0"),
- new OptionArgument.Option("1", "hdX1"),
- new OptionArgument.Option("2", "hdX2"),
- new OptionArgument.Option("3", "hdX3")
- });
+ static final OptionArgument TYPE = new OptionArgument("action","Type parameter",
+ new OptionArgument.Option("-p","Set the partition point for installing Stage2,menu.lst"));
+ static final OptionArgument PS_VAL = new OptionArgument("Partition Value",
+ "Setting The Partition value like (-p 1) for the hdx1",
+ new OptionArgument.Option("0", "hdX0"),
+ new OptionArgument.Option("1", "hdX1"),
+ new OptionArgument.Option("2", "hdX2"),
+ new OptionArgument.Option("3", "hdX3"));
- static final Help.Info HELP_INFO = new Help.Info ("grub", "Install the grub to the specified location.", new Parameter[] {
+ static final Help.Info HELP_INFO = new Help.Info("grub",
+ "Install the grub to the specified location.",
new Parameter(ARG_DEVICE, Parameter.MANDATORY),
new Parameter(TYPE,Parameter.MANDATORY),
new Parameter(PS_VAL,Parameter.MANDATORY),
- new Parameter(ARG_DIR,Parameter.MANDATORY),
- });
+ new Parameter(ARG_DIR,Parameter.MANDATORY));
/**
* @param args
* @throws Exception
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|