Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed May 19, 2022
1 parent d859753 commit 14805e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions metafix/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ task validateFixFile(type: JavaExec, group: 'Verification') {
classpath = sourceSets.main.runtimeClasspath
}

def mwe2File = 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
def xtextFile = 'src/main/java/org/metafacture/metafix/Fix.xtext'

task validateXtextLanguage(type: JavaExec, group: 'Verification') {
Expand All @@ -105,10 +106,10 @@ task validateXtextLanguage(type: JavaExec, group: 'Verification') {
task generateXtextLanguage(type: JavaExec) {
mainClass = 'org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher'
classpath = configurations.mwe2
inputs.file 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
inputs.file mwe2File
inputs.file xtextFile
outputs.dir 'src/main/xtext-gen'
args += 'src/main/java/org/metafacture/metafix/GenerateFix.mwe2'
args += mwe2File
args += '-p'
args += "rootPath=/${projectDir}/.."
}
Expand Down
7 changes: 1 addition & 6 deletions metafix/src/main/java/org/metafacture/metafix/Value.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ public Value(final Map<String, Value> hash) {
}

public Value(final String string) {
type = string != null ? Type.String : null;

this.array = null;
this.hash = null;
this.string = string;
this.path = null;
this(string, null);
}

public Value(final int integer) {
Expand Down

0 comments on commit 14805e9

Please sign in to comment.