Ignore:
Timestamp:
08/16/11 15:26:42 (8 years ago)
Author:
hinerm
Message:

More control allowed in JavaTools

The following options were added to JavaTools:

  • specification of one folder containing jars to add to the classpath
  • specification of a list of files/directories to add to the classpath
  • specification of files to add to the java.library.path
  • specifications of commands to add as jace::CustomOptions

The header and method signature options were updated to reflect these changes
Note that with these changes the overall structure of jtools was simplified,
so a top-level directory from which other paths are relative can no longer be specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/jar2lib/src/main/resources/project-files/jtools/include/javaTools.h

    r7731 r7734  
    4040 
    4141#include <string> 
     42#include <vector> 
    4243#include <dirent.h> 
    4344#include <iostream> 
     
    6162    /** 
    6263     * This method is used to instantiate a JVM with the following defaults: 
    63      * class path: working directory 
    64      * extra jars: none 
     64     * jarFolder: jar 
    6565     * memory: 256MB 
    6666     * headless: true 
     67     * extraJavaLibraryPath: current working directory 
     68     * extraClasspath: none 
    6769     */ 
    6870    static void createJVM(); 
     
    7173     * This method is used to instantiate a JVM with a custom class path. 
    7274     */ 
    73     static void createJVM(string jarlist); 
     75    static void createJVM(string jarFolder); 
    7476 
    7577    /** 
    7678     * This method is used to instantiate a JVM with custom memory specifications. 
    7779     */ 
    78     static void createJVM(int memory); 
     80    static void createJVM(bool headless); 
    7981 
    8082    /** 
    8183     * This method is used to instantiate a JVM with specified headless mode. 
    8284     */ 
    83     static void createJVM(bool headless); 
     85    static void createJVM(int memory); 
    8486 
    8587    /** 
     
    8789     * memory specifications.. 
    8890     */ 
    89     static void createJVM(string classdir, int memory); 
     91    static void createJVM(bool headless, int memory); 
    9092 
    9193    /** 
     
    9395     * specified headless mode. 
    9496     */ 
    95     static void createJVM(string classdir, bool headless); 
    96  
    97     /** 
    98      * This method is used to instantiate a JVM with extra jars and 
    99      * memory specifications.. 
    100      */ 
    101     static void createJVM(int memory, string jarlist); 
    102  
    103     /** 
    104      * This method is used to instantiate a JVM with extra jars and 
    105      * specified headless mode. 
    106      */ 
    107     static void createJVM(bool headless, string jarlist); 
    108  
    109     /** 
    110      * This method is used to instantiate a JVM with a custom class path and 
    111      * additional jars. 
    112      */ 
    113     static void createJVM(string classdir, string jarlist); 
    114  
    115     /** 
    116      * This method is used to instantiate a JVM with a custom class path, 
    117      * extra jars and custom memory specifications. 
    118      */ 
    119     static void createJVM(string classdir, string jarlist, int memory); 
    120  
    121     /** 
    122      * This method is used to instantiate a JVM with a custom class path, 
    123      * extra jars and specified headless mode. 
    124      */ 
    125     static void createJVM(string classdir, string jarlist, bool headless); 
     97    static void createJVM(string jarFolder, bool headless, int memory); 
    12698 
    12799    /** 
     
    133105     * memory - how much memory to instantiate the JVM with 
    134106     */ 
    135     static void createJVM(string classdir, string jarlist, bool headless, int memory); 
     107    static void createJVM(string jarFolder, bool headless, int memory, vector<string> extraClasspath, vector<string> extraJavaLibraryPath, vector<string> extraOptions); 
    136108}; 
Note: See TracChangeset for help on using the changeset viewer.