Changeset 1091 for trunk/org.modelica.mdt.test
- Timestamp:
- 11/10/11 00:25:02 (13 years ago)
- Location:
- trunk/org.modelica.mdt.test/src/org/modelica/mdt/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/Area51Projects.java
r1081 r1091 41 41 42 42 package org.modelica.mdt.test.util; 43 44 43 45 44 import java.io.InputStream; … … 149 148 } 150 149 151 152 150 /** 153 151 * create modelica project … … 262 260 * or even expanded, but I can't reproduce it reliably. 263 261 */ 264 // 265 // 262 //file = folder.getFile("package.mo"); 263 //file.create(Utility.getByteStream(""), true, null); 266 264 267 265 /* empty_folder */ … … 275 273 /* root_model.mo */ 276 274 file = modelica_project.getFile("root_model.mo"); 277 contents = 278 "encapsulated model root_model\n" + 279 " import Modelica;\n" + 280 "end root_model;"; 281 file.create(Utility.getByteStream(contents), true, null); 275 InputStream is = Area51Projects.class.getResourceAsStream("/org/modelica/mdt/test/modelicafiles/area51/root_model.mo"); 276 file.create(is, true, null); 282 277 283 278 /* nested_models.mo */ 284 279 file = modelica_project.getFile("nested_models.mo"); 285 InputStreamis = Area51Projects.class.getResourceAsStream("/org/modelica/mdt/test/modelicafiles/area51/nested_models.mo");280 is = Area51Projects.class.getResourceAsStream("/org/modelica/mdt/test/modelicafiles/area51/nested_models.mo"); 286 281 file.create(is, true, null); 287 282
Note: See TracChangeset
for help on using the changeset viewer.