[kepler-dev] [kepler-code] r20698 - trunk/modules/loader/src/org/kepler
Chad Berkley
berkley at nceas.ucsb.edu
Thu Sep 17 09:38:19 PDT 2009
This class controls all of the command line applications of kepler. It
loads a configuration without loading the GUI.
chad
aschultz at ecoinformatics.org wrote:
> Author: aschultz
> Date: 2009-09-16 18:28:46 -0700 (Wed, 16 Sep 2009)
> New Revision: 20698
>
> Modified:
> trunk/modules/loader/src/org/kepler/KeplerConfigurationApplication.java
> Log:
> What is this????
>
> Modified: trunk/modules/loader/src/org/kepler/KeplerConfigurationApplication.java
> ===================================================================
> --- trunk/modules/loader/src/org/kepler/KeplerConfigurationApplication.java 2009-09-17 01:03:05 UTC (rev 20697)
> +++ trunk/modules/loader/src/org/kepler/KeplerConfigurationApplication.java 2009-09-17 01:28:46 UTC (rev 20698)
> @@ -33,6 +33,8 @@
> import java.util.LinkedList;
> import java.util.List;
>
> +import org.apache.commons.logging.Log;
> +import org.apache.commons.logging.LogFactory;
> import org.kepler.objectmanager.ActorMetadata;
> import org.kepler.objectmanager.cache.CacheManager;
> import org.kepler.objectmanager.cache.CacheObjectInterface;
> @@ -57,16 +59,22 @@
> import ptolemy.kernel.util.StringAttribute;
> import ptolemy.kernel.util.Workspace;
> import ptolemy.moml.MoMLChangeRequest;
> +import ptolemy.moml.MoMLFilter;
> import ptolemy.moml.MoMLParser;
> import ptolemy.moml.filter.BackwardCompatibility;
> +import ptolemy.moml.filter.RemoveGraphicalClasses;
> import ptolemy.util.MessageHandler;
> import ptolemy.util.StringUtilities;
> -import ptolemy.moml.filter.RemoveGraphicalClasses;
> -import ptolemy.moml.MoMLFilter;
>
> -
> +/**
> + * What does this class do?
> + *
> + */
> public class KeplerConfigurationApplication extends ConfigurationApplication
> {
> + private static final Log log = LogFactory.getLog(KeplerConfigurationApplication.class.getName());
> + private static final boolean isDebugging = log.isDebugEnabled();
> +
> /**
> * constructor. @See ptolemy.actor.gui.ConfigurationApplication for
> * more information.
> @@ -75,6 +83,7 @@
> public KeplerConfigurationApplication(String[] args)
> throws Exception
> {
> + if (isDebugging) log.debug("construct: "+args);
> _initializeApplication();
> _basePath = "ptolemy/configs";
>
> @@ -114,6 +123,7 @@
>
> // initialize the KAR entries
> String fileName = args[args.length - 1];
> + if (isDebugging) log.debug(fileName);
> if(fileName.trim().endsWith(".kar"))
> {
> String karFileName = fileName;
>
> _______________________________________________
> Kepler-cvs mailing list
> Kepler-cvs at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-cvs
>
More information about the Kepler-dev
mailing list