Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpm Plugin throws exception when using "with [CopySpec]" #39

Open
melodious opened this issue Jun 27, 2013 · 0 comments
Open

Rpm Plugin throws exception when using "with [CopySpec]" #39

melodious opened this issue Jun 27, 2013 · 0 comments

Comments

@melodious
Copy link

The following code throws an exception. This code works seamlessly with copy, jar, zip, tar tasks:

distCopySpec = copySpec {
  into("${project.name}-${version}") {
    with project.distAllBatchCopySpec

    from('src/main/config') {
      fileMode = 0755
      exclude('build.properties')
    }

    into('lib') {
      from(jar.outputs.files)
      from(configurations.addToDist)
    }

    into('logs') {
      fileMode = 777
      from(tempLogDir)
      include("temp.log")
    }
  }
}

task rpm(dependsOn: jar, type: Rpm) {
  baseName = componentName
  destinationDir = distDir
  arch = rpmArchitecture
  os = rpmOs
  release = rel
  group = rpmGroup
  vendor = rpmVendor
  license = rpmLicense

  with distCopySpec
 }

This is the exception:
Caused by: groovy.lang.MissingPropertyException: No such property: createDirectoryEntry for class: org.gradle.api.internal.file.copy.CopySpecImpl$WrapperCopySpec
at com.trigonic.gradle.plugins.rpm.RpmCopySpecVisitor.visitDir(RpmCopySpecVisitor.groovy:87)
at org.gradle.api.internal.file.copy.NormalizingCopySpecVisitor.maybeVisit(NormalizingCopySpecVisitor.java:65)
at org.gradle.api.internal.file.copy.NormalizingCopySpecVisitor.visitFile(NormalizingCopySpecVisitor.java:69)
at org.gradle.api.internal.file.copy.MappingCopySpecVisitor.visitFile(MappingCopySpecVisitor.java:57)
at org.gradle.api.internal.file.collections.DirectoryFileTree.walkDir(DirectoryFileTree.java:156)
at org.gradle.api.internal.file.collections.DirectoryFileTree.visitFrom(DirectoryFileTree.java:124)
at org.gradle.api.internal.file.collections.DirectoryFileTree.visit(DirectoryFileTree.java:114)
at org.gradle.api.internal.file.collections.FileTreeAdapter.visit(FileTreeAdapter.java:96)
at org.gradle.api.internal.file.CompositeFileTree.visit(CompositeFileTree.java:54)
at org.gradle.api.internal.file.copy.CopyActionImpl.execute(CopyActionImpl.java:64)
at org.gradle.api.tasks.AbstractCopyTask.copy(AbstractCopyTask.java:42)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant