The gui.war reference is actually a folder (however I'm no longer using this
so please ignore that). I've updated the ear task to use war.archivePath
and the war file is now getting included as expected. However the JAR files
that were previoulsy getting included now aren't, the ear only contains the
war file.
I think I'm struggling to know which methods and properties I can call on
objects as I'm a Java developer and haven't used Groovy before. I'm used to
having code completion in an IDE, but struggle with Gradle to know which
methods and properties are available for objects e.g. in this case
war.archivePath. Do you have any tips on this? Should I keep referencing
the API docs or User guide for info like this?
project(':appletgenerator') {
apply plugin: 'war'
dependencies {
compile project(':gui')
compile ":j2ee", ":log4j" //picked up from repository defined in
'subprojects' section
}
war {
from 'skeleton'
filter(ReplaceTokens, tokens: ['Internal-Release': '2.1',
'Unspecified' : 'Today'])
}
task ear(dependsOn: 'war', type: Zip) {
archiveName = 'myApp.ear'
from war.archivePath
// include the jars from the runtime classpath
from sourceSets.main.runtimeClasspath.collect { it.isFile() }
}
}
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Dependancy-error-with-EAR-task-tp3261740p3267014.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email