-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend export tests #105
Open
dslmeinte
wants to merge
10
commits into
mps2021.1
Choose a base branch
from
meinte/extend-export-tests-2021.1
base: mps2021.1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Extend export tests #105
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6e5f924
add Foo language to test LW export of an unbundled language
dslmeinte cf6c499
add a language depending on an external lib
dslmeinte ed7a303
reorganize the directory structure for clarity, and document
dslmeinte e2e52f3
add remark about (how to) download external deps
dslmeinte 07ca26c
[WIP] Build build models for test projects, so we can make a Gradle b…
dslmeinte 97f7d57
process Niko's review remarks
dslmeinte 086b934
more trials to generate test projects from gradle
f9d4cce
include build solution in artifact
2b51c38
fix up test-project
230ef54
working build for test-project and test-project-externalLib
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Ignore Gradle project-specific cache directory | ||
/.gradle/ | ||
|
||
# Ignore Gradle build output directory | ||
/build/ | ||
|
||
# Ignore downloaded dependencies | ||
/dependencies/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Default ignored files | ||
/shelf/ | ||
/workspace.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="ProjectLibraryManager"> | ||
<option name="libraries"> | ||
<map> | ||
<entry key="LionWeb"> | ||
<value> | ||
<Library> | ||
<option name="name" value="lionweb-mps.home" /> | ||
<option name="path" value="$PROJECT_DIR$/build/dependencies/io.lionweb.mps" /> | ||
</Library> | ||
</value> | ||
</entry> | ||
<entry key="mpsExtensions"> | ||
<value> | ||
<Library> | ||
<option name="name" value="mpsExtensions" /> | ||
<option name="path" value="$PROJECT_DIR$/build/dependencies/de.itemis.mps.extensions" /> | ||
</Library> | ||
</value> | ||
</entry> | ||
</map> | ||
</option> | ||
</component> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="MPSProject"> | ||
<projectModules> | ||
<modulePath path="$PROJECT_DIR$/languages/DependsOnMpsExtensions/DependsOnMpsExtensions.mpl" folder="" /> | ||
<modulePath path="$PROJECT_DIR$/solutions/testProjectExternalLib.build/testProjectExternalLib.build.msd" folder="" /> | ||
</projectModules> | ||
</component> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="VcsDirectoryMappings"> | ||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" /> | ||
</component> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Test files | ||
/*.lw-lang.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// based on /~https://github.com/specificlanguages/mps-gradle-plugin-sample | ||
|
||
plugins { | ||
id("com.specificlanguages.mps") | ||
`maven-publish` | ||
} | ||
|
||
val mpsVersionSuffix: String by project | ||
val lionwebRelease: String by project | ||
val mpsVersion: String by project | ||
val lionwebVersion: String by project | ||
val mpsExtensionsVersion: String by project | ||
|
||
repositories { | ||
mavenLocal() | ||
maven(url = "https://artifacts.itemis.cloud/repository/maven-mps") | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
"mps"("com.jetbrains:mps:$mpsVersion") | ||
"generation"("io.lionweb.lionweb-mps:lionweb-mps-$mpsVersionSuffix-lw$lionwebRelease:$lionwebVersion") | ||
"generation"("de.itemis.mps:extensions:$mpsExtensionsVersion") | ||
} | ||
|
||
tasks.assembleMps { | ||
antProperties.putAll(antProperties.get()) | ||
antProperties.put("mps-extensions.home", "${projectDir.resolve("build/dependencies/de.itemis.mps.extensions")}") | ||
} | ||
|
||
task<JavaExec>("runCommandLineTool") { | ||
dependsOn("resolveGenerationDependencies") | ||
|
||
val mpsHome = configurations | ||
.getByName("mps") | ||
.incoming | ||
.artifactView { attributes.attribute(Attribute.of("artifactType", String::class.java), "unzipped-mps-distribution") } | ||
.files | ||
.elements | ||
.map { it.single().asFile } | ||
.get() | ||
project.logger.info("mpsHome: $mpsHome") | ||
val cmdLinePath = "build/dependencies/io.lionweb.mps/io.lionweb.mps.cmdline/languages/lionweb-mps.cmdline/io.lionweb.mps.cmdline.jar" | ||
project.logger.info("cmdLinePath: $cmdLinePath") | ||
classpath( | ||
file(cmdLinePath), // Location of CommandLineTool.class | ||
fileTree("$mpsHome/lib") // $mps_home points to the MPS installation | ||
) | ||
mainClass.set("io.lionweb.mps.cmdline.CommandLineTool") | ||
|
||
val propArgs: String? = project.findProperty("args") as String? | ||
project.logger.info("propArgs: $propArgs") | ||
if (propArgs != null) { | ||
setArgsString(propArgs) | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these work (on unix machines)? I think I never tried ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do run. In CI not to completion, though — see /~https://github.com/LionWeb-io/lionweb-mps/actions/runs/11139777271/job/30957126805?pr=106 —, but that's another problem. (Locally, they run — at least, for me.)