[openrtm-commit:00746] r280 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager
openrtm @ openrtm.org
openrtm @ openrtm.org
2012年 3月 5日 (月) 13:12:50 JST
Author: sakamoto
Date: 2012-03-05 13:12:50 +0900 (Mon, 05 Mar 2012)
New Revision: 280
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CommonGenerateManager.java
Log:
Modified Common Generator
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CommonGenerateManager.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CommonGenerateManager.java 2012-02-21 15:08:54 UTC (rev 279)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CommonGenerateManager.java 2012-03-05 04:12:50 UTC (rev 280)
@@ -99,8 +99,8 @@
Map<String, Object> contextMap) {
try {
String template = TEMPLATE_PATH + "/" + infile;
- InputStream ins = getClass().getClassLoader().getResourceAsStream(
- template);
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ InputStream ins = cl.getResourceAsStream(template);
GeneratedResult gr = TemplateUtil.createGeneratedResult(ins,
contextMap, outfile);
if (ins != null) {
openrtm-commit メーリングリストの案内