buildframework/helium/sf/java/imaker/src/com/nokia/helium/imaker/IMaker.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
--- a/buildframework/helium/sf/java/imaker/src/com/nokia/helium/imaker/IMaker.java	Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/sf/java/imaker/src/com/nokia/helium/imaker/IMaker.java	Fri Aug 13 14:59:05 2010 +0300
@@ -1,38 +1,34 @@
 /*
-* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of the License "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  
-*
-*/
+ * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the License "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:  
+ *
+ */
 package com.nokia.helium.imaker;
 
 import java.io.File;
 import java.io.IOException;
 import java.util.List;
 
+import org.apache.log4j.Logger;
 
 import com.nokia.helium.core.plexus.CommandBase;
 import com.nokia.helium.core.plexus.StreamRecorder;
 
-import org.apache.log4j.Logger;
-
 /**
- * This class implements a wrapper around iMaker.
- * It helps to introspect:
- *   <li> variables
- *   <li> targets
- *   <li> configurations
- *
+ * This class implements a wrapper around iMaker. It helps to introspect: <li>variables <li>targets
+ * <li>configurations
+ * 
  */
 public class IMaker extends CommandBase<IMakerException> {
     private static final String TEMP_ROMBUILD_DIR = "epoc32/rombuild/temp";
@@ -41,15 +37,17 @@
 
     /**
      * Create an iMaker wrapper class with a specific epocroot.
+     * 
      * @param epocroot
      */
     public IMaker(File epocroot) {
         this.epocroot = epocroot;
-        
+
     }
-    
+
     /**
      * Creates a temp working dir for the rom image creation.
+     * 
      * @return
      * @throws IOException
      */
@@ -61,13 +59,15 @@
             tempDir.delete();
             tempDir.mkdirs();
             return tempDir;
-        } catch (IOException e) {
+        }
+        catch (IOException e) {
             throw new IMakerException(e.getMessage(), e);
         }
     }
-    
+
     /**
      * Epocroot location.
+     * 
      * @return the epocroot location
      */
     public File getEpocroot() {
@@ -76,6 +76,7 @@
 
     /**
      * Get the iMaker version.
+     * 
      * @return the current iMaker version.
      * @throws IMakerException is thrown in case of an iMaker execution error.
      */
@@ -90,6 +91,7 @@
 
     /**
      * Get the value of a particular variable from iMaker configuration.
+     * 
      * @param name the variable name
      * @return the value or null if the variable does not exist.
      * @throws IMakerException
@@ -106,6 +108,7 @@
     /**
      * Get the value of a particular variable from iMaker configuration for a particular
      * configuration.
+     * 
      * @param name the variable name
      * @return the value or null if the variable does not exist.
      * @throws IMakerException
@@ -123,6 +126,7 @@
 
     /**
      * Get the list of available iMaker configurations.
+     * 
      * @return a list of configurations
      * @throws IMakerException
      */
@@ -134,9 +138,10 @@
         execute(args, consumer);
         return consumer.getConfigurations();
     }
-    
+
     /**
-     * Get the a list of target supported by a specific configuration.  
+     * Get the a list of target supported by a specific configuration.
+     * 
      * @param configuration the configuration to use
      * @return the list of targets.
      * @throws IMakerException
@@ -154,6 +159,7 @@
 
     /**
      * Get the target list for the configuration.
+     * 
      * @param configuration a File object representing the configuration location.
      * @return a list of targets.
      * @throws IMakerException
@@ -161,7 +167,7 @@
     public List<String> getTargets(File configuration) throws IMakerException {
         return getTargets(configuration.getAbsolutePath());
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -182,9 +188,8 @@
      * {@inheritDoc}
      */
     @Override
-    protected void throwException(String message, Throwable t)
-            throws IMakerException {
-        throw new IMakerException(message, t);        
+    protected void throwException(String message, Throwable t) throws IMakerException {
+        throw new IMakerException(message, t);
     }
-    
+
 }