Fix IntelliJ IDEA prime build error

test case
- install IntelliJ IDEA
   - New -> Project from Version Control     .....  and clone from github
- IntelliJ   Infobox  "Gradle build script found" -> "Load Gradle Project"
- in UI  execute task build
result: build error in compileHtrootServlets - (which would require manual interaction to get rid of)

reason IntelliJ apparently creates build directory before run build.gradle or configured as gradle project

solution: use other check condition for compileHtrootServlets to run
pull/447/head
reger24 3 years ago
parent c49e9039e8
commit 65034be1ee

@ -203,7 +203,7 @@ compileJava.dependsOn(prepYaCyProperties) // must be executed before compile (du
// implement ant task to simulate old Ant build for htroot, // implement ant task to simulate old Ant build for htroot,
// to avoid import of complete build.xml (as currently used) // to avoid import of complete build.xml (as currently used)
task compileHtrootServlets (dependsOn: ['jar']) { task compileHtrootServlets (dependsOn: ['jar']) {
if (buildDir.exists()) { // prevent buildscript failing on prime build with fresh git clone due to javac error during gradle init if (file('lib/yacycore.jar').exists()) { // prevent buildscript failing on prime build with fresh git clone due to javac error during gradle init
ant { ant {
path(id:'project.class.path') { path(id:'project.class.path') {
// place yacycore.jar on classpath (not automatically done) // place yacycore.jar on classpath (not automatically done)

Loading…
Cancel
Save