1

.classpath ファイルでソース参照を取得しようとしているので、webapp/.classpath、webapp/.project、および webapp/.settings のものを削除しますが、gradle は毎回これを出力し続けます...

:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
:master:eclipseClasspath
:master:eclipseJdt
:master:eclipseProject
:master:eclipse
:webapp:eclipse UP-TO-DATE

いいえ、.classpath ファイルがないため、明らかに最新ではありません!!!! grrrrrrr、私の webapp の依存関係は次のように定義されています... (マスター プロジェクトは ivy を使用して多くの依存関係を定義しています)

    dependencies {
        compile project(':master')

        compile fileTree(dir: '../webapp/play-1.2.5/framework/lib', include: '*.jar')
                                                                                    //, excludes: ['*log4j*','slf4j*'])
        compile fileTree(dir: '../webapp/play-1.2.5/framework', include: 'play-*.jar')
    }

私のマスターの依存関係はそうです

 project(':master') {
    project.ext.genLibDir = file('../webapp/lib')
    project.ext.fixedLibDir = file('libother')

    configurations {
        compile.exclude module: 'commons'
    all*.exclude group: 'org.springframework'
    all*.exclude module: 'log4j'
    all*.exclude module: 'slf4j-log4j12'
    all*.exclude module: 'junit'
    all*.exclude module: 'antlr'
    all*.exclude module: 'snakeyaml'
    }

    dependencies {
            compile group: 'org.acegisecurity',  name: 'acegi-security',          version: '1.0.7'

            //compile group: 'org.hibernate',    name: 'hibernate-entitymanager', version: '4.1.4.Final'
            //compile group: 'org.slf4j',          name: 'slf4j-api',               version: '1.6.6'
            compile 'org.slf4j:log4j-over-slf4j:1.6.6'
            compile 'org.slf4j:jcl-over-slf4j:1.6.6'
            compile 'com.ning:async-http-client:1.7.6'
            //ERASE this one as this client seems to suck usability-wise!!!
            compile 'org.apache.httpcomponents:httpasyncclient:4.0-beta3'

            compile group: 'ch.qos.logback',     name: 'logback-core',            version: '1.0.6'
            compile group: 'ch.qos.logback',     name: 'logback-classic',         version: '1.0.6'
            //compile group: 'joda-time',         name: 'joda-time',               version: '2.1'
            compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl',    version: '1.9.8'

何が間違っている可能性がありますか?.classpath ファイルが生成されないのはなぜですか?

「gradle eclipse」を実行しています

webapp:eclipse のこれらのログでデバッグ結果をオンにすると、

07:34:13.822 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :webapp:eclipse
07:34:13.822 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':webapp:eclipse'
07:34:13.823 [INFO] [org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter] Skipping task ':webapp:eclipse' as it has no actions.
07:34:13.823 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':webapp:eclipse'
07:34:13.823 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :webapp:eclipse UP-TO-DATE

私が言及する必要があるビルドファイルの別のセクションは、Eclipseプラグインをすべてのプロジェクトに適用することです。

 allprojects {
    apply plugin: 'java'
    apply plugin: 'eclipse'

プロジェクト構造は単純です

SDI
   master
   webapp

私の意見では、ロギングは十分ではなく、それ自体がバグであり、最新のものであれば理由がわかるので続行できます。とにかく、より多くのログを有効にするには?

ありがとう、ディーン

4

0 に答える 0