org.scala_tools.maven.executions
Class MainHelper
java.lang.Object
org.scala_tools.maven.executions.MainHelper
public class MainHelper
- extends Object
- Author:
- David Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainHelper
public MainHelper()
createArgFile
public static File createArgFile(List<String> args)
throws IOException
- Creates a file containing all the arguments. This file has a very simple format of argument (white-space argument).
- Returns:
-
- Throws:
IOException
readArgFile
public static List<String> readArgFile(File argFile)
throws IOException
- Creates a file containing all the arguments. This file has a very simple format of argument (white-space argument).
- Returns:
-
- Throws:
IOException
runMain
public static void runMain(String mainClassName,
List<String> args,
ClassLoader cl)
throws Exception
- Runs the main method of a java class
- Throws:
Exception
locateJar
public static String locateJar(Class<?> c)
throws Exception
- Throws:
Exception
Copyright © 2009-2010 Scala Tools. All Rights Reserved.