我试图用MPJ Express(我的家庭工作)做点什么 我找不到如何将-np参数传递给MPJRun。
group 'ST1'
version '1.0-SNAPSHOT'
apply plugin: 'application'
mainClassName = 'example.Main'
sourceCompatibility = 1.8
def mpjHome = System.getenv( 'MPJ_HOME')
def mpjStarter = files("$mpjHome/lib/starter.jar")
def mpjJar = files("$mpjHome/lib/mpj.jar ")
def mpjClasspath = sourceSets.main.runtimeClasspath - mpjJar
dependencies {
compile mpjJar
}
run{
main = 'runtime.starter.MPJRun'
classpath = mpjStarter
args '-np 2' ,mainClassName, '-cp' , mpjClasspath.asPath
dependsOn classes
}
答案 0 :(得分:0)
您的args
行应如下所示:
args '-np', 2 ,mainClassName, '-cp' , mpjClasspath.asPath
以gradle显示配置的电影:https://www.youtube.com/watch?v=gj-3Td6ZOyc&t=942s