Permalink
Browse files

+ initial migration to Gradle

  • Loading branch information...
Costin Leau
Costin Leau committed Sep 19, 2011
1 parent f58e644 commit ebc156d60b7c2ffdd449521cfa26dabc83f9ecb8
Showing with 3,441 additions and 771 deletions.
  1. +1 −0 .gitignore
  2. 0 {spring-hadoop-core → }/.springBeans
  3. +206 −0 build.gradle
  4. +97 −0 docs/build.gradle
  5. BIN docs/src/api/doc-files/th-background.png
  6. +24 −0 docs/src/api/overview.html
  7. +48 −0 docs/src/api/spring-javadoc.css
  8. +8 −0 docs/src/info/changelog.txt
  9. +201 −0 docs/src/info/license.txt
  10. +22 −0 docs/src/info/notice.txt
  11. +27 −0 docs/src/info/readme.txt
  12. +64 −0 docs/src/reference/docbook/index.xml
  13. +35 −0 docs/src/reference/resources/css/highlight.css
  14. +99 −0 docs/src/reference/resources/css/manual.css
  15. BIN docs/src/reference/resources/images/admon/blank.png
  16. BIN docs/src/reference/resources/images/admon/caution.gif
  17. BIN docs/src/reference/resources/images/admon/caution.png
  18. BIN docs/src/reference/resources/images/admon/caution.tif
  19. BIN docs/src/reference/resources/images/admon/draft.png
  20. BIN docs/src/reference/resources/images/admon/home.gif
  21. BIN docs/src/reference/resources/images/admon/home.png
  22. BIN docs/src/reference/resources/images/admon/important.gif
  23. BIN docs/src/reference/resources/images/admon/important.png
  24. BIN docs/src/reference/resources/images/admon/important.tif
  25. BIN docs/src/reference/resources/images/admon/next.gif
  26. BIN docs/src/reference/resources/images/admon/next.png
  27. BIN docs/src/reference/resources/images/admon/note.gif
  28. BIN docs/src/reference/resources/images/admon/note.png
  29. BIN docs/src/reference/resources/images/admon/note.tif
  30. BIN docs/src/reference/resources/images/admon/prev.gif
  31. BIN docs/src/reference/resources/images/admon/prev.png
  32. BIN docs/src/reference/resources/images/admon/tip.gif
  33. BIN docs/src/reference/resources/images/admon/tip.png
  34. BIN docs/src/reference/resources/images/admon/tip.tif
  35. BIN docs/src/reference/resources/images/admon/toc-blank.png
  36. BIN docs/src/reference/resources/images/admon/toc-minus.png
  37. BIN docs/src/reference/resources/images/admon/toc-plus.png
  38. BIN docs/src/reference/resources/images/admon/up.gif
  39. BIN docs/src/reference/resources/images/admon/up.png
  40. BIN docs/src/reference/resources/images/admon/warning.gif
  41. BIN docs/src/reference/resources/images/admon/warning.png
  42. BIN docs/src/reference/resources/images/admon/warning.tif
  43. BIN docs/src/reference/resources/images/callouts/1.png
  44. BIN docs/src/reference/resources/images/callouts/10.png
  45. BIN docs/src/reference/resources/images/callouts/11.png
  46. BIN docs/src/reference/resources/images/callouts/12.png
  47. BIN docs/src/reference/resources/images/callouts/13.png
  48. BIN docs/src/reference/resources/images/callouts/14.png
  49. BIN docs/src/reference/resources/images/callouts/15.png
  50. BIN docs/src/reference/resources/images/callouts/2.png
  51. BIN docs/src/reference/resources/images/callouts/3.png
  52. BIN docs/src/reference/resources/images/callouts/4.png
  53. BIN docs/src/reference/resources/images/callouts/5.png
  54. BIN docs/src/reference/resources/images/callouts/6.png
  55. BIN docs/src/reference/resources/images/callouts/7.png
  56. BIN docs/src/reference/resources/images/callouts/8.png
  57. BIN docs/src/reference/resources/images/callouts/9.png
  58. BIN docs/src/reference/resources/images/logo.png
  59. BIN docs/src/reference/resources/images/xdev-spring_logo.jpg
  60. +449 −0 docs/src/reference/resources/xsl/fopdf.xsl
  61. +44 −0 docs/src/reference/resources/xsl/highlight-fo.xsl
  62. +42 −0 docs/src/reference/resources/xsl/highlight.xsl
  63. +145 −0 docs/src/reference/resources/xsl/html-custom.xsl
  64. +142 −0 docs/src/reference/resources/xsl/html-single-custom.xsl
  65. +107 −0 docs/src/reference/resources/xsl/html.xsl
  66. +221 −0 docs/src/reference/resources/xsl/html_chunk.xsl
  67. +522 −0 docs/src/reference/resources/xsl/pdf-custom.xsl
  68. +523 −0 docs/src/reference/resources/xsl/pdf-custom.xsl.bak
  69. +27 −0 gradle.properties
  70. BIN gradle/wrapper/gradle-wrapper.jar
  71. +6 −0 gradle/wrapper/gradle-wrapper.properties
  72. +168 −0 gradlew
  73. +82 −0 gradlew.bat
  74. +126 −0 maven.gradle
  75. +0 −350 pom.xml
  76. +5 −0 settings.gradle
  77. +0 −81 spring-hadoop-core/pom.xml
  78. +0 −340 spring-hadoop-parent/pom.xml
  79. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/GenericJobRunner.java
  80. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/HadoopException.java
  81. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/JobTemplate.java
  82. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/annotation/Key.java
  83. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/annotation/Mapper.java
  84. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/annotation/Reducer.java
  85. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/annotation/Value.java
  86. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/annotation/Values.java
  87. 0 ...rc/main/java/org/springframework/hadoop/configuration/AbstractExpressionEvaluatorFactoryBean.java
  88. 0 ...ing-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/ExpressionFactory.java
  89. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/JobFactoryBean.java
  90. 0 ...ing-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/MapperFactoryBean.java
  91. 0 ...ng-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/ReducerFactoryBean.java
  92. 0 ...oop-core → }/src/main/java/org/springframework/hadoop/configuration/xml/CoreNamespaceHandler.java
  93. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/xml/MapperParser.java
  94. 0 ...ng-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/xml/NamespaceUtils.java
  95. 0 ...ing-hadoop-core → }/src/main/java/org/springframework/hadoop/configuration/xml/ReducerParser.java
  96. 0 ...oop-core → }/src/main/java/org/springframework/hadoop/context/BootstrapPropertiesFactoryBean.java
  97. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/context/ContextLoader.java
  98. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/context/DefaultContextLoader.java
  99. 0 ...doop-core → }/src/main/java/org/springframework/hadoop/context/HadoopApplicationContextUtils.java
  100. 0 ...oop-core → }/src/main/java/org/springframework/hadoop/context/HadoopConfigurationFactoryBean.java
  101. 0 ...hadoop-core → }/src/main/java/org/springframework/hadoop/context/HadoopPropertiesFactoryBean.java
  102. 0 ...oop-core → }/src/main/java/org/springframework/hadoop/convert/HadoopConversionServiceFactory.java
  103. 0 ...core → }/src/main/java/org/springframework/hadoop/convert/HadoopConversionServiceFactoryBean.java
  104. 0 ...hadoop-core → }/src/main/java/org/springframework/hadoop/convert/IterableCollectionConverter.java
  105. 0 ...hadoop-core → }/src/main/java/org/springframework/hadoop/convert/IterableToIterableConverter.java
  106. 0 ...-hadoop-core → }/src/main/java/org/springframework/hadoop/convert/StreamingMapToMapConverter.java
  107. 0 ...→ }/src/main/java/org/springframework/hadoop/convert/support/BooleanBooleanWritableConverter.java
  108. 0 ...→ }/src/main/java/org/springframework/hadoop/convert/support/BooleanWritableBooleanConverter.java
  109. 0 ...-core → }/src/main/java/org/springframework/hadoop/convert/support/ByteByteWritableConverter.java
  110. 0 ...-core → }/src/main/java/org/springframework/hadoop/convert/support/ByteWritableByteConverter.java
  111. 0 ...e → }/src/main/java/org/springframework/hadoop/convert/support/DoubleDoubleWritableConverter.java
  112. 0 ...e → }/src/main/java/org/springframework/hadoop/convert/support/DoubleWritableDoubleConverter.java
  113. 0 ...ore → }/src/main/java/org/springframework/hadoop/convert/support/FloatFloatWritableConverter.java
  114. 0 ...ore → }/src/main/java/org/springframework/hadoop/convert/support/FloatWritableFloatConverter.java
  115. 0 ...ore → }/src/main/java/org/springframework/hadoop/convert/support/IntWritableIntegerConverter.java
  116. 0 ...ore → }/src/main/java/org/springframework/hadoop/convert/support/IntegerIntWritableConverter.java
  117. 0 ...-core → }/src/main/java/org/springframework/hadoop/convert/support/LongLongWritableConverter.java
  118. 0 ...-core → }/src/main/java/org/springframework/hadoop/convert/support/LongWritableLongConverter.java
  119. 0 ...hadoop-core → }/src/main/java/org/springframework/hadoop/convert/support/StringTextConverter.java
  120. 0 ...hadoop-core → }/src/main/java/org/springframework/hadoop/convert/support/TextStringConverter.java
  121. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/HdfsResource.java
  122. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/HdfsResourceLoader.java
  123. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/KeyValue.java
  124. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/LineMapper.java
  125. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/SeparatorLineMapper.java
  126. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/io/TextInputFormat.java
  127. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringCombiner.java
  128. 0 ...oop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringGroupingComparator.java
  129. 0 ...ing-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringInputFormat.java
  130. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringMapper.java
  131. 0 ...ng-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringOutputFormat.java
  132. 0 ...ing-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringPartitioner.java
  133. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringReducer.java
  134. 0 ...-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/AutowiringSortComparator.java
  135. 0 ...op-core → }/src/main/java/org/springframework/hadoop/mapreduce/ConversionServiceRecordWriter.java
  136. 0 ...adoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/ExpressionEvaluatingMapper.java
  137. 0 ...doop-core → }/src/main/java/org/springframework/hadoop/mapreduce/ExpressionEvaluatingReducer.java
  138. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/mapreduce/RecordWriterMap.java
  139. 0 ...g-hadoop-core → }/src/main/java/org/springframework/hadoop/util/BeanFactoryConversionService.java
  140. 0 ...doop-core → }/src/main/java/org/springframework/hadoop/util/ConversionServiceIterableAdapter.java
  141. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/PropertiesUtils.java
  142. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/AllParameters.java
  143. 0 ...ng-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/AnnotatedParameters.java
  144. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/FirstParameter.java
  145. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/MethodUtils.java
  146. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/ParameterAction.java
  147. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/ParameterMatcher.java
  148. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/ParameterRule.java
  149. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/ParameterRules.java
  150. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/SimpleRule.java
  151. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/SingleParameter.java
  152. 0 {spring-hadoop-core → }/src/main/java/org/springframework/hadoop/util/reflect/TypedParameters.java
  153. 0 {spring-hadoop-core → }/src/main/resources/META-INF/spring.handlers
  154. 0 {spring-hadoop-core → }/src/main/resources/META-INF/spring.schemas
  155. 0 ...op-core → }/src/main/resources/org/springframework/hadoop/configuration/xml/spring-hadoop-1.0.xsd
  156. 0 {spring-hadoop-core → }/src/test/assembly/test.xml
  157. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/configuration/ConversionTests.java
  158. 0 ...adoop-core → }/src/test/java/org/springframework/hadoop/configuration/ExpressionFactoryTests.java
  159. 0 ...e → }/src/test/java/org/springframework/hadoop/configuration/xml/NamespaceBasedConfiguration.java
  160. 0 ...op-core → }/src/test/java/org/springframework/hadoop/configuration/xml/NamespaceParsingTests.java
  161. 0 ...g-hadoop-core → }/src/test/java/org/springframework/hadoop/context/DefaultContextLoaderTests.java
  162. 0 ...ore → }/src/test/java/org/springframework/hadoop/convert/support/BasicWritableConvertersTest.java
  163. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/examples/RandomWriter.java
  164. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/examples/Sort.java
  165. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/examples/SortTests.java
  166. 0 ...adoop-core → }/src/test/java/org/springframework/hadoop/mapreduce/AutowiringPartitionerTests.java
  167. 0 ...-core → }/src/test/java/org/springframework/hadoop/mapreduce/ExpressionEvaluatingMapperTests.java
  168. 0 ...core → }/src/test/java/org/springframework/hadoop/mapreduce/ExpressionEvaluatingReducerTests.java
  169. 0 ...ng-hadoop-core → }/src/test/java/org/springframework/hadoop/test/kv/KeyValueIntegrationTests.java
  170. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/kv/MapperReducer.java
  171. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/CustomTokenizer.java
  172. 0 ...ing-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/CustomTokenizerMapper.java
  173. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/GenericConfiguration.java
  174. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/HadoopSetUp.java
  175. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/IntSumReducer.java
  176. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/JobConfiguration.java
  177. 0 ...-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/KitchenSinkConfiguration.java
  178. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/LiteConfiguration.java
  179. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/PojoConfiguration.java
  180. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/RepeatProcessor.java
  181. 0 ...ng-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/StatelessConfiguration.java
  182. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/TokenizerMapper.java
  183. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/VanillaConfiguration.java
  184. 0 ...hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/WordCountIntegrationTests.java
  185. 0 ...hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/WordCountPerformanceTests.java
  186. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/WordTokenizer.java
  187. 0 ...g-hadoop-core → }/src/test/java/org/springframework/hadoop/test/word/config/JobConfiguration.java
  188. 0 {spring-hadoop-core → }/src/test/java/org/springframework/hadoop/util/reflect/MatcherTests.java
  189. BIN {spring-hadoop-core → }/src/test/resources/book.zip
  190. 0 {spring-hadoop-core → }/src/test/resources/configuration/xml/hadoop-ns-1.xml
  191. 0 {spring-hadoop-core → }/src/test/resources/input/kv/input.txt
  192. 0 {spring-hadoop-core → }/src/test/resources/input/word/input.txt
  193. 0 {spring-hadoop-core → }/src/test/resources/jobs/kv/job-context.xml
  194. 0 {spring-hadoop-core → }/src/test/resources/jobs/word/autowired-job-context.xml
  195. 0 {spring-hadoop-core → }/src/test/resources/jobs/word/bootstrap-job-context.xml
  196. 0 {spring-hadoop-core → }/src/test/resources/log4j.properties
  197. 0 {spring-hadoop-core → }/src/test/resources/org/springframework/hadoop/context/job-context.xml
  198. 0 ...g-hadoop-core → }/src/test/resources/org/springframework/hadoop/examples/RandomWriter-context.xml
  199. 0 {spring-hadoop-core → }/src/test/resources/org/springframework/hadoop/examples/Sort-context.xml
  200. 0 {spring-hadoop-core → }/template.mf
