Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/app/puma/boot/PumaAppContext.java
- ===================================================================
- --- maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/app/puma/boot/PumaAppContext.java (revision 1357)
- +++ maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/app/puma/boot/PumaAppContext.java (working copy)
- @@ -69,7 +69,7 @@
- myRegClient = new PumaRegistryClientImpl(bc, mediator);
- advertisePumaRegClient(myRegClient);
- myBundleContext = bc;
- -
- + getBundleContext();
- BoxSpace bs = myRegClient.getTargetBoxSpace(null);
- myPCCB = new PumaContextCommandBox(this);
- bs.addBox(ctxID, myPCCB);
- @@ -84,6 +84,8 @@
- }
- public BundleContext getBundleContext() {
- + if (myBundleContext == null)
- + throw new NullPointerException("myBundleContext");
- return myBundleContext;
- }
- @@ -121,6 +123,7 @@
- protected RepoClient getOrMakeMainConfigRC() {
- final PumaConfigManager pcm = getConfigManager();
- PumaContextMediator mediator = getMediator();
- + BundleContext myBundleContext = getBundleContext();
- RepoClient repoCli = pcm.getOrMakeMainConfigRepoClient(mediator, myBundleContext);
- return repoCli;
- }
- @@ -145,6 +148,7 @@
- public void startRepositoryConfigServices() {
- PumaConfigManager pcm = getConfigManager();
- PumaContextMediator mediator = myRegClient.getCtxMediator(null);
- + BundleContext myBundleContext = getBundleContext();
- // This would happen by default anyway, if there were not already a MainConfigRepoClient in place.
- pcm.applyDefaultRepoClientAsMainConfig(mediator, myBundleContext);
- // This method performs the configuration actions associated with the developmental "Global Mode" concept
- @@ -323,6 +327,7 @@
- // Below is needed for Lifter to obtain dependency from LifterLifecycle
- // Will revisit once repo functionality stabilizes a bit
- //PumaConfigManager.startRepoClientLifecyle(myBundleContext, rc);
- + BundleContext myBundleContext = getBundleContext();
- pgmm.startGlobalConfigService(myBundleContext);
- }
- Index: maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/bundle/app/puma/PumaAppUtils.java
- ===================================================================
- --- maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/bundle/app/puma/PumaAppUtils.java (revision 1357)
- +++ maven/org.cogchar.bundle.app.puma/src/main/java/org/cogchar/bundle/app/puma/PumaAppUtils.java (working copy)
- @@ -15,6 +15,7 @@
- */
- package org.cogchar.bundle.app.puma;
- import java.util.List;
- +import java.io.PrintStream;
- import org.appdapter.core.log.BasicDebugger;
- import org.appdapter.core.name.FreeIdent;
- import org.appdapter.core.name.Ident;
- @@ -46,6 +47,7 @@
- */
- public class PumaAppUtils extends BasicDebugger {
- static Logger theLogger = LoggerFactory.getLogger(PumaAppUtils.class);
- + private static GreedyHandleSet firstGreedyHandleSet;
- /**
- * This is a crude handle-grabbing entry pont, which assumes "the application"
- @@ -79,9 +81,23 @@
- public static List<FancyFile> getKnownAnimationFiles() {
- - GreedyHandleSet srec = new GreedyHandleSet();
- + GreedyHandleSet srec = PumaAppUtils.obtainGreedyHandleSet();
- return AnimFileSpecReader.findAnimFileSpecsForJava(srec.animBCE);
- }
- +
- + public static int checkAnimationFiles(PrintStream infoStream) {
- + List<FancyFile> animFiles = getKnownAnimationFiles();
- + theLogger.info("Got anim files: {}", animFiles);
- + for (FancyFile ff : animFiles) {
- + Ident animID = ff.mySpec().getIdent();
- + String fullPath = ff.myResolvedFullPath();
- + if (infoStream != null) {
- + infoStream.println(" " + animID + " = " + fullPath);
- + }
- + }
- + return animFiles.size();
- + }
- +
- public static void startSillyMotionComputersDemoForVWorldOnly(BundleContext bundleCtx, Robot.Id optRobotID_elseAllRobots) {
- List<CogcharMotionSource> cogMotSrcList = CogcharMotionSource.findCogcharMotionSources(bundleCtx, optRobotID_elseAllRobots);
- for (CogcharMotionSource cms : cogMotSrcList) {
- @@ -93,7 +109,7 @@
- }
- }
- public static void attachVWorldRenderModule(BundleContext bundleCtx, RenderModule rMod, Ident optVWorldSpecID) {
- - GreedyHandleSet srec = new GreedyHandleSet();
- + GreedyHandleSet srec = PumaAppUtils.obtainGreedyHandleSet();
- PumaVirtualWorldMapper pvwm = srec.pumaRegClient.getVWorldMapper(optVWorldSpecID);
- if (pvwm != null) {
- pvwm.attachRenderModule(rMod);
- @@ -101,4 +117,16 @@
- theLogger.error("Cannot find VWorld to attach renderModel [optVWorldSpecID={}]", optVWorldSpecID);
- }
- }
- +
- + public static GreedyHandleSet obtainGreedyHandleSet() {
- + if (firstGreedyHandleSet == null) {
- + try {
- + firstGreedyHandleSet = new GreedyHandleSet();
- + } catch (Exception e) {
- + e.printStackTrace();
- + theLogger.error("" + e, e);
- + }
- + }
- + return firstGreedyHandleSet;
- + }
- }
- Index: maven/org.cogchar.bundle.bind.joseki/src/main/java/org/cogchar/joswrap/ModJosDatasetDesc.java
- ===================================================================
- --- maven/org.cogchar.bundle.bind.joseki/src/main/java/org/cogchar/joswrap/ModJosDatasetDesc.java (revision 1357)
- +++ maven/org.cogchar.bundle.bind.joseki/src/main/java/org/cogchar/joswrap/ModJosDatasetDesc.java (working copy)
- @@ -83,7 +83,11 @@
- // From pool.
- try
- {
- - log.debug("Take from pool") ;
- + if (pool==null) {
- + log.warn("initializing pool") ;
- + initialize();
- + }
- + log.warn("Take from pool") ;
- return pool.takeFirst() ;
- } catch (InterruptedException ex)
- {
- Index: maven/org.cogchar.bundle.bind.lift/src/main/java/org/cogchar/bundle/bind/lift/Activator.java
- ===================================================================
- --- maven/org.cogchar.bundle.bind.lift/src/main/java/org/cogchar/bundle/bind/lift/Activator.java (revision 1357)
- +++ maven/org.cogchar.bundle.bind.lift/src/main/java/org/cogchar/bundle/bind/lift/Activator.java (working copy)
- @@ -6,7 +6,11 @@
- public class Activator implements BundleActivator {
- public void start(BundleContext context) throws Exception {
- - // TODO add activation code here
- + // the pom never defines a bundle activator! if it ever does.. lets exit
- + String myName = super.getClass().getName();
- + new RuntimeException(myName + myName + " \n" + myName).printStackTrace();
- + // System.console().readLine();
- + // System.exit(-1);
- }
- public void stop(BundleContext context) throws Exception {
- Index: maven/org.cogchar.bundle.bind.lift/src/main/scala/bootstrap/liftweb/Boot.scala
- ===================================================================
- --- maven/org.cogchar.bundle.bind.lift/src/main/scala/bootstrap/liftweb/Boot.scala (revision 1357)
- +++ maven/org.cogchar.bundle.bind.lift/src/main/scala/bootstrap/liftweb/Boot.scala (working copy)
- @@ -30,9 +30,17 @@
- * A class that's instantiated early and run. It allows the application
- * to modify lift's environment
- */
- -class Boot {
- +class Boot extends Runnable {
- def boot {
- + if (PageCommander.skipBootLifter) {
- + PageCommander.skippedLifterRunable = this
- + return
- + }
- + run
- + }
- +
- + def run {
- // where to search snippet
- LiftRules.addToPackages("org.cogchar.lifter")
- Index: maven/org.cogchar.bundle.bind.lift/src/main/scala/org/cogchar/lifter/model/PageCommander.scala
- ===================================================================
- --- maven/org.cogchar.bundle.bind.lift/src/main/scala/org/cogchar/lifter/model/PageCommander.scala (revision 1357)
- +++ maven/org.cogchar.bundle.bind.lift/src/main/scala/org/cogchar/lifter/model/PageCommander.scala (working copy)
- @@ -26,6 +26,7 @@
- import org.cogchar.lifter.view.TextBox
- import org.cogchar.bind.lift.{ControlConfig, LiftAmbassador, LiftConfig}
- import scala.collection.JavaConverters._
- +import java.lang.Boolean
- // import org.cogchar.platform.trigger.CogcharActionBinding
- /**
- @@ -42,6 +43,10 @@
- // project, if I knew what I know now!
- object PageCommander extends LiftActor with ListenerManager with LifterLogger {
- + var skipBootLifter = false;
- +
- + var skippedLifterRunable : java.lang.Runnable = null;
- +
- def info(msg: String, params: Any*) {
- myLogger.info(msg, params.map(_.asInstanceOf[Object]).toArray)
- }
- Index: maven/org.cogchar.bundle.bind.robokind/src/main/java/org/cogchar/bind/rk/behavior/CCRK_ServiceChannelFactory.java
- ===================================================================
- --- maven/org.cogchar.bundle.bind.robokind/src/main/java/org/cogchar/bind/rk/behavior/CCRK_ServiceChannelFactory.java (revision 1357)
- +++ maven/org.cogchar.bundle.bind.robokind/src/main/java/org/cogchar/bind/rk/behavior/CCRK_ServiceChannelFactory.java (working copy)
- @@ -60,7 +60,7 @@
- private PerfChannel createSpeechChannel(Ident chanID, SpeechService speechSvc) {
- getLogger().info("Creating SpeechOutChan at [{}] for [{}]", chanID, speechSvc);
- - return new SpeechOutputClient(speechSvc, chanID);
- + return (PerfChannel) new SpeechOutputClient(speechSvc, chanID);
- }
- private PerfChannel createAnimationChannel(Ident chanID, AnimationPlayer animPlayerSvc) {
- Index: maven/org.cogchar.bundle.core/src/main/java/org/cogchar/bundle/core/CogcharCoreActivator.java
- ===================================================================
- --- maven/org.cogchar.bundle.core/src/main/java/org/cogchar/bundle/core/CogcharCoreActivator.java (revision 1357)
- +++ maven/org.cogchar.bundle.core/src/main/java/org/cogchar/bundle/core/CogcharCoreActivator.java (working copy)
- @@ -13,8 +13,8 @@
- * @author Stu B. <www.texpedient.com>
- */
- public class CogcharCoreActivator extends BundleActivatorBase {
- + // consider not implementing anyhting in the class
- -
- @Override public void start(BundleContext context) throws Exception {
- // We assume some other bundle has configured SLF4J for us.
- super.start(context);
- Index: maven/org.cogchar.lib.core.impl/src/main/java/org/cogchar/impl/thing/basic/BasicThingActionSpecBuilderTempFunctions.java
- ===================================================================
- --- maven/org.cogchar.lib.core.impl/src/main/java/org/cogchar/impl/thing/basic/BasicThingActionSpecBuilderTempFunctions.java (revision 1357)
- +++ maven/org.cogchar.lib.core.impl/src/main/java/org/cogchar/impl/thing/basic/BasicThingActionSpecBuilderTempFunctions.java (working copy)
- @@ -56,10 +56,22 @@
- }
- //FROM AgentAmbassador
- - private static final String repoBaseURL = "http://localhost:8080/cchr_josk/";
- - private static final String repoBaseUpdURL = repoBaseURL + "sparql-update/";
- - private static final String glueUpdURL = repoBaseUpdURL + "glue-ai";
- + private static String repoBaseURL = "http://localhost:8080/cchr_josk/";
- + private static String repoBaseUpdURL = repoBaseURL + "sparql-update/";
- + private static String glueUpdURL = repoBaseUpdURL + "glue-ai";
- +
- + public static void setRepoBaseURL(String newValue) {
- + repoBaseURL = newValue;
- + repoBaseUpdURL = repoBaseURL + "sparql-update/";
- + glueUpdURL = repoBaseUpdURL + "glue-ai";
- + }
- +
- + public static void setRepoUpdateURL(String newValue) {
- + repoBaseUpdURL = newValue; // (repoBaseURL + "sparql-update/");
- + glueUpdURL = repoBaseUpdURL + "glue-ai";
- + }
- +
- //From WebDataClient
- private String execPost (String url, List<NameValuePair> nvps, boolean debugFlag) {
- String resultText = null;
- Index: maven/org.cogchar.lib.core.impl/src/main/scala/org/cogchar/impl/scene/GuardedBehavior.scala
- ===================================================================
- --- maven/org.cogchar.lib.core.impl/src/main/scala/org/cogchar/impl/scene/GuardedBehavior.scala (revision 1357)
- +++ maven/org.cogchar.lib.core.impl/src/main/scala/org/cogchar/impl/scene/GuardedBehavior.scala (working copy)
- @@ -206,7 +206,8 @@
- guardSpecSet.add(guardSpec)
- }
- for (tag : Item <- taGuardItems) {
- - val chanID : Ident = tag.getSingleLinkedItem(waitChanGuardProp, Item.LinkDirection.FORWARD).getIdent
- + val chanID_Raw = tag.getSingleLinkedItem(waitChanGuardProp, Item.LinkDirection.FORWARD) // expanded for safty
- + val chanID : Ident = if( chanID_Raw != null ) { chanID_Raw.getIdent } else null
- val filterID_RawSet = tag.getLinkedItemSet(chanFilterProp, Item.LinkDirection.FORWARD);// expanded for safty
- val filterID : Ident = if( filterID_RawSet != null && !filterID_RawSet.isEmpty ) {
- filterID_RawSet.head.getIdent
- @@ -218,9 +219,12 @@
- // for (filter : Item <- filterItems) {
- // filter.getIdent
- // }
- -
- + if (chanID != null && filterID != null) {
- val guardSpec = new ThingActionGuardSpec(chanID, filterID)
- guardSpecSet.add(guardSpec)
- + } else {
- + getLogger.error("Unable to use guard for {}" , configItem)
- + }
- }
- val stepSpec = new GuardedStepSpec(stepIdent, actionSpec, guardSpecSet.toSet) // offsetMillisec, actionSpec);
- Index: maven/org.cogchar.lib.render.hominoid/src/main/java/org/cogchar/render/app/humanoid/HumanoidPuppetApp.java
- ===================================================================
- --- maven/org.cogchar.lib.render.hominoid/src/main/java/org/cogchar/render/app/humanoid/HumanoidPuppetApp.java (revision 1357)
- +++ maven/org.cogchar.lib.render.hominoid/src/main/java/org/cogchar/render/app/humanoid/HumanoidPuppetApp.java (working copy)
- @@ -41,6 +41,15 @@
- HumanoidPuppetApp app = new HumanoidPuppetApp(bce);
- app.start();
- }
- +
- + @Override public void update() {
- + try {
- + super.update();
- + } catch (Exception e) {
- + e.printStackTrace();
- + }
- + }
- +
- public HumanoidPuppetApp(RenderConfigEmitter rce) {
- super(rce);
- }
- Index: maven/org.cogchar.lib.render.impl/pom.xml
- ===================================================================
- --- maven/org.cogchar.lib.render.impl/pom.xml (revision 1357)
- +++ maven/org.cogchar.lib.render.impl/pom.xml (working copy)
- @@ -17,9 +17,6 @@
- <packaging>jar</packaging>
- -
- -
- -
- <dependencies>
- <dependency>
- Index: maven/org.cogchar.modules.main/pom.xml
- ===================================================================
- --- maven/org.cogchar.modules.main/pom.xml (revision 1357)
- +++ maven/org.cogchar.modules.main/pom.xml (working copy)
- @@ -193,6 +193,20 @@
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- + <artifactId>maven-gpg-plugin</artifactId>
- + <version>1.4</version>
- + <executions>
- + <execution>
- + <id>sign-artifacts</id>
- + <phase>deploy</phase>
- + <goals>
- + <goal>sign</goal>
- + </goals>
- + </execution>
- + </executions>
- + </plugin>
- + <plugin>
- + <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2</version>
- <executions>
- @@ -223,6 +237,17 @@
- <version>4.2.1</version>
- <scope>provided</scope>
- </dependency>
- + <dependency>
- + <groupId>org.slf4j</groupId>
- + <artifactId>slf4j-api</artifactId>
- + <version>1.7.5</version>
- + </dependency>
- + <dependency>
- + <groupId>org.slf4j</groupId>
- + <artifactId>slf4j-log4j12</artifactId>
- + <version>1.7.5</version>
- + </dependency>
- +
- <!-- org.apache.felix:org.apache.felix.gogo.shell:0.6.1 useless from Maven since stdin is swallowed -->
- </dependencies>
- <build>
- Index: maven/org.cogchar.nbui.render/pom.xml
- ===================================================================
- --- maven/org.cogchar.nbui.render/pom.xml (revision 1357)
- +++ maven/org.cogchar.nbui.render/pom.xml (working copy)
- @@ -122,19 +122,31 @@
- <version>${project.version}</version>
- </dependency>
- <dependency>
- + <artifactId>ext.bundle.apache_httpclient</artifactId>
- + <groupId>org.appdapter</groupId>
- + <type>jar</type>
- + <version>${appdapter.version}</version>
- + </dependency>
- + <!--dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient-osgi</artifactId>
- - <version>4.3</version>
- + <version>${httpclient.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore-osgi</artifactId>
- - <version>4.3</version>
- - </dependency>
- + <version>${httpcore.version}</version>
- + </dependency-->
- <dependency>
- <groupId>org.ow2.bundles</groupId>
- <artifactId>ow2-bundles-externals-commons-logging</artifactId>
- <version>1.0.33</version>
- + <exclusions>
- + <exclusion>
- + <artifactId>commons-logging</artifactId>
- + <groupId>commons-logging</groupId>
- + </exclusion>
- + </exclusions>
- </dependency>
- <dependency>
- <artifactId>ext.bundle.xml.dom4j_161</artifactId>
- Index: maven/org.cogchar.nbui.render/src/main/java/org/cogchar/nbui/render/trigger/TriggerPanel.java
- ===================================================================
- --- maven/org.cogchar.nbui.render/src/main/java/org/cogchar/nbui/render/trigger/TriggerPanel.java (revision 1357)
- +++ maven/org.cogchar.nbui.render/src/main/java/org/cogchar/nbui/render/trigger/TriggerPanel.java (working copy)
- @@ -16,7 +16,9 @@
- package org.cogchar.nbui.render.trigger;
- -import org.cogchar.svc.behav.control.ActionCallbackMap;
- +import org.jflux.api.core.Listener;
- +import org.cogchar.svc.behav.control.*;
- +
- import java.awt.FlowLayout;
- import java.awt.event.ActionListener;
- import java.util.HashMap;
- Index: pom.xml
- ===================================================================
- --- pom.xml (revision 1357)
- +++ pom.xml (working copy)
- @@ -15,6 +15,16 @@
- http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
- -->
- +
- +<!-- #IF LIVEPROFILER
- + <parent>
- + <groupId>base.buildall</groupId>
- + <artifactId>developer_workspace.root</artifactId>
- + <relativePath>../buildhrkpom.xml</relativePath>
- + <version>1.0.0-SNAPSHOT</version>
- + </parent>
- +
- +#ELSE LIVEPROFILER -->
- <parent>
- <groupId>org.sonatype.oss</groupId>
- <artifactId>oss-parent</artifactId>
- @@ -57,8 +67,8 @@
- <jmonkey.version>3.0.0.20121220-SNAPSHOT</jmonkey.version>
- <appdapter.msg.version>1.0.5</appdapter.msg.version>
- <appdapter.version>1.1.4-SNAPSHOT</appdapter.version>
- - <robokind.version>0.9.3</robokind.version>
- - <jflux.version>0.1.7</jflux.version>
- + <robokind.version>0.9.4-SNAPSHOT</robokind.version>
- + <jflux.version>0.1.8-SNAPSHOT</jflux.version>
- <scala.version>2.10.2</scala.version>
- <netbeans.version>RELEASE721</netbeans.version>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement