Adi*_*tya 6 python gradle python-2.7 python-3.x build.gradle
我尝试过以下代码,但不确定问题是什么
task runPython(type:Exec) {
workingDir 'C:\\Users\\adityaj\\git\\Learn\\TestProject'
commandLine 'python', 'main.py'
}
Run Code Online (Sandbox Code Playgroud)
还附上项目层次结构
下面是我的 build.gradle 文件:
plugins {
id 'groovy'
id 'com.gradle.plugin-publish' version '0.9.10'
id 'eclipse'
}
apply plugin: 'eclipse'
//apply plugin: 'py-build'
repositories {
jcenter()
}
dependencies {
testCompile 'pypi:Werkzeug:0.7'
testCompile 'pypi:Jinja2:2.4'
testCompile 'pypi:itsdangerous:0.21'
testCompile 'pypi:click:2.0'
}
task runPython(type:Exec) {
workingDir 'C:\\Users\\adityaj\\git\\Learn\\TestProject'
commandLine 'python', 'main.py'
}
test {
testLogging {
events 'skipped', 'failed', 'standard_error'
exceptionFormat 'full'
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2214 次 |
最近记录: |