Changeset 9136


Ignore:
Timestamp:
2005-02-22T15:39:10+13:00 (19 years ago)
Author:
kjdon
Message:

changed to use SCriptOptions instead of BuildOptions

Location:
trunk/gli/src/org/greenstone/gatherer/collection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r9036 r9136  
    5757 */
    5858public class Collection {
    59     /** A reference to the BuildOptions. */
    60     public BuildOptions build_options;
    6159    /** A reference to the Collection Design Manager. */
    6260    public CollectionDesignManager cdm;
     61    /** A reference to the build ScriptOptions. */
     62    public ScriptOptions build_options;
     63    /** A reference to the import ScriptOptions. */
     64    public ScriptOptions import_options;
    6365    /** true if an error has occurred during construction */
    6466    public boolean error = false;
     
    102104    }
    103105    // Finally create all of the child managers that are directly dependant on a collection
    104     build_options = new BuildOptions(getBuildValues(), getImportValues());
     106    build_options = new ScriptOptions(getBuildValues(), "buildcol.pl", true);
     107    import_options = new ScriptOptions(getImportValues(), "import.pl", true);
    105108    }
    106109   
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r9131 r9136  
    158158        args[5] = collect_dir;
    159159    }
    160     args = ArrayTools.add(args, collection.build_options.getBuildValues());
     160    args = ArrayTools.add(args, collection.build_options.getValues());
    161161    args = ArrayTools.add(args, collection.getName());
    162162    GShell shell = new GShell(args, GShell.BUILD, BUILDING, this, build_monitor, GShell.GSHELL_BUILD);
     
    683683    }
    684684    collect_dir = null;
    685     args = ArrayTools.add(args, collection.build_options.getImportValues());
     685    args = ArrayTools.add(args, collection.import_options.getValues());
    686686    args = ArrayTools.add(args, collection.getName());
    687687
     
    12451245
    12461246        // Get the build mode from the build options
    1247         String build_mode = collection.build_options.getBuildValue("mode");
     1247        String build_mode = collection.build_options.getValue("mode");
    12481248
    12491249        // Special case for build mode "all": replace index dir with building dir
Note: See TracChangeset for help on using the changeset viewer.