Gradle如何添加多个包含而不会出错

时间:2016-08-03 21:03:45

标签: gradle ant

当我放入多个包含时,它会给我一个错误提示。从gradle.properties调用我的属性也没有错误。

ant.path(id: 'cobertura.classpath.id') {
    //resource ('tasks.properties')
    fileset(dir: project.'cobertura.dir', includes: 'cobertura-2.1.1.jar', includes: 'lib/**/*.jar')
    fileset(dir: project.'junit.dir', includes: 'junit-4.8.2.jar')
}

ant.path(id: 'classpath') {
    ant.pathelement (path: 'dist/classes')
    fileset(dir: project.'hdm.dir', includes: '**/*.jar')
    fileset(dir: project.'dozer.dir', includes: '*.jar')
    fileset(dir: project.'commons-lang3.dir', includes: '*.jar')
    fileset(dir: project.'spring-integration.dir', includes: 'spring-integration-core' + '-' + project.'spring-integration.version' + '.jar'
            includes: 'spring-integration-stream-' + project.'spring-integration.version' + '.jar'
            includes: 'spring-integration-jms-' + project.'spring-integration.version' + '.jar')
}

问题提示 Command Line img of error

0 个答案:

没有答案