Is there any reason why java source files could not be found when running compileJava with a sourceset


(Veerav Naidu) #1

sourceSets {

eaps {

java {

srcDirs = [‘ejbSrcDir’]

}

}

}

println sourceSets.eaps.getAllSource()

compileJava {

source ‘eaps’

include ‘ejbDocDir’

}


(Peter Niederwieser) #2

‘source ‘eaps’’ adds a source directory named “eaps”. Try ‘source = sourceSets.eaps.java.srcDirs’.