Skip to content

Commit

Permalink
turned off tutor temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Sep 24, 2024
1 parent 88b88fb commit 27f91c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<goal>package</goal>
</goals>
</execution>
<execution>
<!--<execution>
<id>default-cli</id>
<phase>compile</phase>
<goals>
Expand All @@ -189,7 +189,7 @@
<ignore>${project.basedir}/src/org/rascalmpl/library/lang/rascal</ignore>
</ignores>
</configuration>
</execution>
</execution> -->
</executions>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/util/Reflective.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public IString getRascalVersion() {
return values.string(RascalManifest.getRascalVersionNumber());
}

public ISourceLocation resolveDependencyFromResourcesOnCurrentClasspath(IString projectName) {
public ISourceLocation resolveProjectOnClasspath(IString projectName) {
try {
return PathConfig.resolveDependencyFromResourcesOnCurrentClasspath(projectName.getValue());
}
Expand Down
30 changes: 16 additions & 14 deletions src/org/rascalmpl/library/util/Reflective.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,22 @@ data JavaBundleManifest
list[str] \Import-Package = []
);

@synopsis{Makes the location of a jar file explicit, based on the project name}
@description{
The classpath of the current JVM is searched and jar files are searched that contain
META-INF/MANIFEST.MF file that match the given `projectName`.
}
@benefits{
* The classpath is not used implicitly in this way, but rather explicitly. This helps
in making configuration issues tractable.
* The resulting `loc` value can be used to configure a ((PathConfig)) instance directly.
}
@javaClass{org.rascalmpl.library.util.Reflective}
java loc resolveDependencyFromResourcesOnCurrentClasspath(str projectName);

@synopsis{Makes the location of the currently running rascal jar explicit.}
// @synopsis{Makes the location of a jar file explicit, based on the project name}
// @description{
// The classpath of the current JVM is searched and jar files are searched that contain
// META-INF/MANIFEST.MF file that match the given `projectName`.
// }
// @benefits{
// * This is typically used to link bootstrap libraries such as rascal.jar and rascal-lsp.jar
// into testing ((PathConfig))s.
// * The classpath is not used implicitly in this way, but rather explicitly. This helps
// in making configuration issues tractable.
// * The resulting `loc` value can be used to configure a ((PathConfig)) instance directly.
// }
// @javaClass{org.rascalmpl.library.util.Reflective}
java loc resolveProjectOnClasspath(str projectName);

// @synopsis{Makes the location of the currently running rascal jar explicit.}
loc resolvedCurrentRascalJar() = resolveDependencyFromResourcesOnCurrentClasspath("rascal");

loc metafile(loc l) = l + "META-INF/RASCAL.MF";
Expand Down

0 comments on commit 27f91c0

Please sign in to comment.