Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.4.0: resourcesDir -> resources in cmdline plugin

  • Loading branch information...
commit d2f5a2e420fedd115f468fe6856b4d60b2980f42 1 parent 8ed8e0a
@ypujante ypujante authored
View
1  README.md
@@ -123,6 +123,7 @@ as `cmdline`:
}
cmdline {
replacementTokens = [__version__: project.version]
+ resources << fileTree(dir: rootDir, includes: ['*.txt', '*.md'])
}
4. Compilation
View
9 RELEASE.md
@@ -1,3 +1,12 @@
+1.4.0 (2010/12/14)
+------------------
+* changed `org.linkedin.cmdline` plugin to use a `resources` convention (instead of `resourcesDir`) which is a list of whatever can be provided as an input of `CopySpec.from` (with a default of `'src/cmdline/resources'`)
+
+ Example:
+ cmdline {
+ resources << fileTree(dir: rootDir, includes: ['*.txt', '*.md'])
+ }
+
1.3.1 (2010/12/02)
------------------
* changed `org.linkedin.spec` to be in snapshot mode by default and use `-Prelease=true` to force non snapshot
View
15 buildSrc/src/main/groovy/org/linkedin/gradle/plugins/CmdLinePlugin.groovy
@@ -72,12 +72,14 @@ class CmdLinePlugin implements Plugin<Project>
}
}
- project.copy {
- from(convention.resourcesDir) {
- if(convention.replacementTokens)
- filter(tokens: convention.replacementTokens, ReplaceTokens)
+ convention.resources?.each { resource ->
+ project.copy {
+ from(resource) {
+ if(convention.replacementTokens)
+ filter(tokens: convention.replacementTokens, ReplaceTokens)
+ }
+ into convention.assemblePackageFile
}
- into convention.assemblePackageFile
}
convention.folders?.each { project.mkdir(new File(convention.assemblePackageFile, it)) }
@@ -192,7 +194,7 @@ class CmdLinePluginConvention
File installDir
File installFile
def replacementTokens = [:]
- File resourcesDir
+ def resources = ['src/cmdline/resources']
def folders = ['logs']
String cmdlineLogLevel = "info"
Compression compression = Compression.GZIP
@@ -212,7 +214,6 @@ class CmdLinePluginConvention
_project = project;
basePackageName = project.name
packageVersion = project.version
- resourcesDir = new File(project.projectDir, 'src/cmdline/resources')
}
def cmdline(Closure closure)
View
2  project-spec.groovy
@@ -16,7 +16,7 @@
spec = [
name: 'gradle-plugins',
group: 'org.linkedin',
- version: '1.3.1',
+ version: '1.4.0',
versions: [
groovy: '1.7.5'
Please sign in to comment.
Something went wrong with that request. Please try again.