Skip to content

Commit

Permalink
Fix for issue #16, bump version for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
psxpaul committed Mar 27, 2019
1 parent ca30ab2 commit 63bd95c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ For running a standard executable:

```groovy
plugins {
id 'com.github.psxpaul.execfork' version '0.1.9'
id 'com.github.psxpaul.execfork' version '0.1.10'
}
task startDaemon(type: com.github.psxpaul.task.ExecFork) {
Expand All @@ -27,7 +27,7 @@ For running a java main class:

```groovy
plugins {
id 'com.github.psxpaul.execfork' version '0.1.9'
id 'com.github.psxpaul.execfork' version '0.1.10'
}
task startDaemon(type: com.github.psxpaul.task.JavaExecFork) {
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.9
0.1.10
1 change: 1 addition & 0 deletions sample_projects/simple/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ build.dependsOn integrationTest
task startDaemon(type: com.github.psxpaul.task.JavaExecFork, dependsOn: 'classes') {
classpath = sourceSets.main.runtimeClasspath
main = 'com.github.psxpaul.example.Main'
args = [ '--someArg', "$buildDir/somePath" ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public class Main {
public static void main(String[] args) throws Exception {
System.out.println("Daemon started with args: " + String.join(", ", args));
System.out.println("Daemon is now running!");
while(true) {
System.out.println("PING");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class AbstractExecFork : DefaultTask(), ProcessForkOptions {
private val log: Logger = LoggerFactory.getLogger(javaClass.simpleName)

@Input
var args: MutableList<String> = mutableListOf()
var args: MutableList<CharSequence> = mutableListOf()

@OutputFile
@Optional
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/psxpaul/task/ExecFork.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ open class ExecFork @Inject constructor(fileResolver: PathToFileResolver) : Abst
override fun getProcessArgs(): List<String>? {
val processArgs: MutableList<String> = mutableListOf()
processArgs.add(executable!!)
processArgs.addAll(args)
processArgs.addAll(args.map(CharSequence::toString))
return processArgs
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/psxpaul/task/JavaExecFork.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ open class JavaExecFork @Inject constructor(fileResolver: PathToFileResolver) :
processArgs.add((bootstrapClasspath + classpath!!).asPath)
processArgs.addAll(allJvmArgs)
processArgs.add(main!!)
processArgs.addAll(args)
processArgs.addAll(args.map(CharSequence::toString))
return processArgs
}
}

0 comments on commit 63bd95c

Please sign in to comment.