Navigation
Synopsis Retrieve the hierarchical representation of a single named project.
Function Resource getProject(loc project)
Examples
rascal>import util::Resources;
ok
rascal>getProject(|project://example-project|);
Resource: project(
  |project://example-project|,
  {
    folder(
      |project://example-project/bin|,
      {
        file(|project://example-project/bin/IFruit.class|),
        file(|project://example-project/bin/Apple.class|),
        file(|project://example-project/bin/HelloWorld.class|),
        file(|project://example-project/bin/Fruit.class|)
      }),
    file(|project://example-project/.project|),
    file(|project://example-project/.classpath|),
    folder(
      |project://example-project/src|,
      {
        file(|project://example-project/src/IFruit.java|),
        file(|project://example-project/src/Apple.java|),
        file(|project://example-project/src/HelloWorld.java|),
        file(|project://example-project/src/Fruit.java|)
      })
  })
rascal>import util::Resources;
ok
rascal>getProject(|project://example-project-which-does-not-exist|);
|rascal://util::Resources|(1557,102,<49,0>,<50,45>): "Project does is not open: example-project-which-does-not-exist"
	at *** somewhere ***(|rascal://util::Resources|(1557,102,<49,0>,<50,45>))
	at getProject(|stdin:///|(11,48,<1,11>,<1,59>))


Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.