-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
buildscriptAn issue with the buildscriptAn issue with the buildscriptdefectSomething that is supposed to work, but doesn't. Less severe than a "bug"Something that is supposed to work, but doesn't. Less severe than a "bug"
Milestone
Description
https://hub.jmonkeyengine.org/t/libdist-script-failure-for-jme/48041/1
The 'libDist' task in the build.gradle file is failing. I've tried running the task with both the SDK and IntelliJ, but the issue persists.
I'm getting the following error:
* Where:
Script 'C:\jme-workspace\jmonkeyengine\build.gradle' line: 91
* What went wrong:
Execution failed for task ':libDist'.
> Could not copy file 'C:\jme-workspace\jmonkeyengine\jme3-android\build\libs\jme3-android-3.8.0-SNAPSHOT.jar' to 'C:\jme-workspace\jmonkeyengine\build\libDist\lib\jme3-android.task ':jme3-android:jar' property 'archiveExtension''.
> C:\jme-workspace\jmonkeyengine\build\libDist\lib\jme3-android.task ':jme3-android:jar' property 'archiveExtension' (The filename, directory name, or volume label syntax is incorrect)
from build.gradle:
task libDist(dependsOn: subprojects.build, description: 'Builds and copies the engine binaries, sources and javadoc to build/libDist') {
doLast {
File libFolder = mkdir("$buildDir/libDist/lib")
File sourceFolder = mkdir("$buildDir/libDist/sources")
File javadocFolder = mkdir("$buildDir/libDist/javadoc")
subprojects.each {project ->
if(!project.hasProperty('mainClassName')){
project.tasks.withType(Jar).each {archiveTask ->
if(archiveTask.archiveClassifier == "sources"){
copy {
from archiveTask.archivePath
into sourceFolder
rename {project.name + '-' + archiveTask.archiveClassifier +'.'+ archiveTask.archiveExtension}
}
} else if(archiveTask.archiveClassifier == "javadoc"){
copy {
from archiveTask.archivePath
into javadocFolder
rename {project.name + '-' + archiveTask.archiveClassifier +'.'+ archiveTask.archiveExtension}
}
} else{
copy {
from archiveTask.archivePath
into libFolder
rename {project.name + '.' + archiveTask.archiveExtension}
}
}
}
}
}
}
}Metadata
Metadata
Assignees
Labels
buildscriptAn issue with the buildscriptAn issue with the buildscriptdefectSomething that is supposed to work, but doesn't. Less severe than a "bug"Something that is supposed to work, but doesn't. Less severe than a "bug"