From 0ed49ea9b38d9f4bc6ed0bfde12737b07ac348c0 Mon Sep 17 00:00:00 2001 From: Danny Thomas Date: Wed, 23 Mar 2016 13:16:25 -0700 Subject: [PATCH] Failing test for hash directories. Rollback to Gradle 2.10 so test passes --- gradle/wrapper/gradle-wrapper.properties | 4 ++-- .../gradle/plugins/deb/DebPluginTest.groovy | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 228d5db4..41a01a32 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Mar 21 12:46:53 PDT 2016 +#Wed Mar 23 13:14:43 PDT 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-bin.zip diff --git a/src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginTest.groovy b/src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginTest.groovy index 7750df04..4f793056 100644 --- a/src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginTest.groovy +++ b/src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginTest.groovy @@ -1062,4 +1062,27 @@ class DebPluginTest extends ProjectSpec { } taskA.getAllDependencies() == taskB.getAllDependencies() } + + @Issue("") + def 'special characters in directory names'() { + given: + File nodeModules = new File(projectDir, 'node_modules') + File file = new File(nodeModules, "memoizee/node_modules/es5-ext/string/#/at.js") + Files.createParentDirs(file) + file.text = "dummy" + project.apply plugin: 'nebula.deb' + Deb debTask = project.task('buildDeb', type: Deb) { + user 'test' + permissionGroup 'testgroup' + from(projectDir) + } + + when: + debTask.execute() + + then: + def scan = new Scanner(debTask.archivePath) + def entry = scan.getEntry('./node_modules/memoizee/node_modules/es5-ext/string/#/at.js') + entry.isFile() + } }