Ignore:
Timestamp:
2017-04-06T15:24:43+12:00 (7 years ago)
Author:
ak19
Message:

Removed debugging and other minor cosmetic changes after successful Windows testing of the new SafeProcess class used by the modified GS2PerlConstructor.runPerlCommand() method.

Location:
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/CollectionConstructor.java

    r31572 r31578  
    2525    protected EventListenerList listeners = null;
    2626    /** A flag used to determine if this process has been asked to cancel. */
    27     protected boolean cancel = false;
     27    protected boolean cancel = false; // Not really used (in any way that works)
    2828    /** Stores the name of the manifest file (if one is needed) */
    2929    protected String manifest_file = null;
    30     /** The URL params constructed as a query string, representing the CGI QUERY_STRING to the process */
    31     protected String query_string = null;
     30    /** The URL params constructed as a query string, representing the CGI QUERY_STRING to the process */
     31    protected String query_string = null;
    3232
    3333    public CollectionConstructor(String name)
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java

    r31574 r31578  
    3636    public static final int BUILD = 2;
    3737    public static final int ACTIVATE = 3;
    38     public static final int MODIFY_METADATA_SERVER = 4;
     38    public static final int MODIFY_METADATA_SERVER = 4;
    3939
    4040    /**
     
    4949    /** the path environment variable */
    5050    protected String path = null;
     51
    5152
    5253    public GS2PerlConstructor(String name)
     
    409410    sendMessage(new ConstructionEvent(this, GSStatus.INFO, "command = " + command_str));
    410411   
    411    
    412     logger.info("### Running command = " + command_str);
     412    //logger.info("### Running command = " + command_str);
    413413
    414414    // This is where we create and run our perl process safely
     
    450450        // std in of java, as before.
    451451
    452         logger.info("**** BEFORE runProcess.");
    453452        perlProcess.runProcess();
    454         logger.info("**** AFTER runProcess:");
    455453       
    456454    // The original runPerlCommand() code had an ineffective check for whether the cmd had been cancelled
     
    545543        }
    546544
    547 logger.info("### old runPerlCmd, command = " + command_str);
     545        // logger.info("### old runPerlCmd, command = " + command_str);
    548546
    549547        sendMessage(new ConstructionEvent(this, GSStatus.INFO, "command = " + command_str));
Note: See TracChangeset for help on using the changeset viewer.