Ignore:
Timestamp:
11/10/11 00:25:02 (13 years ago)
Author:
masberg
Message:

Externalize Area51 project root file root_model.mo + minor tweaks

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  
    4141
    4242package org.modelica.mdt.test.util;
    43 
    4443
    4544import java.io.InputStream;
     
    149148    }
    150149
    151 
    152150    /**
    153151     * create modelica project
     
    262260         *  or even expanded, but I can't reproduce it reliably.
    263261         */
    264         //      file = folder.getFile("package.mo");
    265         //      file.create(Utility.getByteStream(""), true, null);
     262        //file = folder.getFile("package.mo");
     263        //file.create(Utility.getByteStream(""), true, null);
    266264
    267265        /* empty_folder */
     
    275273        /* root_model.mo */
    276274        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);
    282277
    283278        /* nested_models.mo */
    284279        file = modelica_project.getFile("nested_models.mo");
    285         InputStream is = 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");
    286281        file.create(is, true, null);
    287282
Note: See TracChangeset for help on using the changeset viewer.