We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb3c080 commit d8345deCopy full SHA for d8345de
cloudfoundry-gradle-plugin/src/main/groovy/org/cloudfoundry/gradle/tasks/PushCloudFoundryHelper.groovy
@@ -64,7 +64,11 @@ class PushCloudFoundryHelper {
64
}
65
66
void uploadApplication() {
67
- log "Uploading ${file}"
+ if (file.isDirectory()) {
68
+ log "Uploading from ${file}"
69
+ } else {
70
+ log "Uploading file ${file}"
71
+ }
72
73
client.uploadApplication(application, file)
74
@@ -74,7 +78,7 @@ class PushCloudFoundryHelper {
78
75
79
76
80
void ensureFileExists() {
77
- if (!file || !file.isFile()) {
81
+ if (!file || !file.exists()) {
82
throw new GradleException("You must specify a valid file ('${file}' is not valid)")
83
84
0 commit comments