View
@@ -1,5 +1,6 @@
target
bin
+build
.settings
.classpath
.project
File renamed without changes.
View
@@ -0,0 +1,206 @@
+// used for artifact names, building doc upload urls, etc.
+description = 'Spring Hadoop'
+abbreviation = 'SHDP'
+
+apply plugin: 'base'
+
+buildscript {
+ repositories {
+ add(new org.apache.ivy.plugins.resolver.URLResolver()) {
+ name = "GitHub"
+ addIvyPattern 'http://cloud.github.com/downloads/costin/gradle-stuff/[organization].[module]-[artifact]-[revision].[ext]'
+ addArtifactPattern 'http://cloud.github.com/downloads/costin/gradle-stuff/[organization].[module]-[revision].[ext]'
+ }
+ mavenCentral()
+ mavenLocal()
+ mavenRepo name: "springsource-org-release", urls: "http://repository.springsource.com/maven/bundles/release"
+ mavenRepo name: "springsource-org-external", urls: "http://repository.springsource.com/maven/bundles/external"
+ }
+
+ dependencies {
+ classpath 'org.springframework:gradle-stuff:0.1-20110421'
+ classpath 'net.sf.docbook:docbook-xsl:1.75.2:ns-resources@zip'
+ }
+}
+
+allprojects {
+ group = 'org.springframework.hadoop'
+ version = "$springHadoopVersion"
+
+ releaseBuild = version.endsWith('RELEASE')
+ snapshotBuild = version.endsWith('SNAPSHOT')
+
+
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ // Public Spring artefacts
+ mavenRepo name: "springsource-org-release", urls: "http://repository.springsource.com/maven/bundles/release"
+ mavenRepo name: "spring-release", urls: "http://maven.springframework.org/release"
+ mavenRepo name: "spring-milestone", urls: "http://maven.springframework.org/milestone"
+ mavenRepo name: "spring-snapshot", urls: "http://maven.springframework.org/snapshot"
+ mavenRepo name: "sonatype-snapshot", urls: "http://oss.sonatype.org/content/repositories/snapshots"
+ mavenRepo name: "ext-snapshots", urls: "http://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/"
+ }
+
+}
+
+
+apply plugin: "java"
+apply plugin: "maven"
+apply plugin: 'eclipse' // `gradle eclipse` to generate .classpath/.project
+apply plugin: 'idea' // `gradle idea` to generate .ipr/.iml
+apply plugin: 'docbook'
+apply plugin: 'bundlor' // all core projects should be OSGi-compliant
+
+bundlor.useProjectProps = true
+[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:-serial"]
+
+//test {
+// forkEvery = 1
+//}
+
+// Common dependencies
+dependencies {
+ // Logging
+ compile "org.slf4j:slf4j-api:$slf4jVersion"
+ compile "org.slf4j:jcl-over-slf4j:$slf4jVersion"
+ runtime "log4j:log4j:$log4jVersion"
+ runtime "org.slf4j:slf4j-log4j12:$slf4jVersion"
+
+ // Spring Framework
+ compile("org.springframework:spring-core:$springVersion") {
+ exclude module: "commons-logging"
+ }
+ compile "org.springframework:spring-context-support:$springVersion"
+ compile "org.springframework:spring-tx:$springVersion"
+ compile "org.springframework:spring-aop:$springVersion"
+ compile "org.springframework:spring-oxm:$springVersion"
+
+ // Hadoop
+ compile "org.apache.hadoop:hadoop-core:$hadoopVersion"
+
+ compile "commons-io:commons-io:$commonsioVersion"
+ compile "org.codehaus.jackson:jackson-core-asl:$jacksonVersion"
+ compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
+ compile "cglib:cglib:$cglibVersion"
+
+ // Testing
+ testCompile "junit:junit:$junitVersion"
+ testCompile "org.mockito:mockito-core:$mockitoVersion"
+ testCompile "org.springframework:spring-test:$springVersion"
+ testCompile("javax.annotation:jsr250-api:1.0") { optional = true }
+}
+
+javaprojects = rootProject
+
+sourceCompatibility = 1.5
+targetCompatibility = 1.5
+
+javadoc {
+ srcDir = file("${projectDir}/docs/src/api")
+ destinationDir = file("${buildDir}/api")
+ tmpDir = file("${buildDir}/api-work")
+
+ configure(options) {
+ stylesheetFile = file("${srcDir}/spring-javadoc.css")
+ overview = "${srcDir}/overview.html"
+ docFilesSubDirs = true
+ outputLevel = org.gradle.external.javadoc.JavadocOutputLevel.QUIET
+ breakIterator = true
+ showFromProtected()
+ groups = [
+ 'Spring Hadoop' : ['org.springframework.hadoop*'],
+ ]
+
+ links = [
+ "http://static.springframework.org/spring/docs/3.1.x/javadoc-api",
+ "http://download.oracle.com/javase/6/docs/api",
+ "http://logging.apache.org/log4j/docs/api/",
+ "http://atinject.googlecode.com/svn/trunk/javadoc/",
+ "http://jakarta.apache.org/commons/logging/apidocs/"
+ ]
+
+ exclude "org/springframework/hadoop/config/**"
+ }
+
+ title = "${rootProject.description} ${version} API"
+
+ // collect all the sources that will be included in the javadoc output
+ source javaprojects.collect {project ->
+ project.sourceSets.main.allJava
+ }
+
+ // collect all main classpaths to be able to resolve @see refs, etc.
+ // this collection also determines the set of projects that this
+ // task dependsOn, thus the runtimeClasspath is used to ensure all
+ // projects are included, not just *dependencies* of all classes.
+ // this is awkward and took me a while to figure out.
+ classpath = files(javaprojects.collect {project ->
+ project.sourceSets.main.runtimeClasspath
+ })
+
+ // copy the images from the doc-files dir over to the target
+ doLast { task ->
+ copy {
+ from file("${task.srcDir}/doc-files")
+ into file("${task.destinationDir}/doc-files")
+ }
+ }
+}
+
+ideaProject {
+ withXml { provider ->
+ provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
+ }
+}
+
+task wrapper(type: Wrapper) {
+ gradleVersion = '1.0-milestone-3'
+ description = "Generate the Gradle wrapper"
+ group = "Distribution"
+}
+
+apply from: "$rootDir/maven.gradle"
+
+assemble.dependsOn = ['jar', 'sourceJar', 'javadocJar']
+
+// Distribution tasks
+task dist(type: Zip) {
+ description = "Generate the ZIP Distribution"
+ group = "Distribution"
+ dependsOn assemble, subprojects*.tasks*.matching { task -> task.name == 'assemble' }
+
+ evaluationDependsOn(':docs')
+
+ def zipRootDir = "${project.name}-$version"
+ into(zipRootDir) {
+ from('/docs/src/info') {
+ include '*.txt'
+ }
+ from('/docs/build/') {
+ into 'docs'
+ include 'reference/**/*'
+ }
+ from('build/') {
+ into 'docs'
+ include 'api/**/*'
+ }
+ into('dist') {
+ from javaprojects.collect {project -> project.libsDir }
+ }
+ }
+ doLast {
+ ant.checksum(file: archivePath, algorithm: 'SHA1', fileext: '.sha1')
+ }
+}
+
+task uploadDist(type: org.springframework.gradle.tasks.S3DistroUpload, dependsOn: dist) {
+ description = "Upload the ZIP Distribution"
+ group = "Distribution"
+ archiveFile = dist.archivePath
+ projectKey = 'SGF'
+ projectName = 'Spring GemFire'
+}
+
+defaultTasks 'clean', 'build'
View
@@ -0,0 +1,97 @@
+import org.apache.tools.ant.filters.ReplaceTokens
+
+// -----------------------------------------------------------------------------
+// Configuration for the docs subproject
+// -----------------------------------------------------------------------------
+
+apply plugin: 'base'
+apply plugin: 'docbook'
+
+assemble.dependsOn = [rootProject.javadoc, 'reference']
+
+[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.group = 'Documentation'
+[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'index.xml'
+[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceDirectory = new File(projectDir, 'src/reference/docbook')
+
+docbookHtml.stylesheet = new File(projectDir, 'src/reference/resources/xsl/html-custom.xsl')
+docbookHtmlSingle.stylesheet = new File(projectDir, 'src/reference/resources/xsl/html-single-custom.xsl')
+docbookFoPdf.stylesheet = new File(projectDir, 'src/reference/resources/xsl/pdf-custom.xsl')
+
+def imagesDir = new File(projectDir, 'src/reference/resources/images');
+[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.admonGraphicsPath = "./images/admon/"
+[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.imgSrcPath = "${imagesDir}"
+
+// defined separately to prevent the replacement from taking place (seems to affect the images)
+imgSpec = copySpec {
+ into ('reference') {
+ from("$projectDir/src/reference/resources") {
+ include "css/**/*"
+ }
+ }
+
+ into ('reference/images') {
+ from (imagesDir)
+ }
+}
+
+
+refSpec = copySpec {
+ into ('reference') {
+ from("$buildDir/docs") {
+ exclude '*.fo'
+ }
+ }
+
+ p = new Properties()
+
+ for (e in project.properties) {
+ if (e.key != null && e.value != null)
+ p.setProperty(e.key, e.value.toString())
+ }
+
+ filter(ReplaceTokens, tokens: p)
+
+ with(imgSpec)
+}
+
+task reference (type: Copy) {
+ dependsOn 'docbook'
+ description = "Builds aggregated DocBook"
+ group = "Documentation"
+ destinationDir = buildDir
+ with(refSpec)
+}
+
+
+apiSpec = copySpec {
+ into('api') {
+ from(rootProject.javadoc.destinationDir)
+ }
+}
+
+task docSiteLogin(type: org.springframework.gradle.tasks.Login) {
+ if (project.hasProperty('sshHost')) {
+ host = project.property('sshHost')
+ username = project.property('sshUsername')
+ key = project.property('sshPrivateKey')
+ }
+}
+
+infoSpec = copySpec {
+ from("$projectDir/src/info") {
+ include 'changelog.txt'
+ }
+}
+
+// upload task
+task uploadDocs(type: org.springframework.gradle.tasks.ScpUpload) {
+ dependsOn rootProject.javadoc, reference
+ description = "Upload API Distribution"
+ group = "Distribution"
+ remoteDir = "/opt/www/domains/springframework.org/www/htdocs/spring-hadoop/docs/${project.version}"
+ login = docSiteLogin
+
+ with(apiSpec)
+ with(refSpec)
+ with(infoSpec)
+}
Binary file not shown.
View
@@ -0,0 +1,24 @@
+<html>
+<body>
+This document is the API specification for the Spring GemFire project.
+<hr/>
+
+<div id="overviewBody">
+<!--
+ <p>
+ For further API reference and developer documentation, see the
+ <a href="http://static.springframework.org/spring/docs/2.0.x/reference/index.html" target="_top">Spring Framework reference documentation</a>.
+ That documentation contains more detailed, developer-targeted
+ descriptions, with conceptual overviews, definitions of terms,
+ workarounds, and working code examples.
+ </p>
+ -->
+ <p>
+ If you are interested in commercial training, consultancy and
+ support for the Spring GemFire project,
+ <a href="http://www.SpringSource.com/" target="_top">SpringSource</a> provides
+ such commercial support.
+ </p>
+</div>
+</body>
+</html>
@@ -0,0 +1,48 @@
+/* Spring-specific Javadoc style sheet rules */
+
+#overviewBody {
+
+}
+
+.code {
+ border: 1px solid black;
+ background-color: #F4F4F4;
+ padding: 5px;
+}
+
+/* Vanilla Javadoc style sheet rules */
+
+body {
+ font-family: Helvetica, Arial, sans-serif;
+ background-color: white;
+ font-size: 10pt;
+}
+
+td { font-size: 10pt; font-family: Helvetica, Arial, sans-serif }/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* Headings */
+h1 { font-size: 145% }
+
+/* Table colors */
+.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
+.TableRowColor { background: #FFFFFF } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif }
+.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif }
+.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif }
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
@@ -0,0 +1,8 @@
+SPRING HADOOP CHANGELOG
+=======================
+http://www.springsource.org/spring-hadoop
+
+Changes in version 1.1.0.M1 (2011-mm-dd)
+----------------------------------------
+
+General
Oops, something went wrong.

0 comments on commit ebc156d

Please sign in to comment.