Skip to content

Commit

Permalink
removed uses of testdata:/// scheme from the documentation sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Sep 14, 2023
1 parent 7566e7f commit 7b5a743
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion META-INF/RASCAL.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Project-Name: rascal-website
Sources: courses/Recipes, courses/Rascal, |rascal://org/rascalmpl/library|
Source: courses/Recipes, courses/Rascal
Require-Libraries: |lib://rascal-tutor|
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ of these modules later. For now we will go through using them in a few examples.

```rascal-prepare
import IO;
copy(|zip+testdata:///m3/snakes-and-ladders-project-source.zip!/|, |tmp:///snakes-and-ladders|, recursive=true)
if ({l} := findResources("Metrics/MeasuringJava/snakes-and-ladders-project-source.zip")) {
copy(l[scheme="zip+<l.scheme>"][path="<l.path>!/"], |tmp:///snakes-and-ladders|, recursive=true);
} else {
throw "failed to copy necessary source code to analyze for this example";
}
```

```rascal-shell
Expand Down
6 changes: 5 additions & 1 deletion courses/Recipes/Metrics/MeasuringJava/MeasuringJava.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ of these modules later. For now we will go through using them in a few examples.

```rascal-prepare
import IO;
copy(|zip+testdata:///m3/snakes-and-ladders-project-source.zip!/|, |tmp:///snakes-and-ladders|, recursive=true)
if ({l} := findResources("Metrics/MeasuringJava/snakes-and-ladders-project-source.zip")) {
copy(l[scheme="zip+<l.scheme>"][path="<l.path>!/"], |tmp:///snakes-and-ladders|, recursive=true);
} else {
throw "failed to copy necessary source code to analyze for this example";
}
```

```rascal-shell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ We demonstrate how to extract interesting and accurate information about Java me

```rascal-prepare
import IO;
copy(|zip+testdata:///m3/snakes-and-ladders-project-source.zip!/|, |tmp:///snakes-and-ladders|, recursive=true)
if ({l} := findResources("Metrics/MeasuringJava/snakes-and-ladders-project-source.zip")) {
copy(l[scheme="zip+<l.scheme>"][path="<l.path>!/"], |tmp:///snakes-and-ladders|, recursive=true);
} else {
throw "failed to copy necessary source code to analyze for this example";
}
```

```rascal-shell
Expand Down
Binary file not shown.
6 changes: 5 additions & 1 deletion courses/WhyRascal/UseCases/CodeAsData/CodeAsData.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ language independent module called ((Library:module:analysis::m3::Core)) and a J

```rascal-prepare
import IO;
copy(|zip+testdata:///m3/snakes-and-ladders-project-source.zip!/|, |tmp:///snakes-and-ladders|, recursive=true)
if ({l} := findResources("Metrics/MeasuringJava/snakes-and-ladders-project-source.zip")) {
copy(l[scheme="zip+<l.scheme>"][path="<l.path>!/"], |tmp:///snakes-and-ladders|, recursive=true);
} else {
throw "failed to copy necessary source code to analyze for this example";
}
```

```rascal-shell
Expand Down

0 comments on commit 7b5a743

Please sign in to comment.