Skip to content

Instantly share code, notes, and snippets.

@eed3si9n
Created October 26, 2011 06:57
Show Gist options
  • Save eed3si9n/1315648 to your computer and use it in GitHub Desktop.
Save eed3si9n/1315648 to your computer and use it in GitHub Desktop.
more than 9 settings
// tasks
scalaxbConfig in scalaxb <<= new Scoped.RichTaskableKeys((combinedPackageNames in scalaxb) :^:
(packageDir in scalaxb) :^:
(classPrefix in scalaxb) :^:
(paramPrefix in scalaxb) :^:
(wrapContents in scalaxb) :^:
(generateRuntime in scalaxb) :^:
(chunkSize in scalaxb) :^:
(protocolFileName in scalaxb) :^:
(protocolPackageName in scalaxb) :^:
(laxAny in scalaxb) :^: KNil) map {
case pkg :+: pkgdir :+: cpre :+: ppre :+: w :+: rt :+: cs :+: pfn :+: ppn :+: la :+: HNil =>
ScConfig(packageNames = pkg,
packageDir = pkgdir,
classPrefix = cpre,
paramPrefix = ppre,
wrappedComplexTypes = w.toList,
generateRuntime = rt,
sequenceChunkSize = cs,
protocolFileName = pfn,
protocolPackageName = ppn,
laxAny = la
)
},
// settings
scalaxbConfig in scalaxb <<= Project.app((combinedPackageNames in scalaxb) :^:
(packageDir in scalaxb) :^:
(classPrefix in scalaxb) :^:
(paramPrefix in scalaxb) :^:
(wrapContents in scalaxb) :^:
(generateRuntime in scalaxb) :^:
(chunkSize in scalaxb) :^:
(protocolFileName in scalaxb) :^:
(protocolPackageName in scalaxb) :^:
(laxAny in scalaxb) :^: KNil) {
case pkg :+: pkgdir :+: cpre :+: ppre :+: w :+: rt :+: cs :+: pfn :+: ppn :+: la :+: HNil =>
ScConfig(packageNames = pkg,
packageDir = pkgdir,
classPrefix = cpre,
paramPrefix = ppre,
wrappedComplexTypes = w.toList,
generateRuntime = rt,
sequenceChunkSize = cs,
protocolFileName = pfn,
protocolPackageName = ppn,
laxAny = la
)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment