[openrtm-commit:01180] r490 - branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 1月 23日 (木) 23:18:55 JST
Author: win-ei
Date: 2014-01-23 23:18:55 +0900 (Thu, 23 Jan 2014)
New Revision: 490
Modified:
branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
Log:
Changed the directory composition of the output files.
Modified: branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java
===================================================================
--- branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java 2014-01-23 09:46:47 UTC (rev 489)
+++ branches/work_ForRTMSafety/rtmtools/jp.go.aist.rtm.systemeditor/src/jp/go/aist/rtm/systemeditor/ui/editor/AbstractSystemDiagramEditor.java 2014-01-23 14:18:55 UTC (rev 490)
@@ -9,7 +9,6 @@
import org.eclipse.core.resources.IWorkspaceRoot;
import org.openrtp.namespaces.rts.version02.DataportConnector;
import org.openrtp.namespaces.rts.version02.TargetPort;
-//import org.openrtp.namespaces.rts.version02.Component;
//zxc+>
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
@@ -679,7 +678,10 @@
}
if(languageKind.equals("RTMSafety"))
{
- System.out.println("Creates table files for RTMSafety");
+ IWorkspace ws = ResourcesPlugin.getWorkspace();
+ IProject iproject = ws.getRoot().getProject(RTCLINK_PROJECT_NAME);
+ System.out.println("ws.getRoot()="+ws.getRoot());
+ System.out.println("Creates table files for RTMSafety");
final String TEMPLATE_PATH = "jp/go/aist/rtm/systemeditor/template";
String tablepath = file.getLocation().toOSString();
int lastDotPos = tablepath.lastIndexOf('\\');
@@ -696,6 +698,13 @@
{
tablepath = tablepath.substring(0, lastDotPos);
}
+ String makepath = tablepath + "\\" + "make";
+ String[] ids = profile.getId().split(":");
+ tablepath = tablepath + "\\" + ids[2];
+ File newdir = new File(tablepath);
+ newdir.mkdir();
+ File makedir = new File(makepath);
+ makedir.mkdir();
System.out.println("save 476 tablepath="+tablepath);
//
//DataPortConctTbl.c
@@ -940,7 +949,7 @@
}
contextMap.put("comps", complist);
contextMap.put("build_config", "Debug");
- String dataPortContct = tablepath+"\\"+id[2]+"_Deubg";
+ String dataPortContct = makepath+"\\"+id[2]+"_Deubg";
GeneratedResult gr = TemplateUtil.createGeneratedResult(ins, contextMap, dataPortContct);
File targetFile = new File(dataPortContct);
FileWriter filewriter = new FileWriter(targetFile);
@@ -952,7 +961,7 @@
cl = Thread.currentThread().getContextClassLoader();
ins = cl.getResourceAsStream(template);
contextMap.put("build_config", "Release");
- dataPortContct = tablepath+"\\"+id[2]+"_Release";
+ dataPortContct = makepath+"\\"+id[2]+"_Release";
gr = TemplateUtil.createGeneratedResult(ins, contextMap, dataPortContct);
targetFile = new File(dataPortContct);
filewriter = new FileWriter(targetFile);
More information about the openrtm-commit
mailing list