Skip to content

Commit

Permalink
Merge pull request #21 from jpenglert/issue-20
Browse files Browse the repository at this point in the history
Fix #20: use jar as input file
  • Loading branch information
gluck committed Sep 25, 2015
2 parents 395fac8 + ab57d00 commit ecad481
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/groovy/com/ullink/Ikvm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ class Ikvm extends ConventionTask {
return project.file(getKeyFile())
}
return new File[0]
}
}

@InputFile
def getJar() {
return project.jar.archivePath
}

def getDestDir() {
project.file(getDestinationDir())
Expand Down Expand Up @@ -214,7 +219,7 @@ class Ikvm extends ConventionTask {
commandLineArgs += "-warnaserror"
}

commandLineArgs += project.jar.archivePath
commandLineArgs += getJar()
commandLineArgs += getReferences().collect{"-reference:${it}"}

File debugFile = getDestinationDebugFile()
Expand Down

0 comments on commit ecad481

Please sign in to comment.