Skip to content
Browse files

+ initial migration to Gradle

  • Loading branch information...
1 parent f58e644 commit ebc156d60b7c2ffdd449521cfa26dabc83f9ecb8 Costin Leau committed
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. 0 {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 .gitignore
@@ -1,5 +1,6 @@
target
bin
+build
.settings
.classpath
.project
View
0 spring-hadoop-core/.springBeans → .springBeans
File renamed without changes.
View
206 build.gradle
@@ -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
97 docs/build.gradle
@@ -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)
+}
View
BIN docs/src/api/doc-files/th-background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
24 docs/src/api/overview.html
@@ -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>
View
48 docs/src/api/spring-javadoc.css
@@ -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;}
View
8 docs/src/info/changelog.txt
@@ -0,0 +1,8 @@
+SPRING HADOOP CHANGELOG
+=======================
+http://www.springsource.org/spring-hadoop
+
+Changes in version 1.1.0.M1 (2011-mm-dd)
+----------------------------------------
+
+General
View
201 docs/src/info/license.txt
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
View
22 docs/src/info/notice.txt
@@ -0,0 +1,22 @@
+ ======================================================================
+ == NOTICE file corresponding to section 4 d of the Apache License, ==
+ == Version 2.0, for the Spring Framework distribution. ==
+ ======================================================================
+
+ This product includes software developed by
+ the Apache Software Foundation (http://www.apache.org).
+
+ The end-user documentation included with a redistribution, if any,
+ must include the following acknowledgement:
+
+ "This product includes software developed by the Spring Framework
+ Project (http://www.springframework.org)."
+
+ Alternately, this acknowledgement may appear in the software itself,
+ if and wherever such third-party acknowledgements normally appear.
+
+ The names "Spring", "Spring Framework", and "Spring GemFire" must
+ not be used to endorse or promote products derived from this
+ software without prior written permission. For written permission,
+ please contact enquiries@springsource.com.
+
View
27 docs/src/info/readme.txt
@@ -0,0 +1,27 @@
+SPRING HADOOP
+-------------
+http://www.springsource.org/spring-data/hadoop
+
+1. INTRODUCTION
+
+Spring Hadoop is a framework extension for writing Hadoop jobs that
+benefit from the features of Spring, Spring Batch and Spring Integration.
+
+2. RELEASE NOTES
+
+This release comes with complete reference documentation. For further
+details, consult the provided javadoc for specific packages and classes.
+
+3. DISTRIBUTION JAR FILES
+
+The Spring Hadoop jars files can be found in the 'dist' directory.
+
+4. GETTING STARTED
+
+Please see the reference documentation.
+Additionally the blog at http://blog.springsource.com as well
+as sections of interest in the reference documentation.
+
+ADDITIONAL RESOURCES
+Spring Hadoop Homepage: http://www.springsource.org/spring-data/hadoop
+Hadoop Homepage: http://hadoop.apache.org
View
64 docs/src/reference/docbook/index.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<book xmlns="http://docbook.org/ns/docbook" version="5.0"
+ xml:id="spring-gemfire-reference"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+ <bookinfo>
+ <title>Spring Hadoop Reference Guide</title>
+ <releaseinfo>@version@</releaseinfo>
+
+ <authorgroup>
+ <author>
+ <firstname>Costin</firstname>
+ <surname>Leau</surname>
+ <affiliation>SpringSource, a division of VMware</affiliation>
+ </author>
+ </authorgroup>
+
+
+ <legalnotice>
+ <para>Copies of this document may be made for your own use and for
+ distribution to others, provided that you do not charge any fee for such
+ copies and further provided that each copy contains this Copyright
+ Notice, whether distributed in print or electronically.</para>
+ </legalnotice>
+ </bookinfo>
+
+ <toc />
+ <!--
+ <xi:include href="preface.xml"/>
+
+ <part id="introduction">
+ <title>Introduction</title>
+
+ <xi:include href="introduction/introduction.xml"/>
+
+ </part>
+
+ <part id="reference">
+ <title>Reference Documentation</title>
+
+ <xi:include href="reference/introduction.xml"/>
+ <xi:include href="reference/bootstrap.xml"/>
+ <xi:include href="reference/data.xml"/>
+ <xi:include href="reference/serialization.xml"/>
+ <xi:include href="reference/samples.xml"/>
+ </part>
+
+ <part id="resources">
+ <title>Other Resources</title>
+ <partintro>
+ <para>
+ In addition to this reference documentation, there are a number of
+ other resources that may help you learn how to use GemFire and Spring framework.
+ These additional, third-party resources are enumerated in this section.
+ </para>
+ </partintro>
+ <xi:include href="links.xml"/>
+ </part>
+ <part id="appendices">
+ <title>Appendices</title>
+ <xi:include href="appendix/appendix-schema.xml"/>
+ </part>
+ -->
+</book>
View
35 docs/src/reference/resources/css/highlight.css
@@ -0,0 +1,35 @@
+/*
+ code highlight CSS resemblign the Eclipse IDE default color schema
+ @author Costin Leau
+*/
+
+.hl-keyword {
+ color: #7F0055;
+ font-weight: bold;
+}
+
+.hl-comment {
+ color: #3F5F5F;
+ font-style: italic;
+}
+
+.hl-multiline-comment {
+ color: #3F5FBF;
+ font-style: italic;
+}
+
+.hl-tag {
+ color: #3F7F7F;
+}
+
+.hl-attribute {
+ color: #7F007F;
+}
+
+.hl-value {
+ color: #2A00FF;
+}
+
+.hl-string {
+ color: #2A00FF;
+}
View
99 docs/src/reference/resources/css/manual.css
@@ -0,0 +1,99 @@
+@IMPORT url("highlight.css");
+
+html {
+ padding: 0pt;
+ margin: 0pt;
+}
+
+body {
+ margin-left: 10%;
+ margin-right: 10%;
+ font-family: Arial, Sans-serif;
+}
+
+div {
+ margin: 0pt;
+}
+
+p {
+ text-align: justify;
+}
+
+hr {
+ border: 1px solid gray;
+ background: gray;
+}
+
+h1,h2,h3,h4 {
+ color: #234623;
+ font-family: Arial, Sans-serif;
+}
+
+pre {
+ line-height: 1.0;
+ color: black;
+}
+
+pre.programlisting {
+ font-size: 10pt;
+ padding: 7pt 3pt;
+ border: 1pt solid black;
+ background: #eeeeee;
+ clear: both;
+}
+
+div.table {
+ margin: 1em;
+ padding: 0.5em;
+ text-align: center;
+}
+
+div.table table {
+ display: table;
+ width: 100%;
+}
+
+div.table td {
+ padding-left: 7px;
+ padding-right: 7px;
+}
+
+.sidebar {
+ float: right;
+ margin: 10px 0 10px 30px;
+ padding: 10px 20px 20px 20px;
+ width: 33%;
+ border: 1px solid black;
+ background-color: #F4F4F4;
+ font-size: 14px;
+}
+
+.mediaobject {
+ padding-top: 30px;
+ padding-bottom: 30px;
+}
+
+.legalnotice {
+ font-family: Verdana, Arial, helvetica, sans-serif;
+ font-size: 12px;
+ font-style: italic;
+}
+
+p.releaseinfo {
+ font-size: 100%;
+ font-weight: bold;
+ font-family: Verdana, Arial, helvetica, sans-serif;
+ padding-top: 10px;
+}
+
+p.pubdate {
+ font-size: 120%;
+ font-weight: bold;
+ font-family: Verdana, Arial, helvetica, sans-serif;
+}
+
+span.productname {
+ font-size: 200%;
+ font-weight: bold;
+ font-family: Verdana, Arial, helvetica, sans-serif;
+}
View
BIN docs/src/reference/resources/images/admon/blank.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/caution.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/caution.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/caution.tif
Binary file not shown.
View
BIN docs/src/reference/resources/images/admon/draft.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/home.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/home.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/important.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/important.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/important.tif
Binary file not shown.
View
BIN docs/src/reference/resources/images/admon/next.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/next.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/note.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/note.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/note.tif
Binary file not shown.
View
BIN docs/src/reference/resources/images/admon/prev.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/prev.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/tip.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/tip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/tip.tif
Binary file not shown.
View
BIN docs/src/reference/resources/images/admon/toc-blank.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/toc-minus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/toc-plus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/up.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/up.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/warning.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/warning.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/admon/warning.tif
Binary file not shown.
View
BIN docs/src/reference/resources/images/callouts/1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN docs/src/reference/resources/images/callouts/10.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/11.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/12.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/13.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/14.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/15.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/2.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/3.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/4.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/5.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/6.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/7.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/8.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/callouts/9.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/logo.png
Diff not rendered.
View
BIN docs/src/reference/resources/images/xdev-spring_logo.jpg
Diff not rendered.
View
449 docs/src/reference/resources/xsl/fopdf.xsl
@@ -0,0 +1,449 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ This is the XSL FO (PDF) stylesheet for the Spring Data reference
+ documentation.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+
+ <xsl:import href="urn:docbkx:stylesheet"/>
+ <xsl:import href="highlight-fo.xsl"/>
+
+ <!--###################################################
+ Custom Title Page
+ ################################################### -->
+
+ <xsl:template name="book.titlepage.recto">
+ <fo:block>
+ <fo:table table-layout="fixed" width="175mm">
+ <fo:table-column column-width="175mm"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <!-- Logo
+ <fo:block>
+ <fo:external-graphic src="file:src/docbkx/resources/images/s2_box_logo.png"/>
+ </fo:block>
+ -->
+ <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/subtitle"/>
+ </fo:block>
+ <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
+ <xsl:value-of select="bookinfo/title"/>
+ </fo:block>
+ <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
+ <xsl:value-of select="bookinfo/releaseinfo"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
+ <xsl:value-of select="bookinfo/pubdate"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
+ <xsl:for-each select="bookinfo/authorgroup/author">
+ <xsl:if test="position() > 1">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="firstname"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="surname"/>
+ <xsl:text> (</xsl:text>
+ <xsl:value-of select="affiliation"/>
+ <xsl:text>)</xsl:text>
+ </xsl:for-each>
+ </fo:block>
+ <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
+ <xsl:text>Copyright &#xA9; 2010-2011</xsl:text>
+ </fo:block>
+
+ <fo:block font-family="Helvetica" font-size="10pt" padding="1mm">
+ <xsl:value-of select="bookinfo/legalnotice"/>
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </xsl:template>
+
+ <!-- Prevent blank pages in output -->
+ <xsl:template name="book.titlepage.before.verso">
+ </xsl:template>
+ <xsl:template name="book.titlepage.verso">
+ </xsl:template>
+ <xsl:template name="book.titlepage.separator">
+ </xsl:template>
+
+ <!--###################################################
+ Header
+ ################################################### -->
+
+ <!-- More space in the center header for long text -->
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$body.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="margin-left">-5em</xsl:attribute>
+ <xsl:attribute name="margin-right">-5em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!--###################################################
+ Custom Footer
+ ################################################### -->
+ <xsl:template name="footer.content">
+ <xsl:param name="pageclass" select="''"/>
+ <xsl:param name="sequence" select="''"/>
+ <xsl:param name="position" select="''"/>
+ <xsl:param name="gentext-key" select="''"/>
+ <xsl:variable name="Version">
+ <xsl:if test="//releaseinfo">
+ <xsl:text>Spring Data Redis (</xsl:text><xsl:value-of select="//releaseinfo" /><xsl:text>)</xsl:text>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$sequence='blank'">
+ <xsl:if test="$position = 'center'">
+ <xsl:value-of select="$Version"/>
+ </xsl:if>
+ </xsl:when>
+ <!-- for double sided printing, print page numbers on alternating sides (of the page) -->
+ <xsl:when test="$double.sided != 0">
+ <xsl:choose>
+ <xsl:when test="$sequence = 'even' and $position='left'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$sequence = 'odd' and $position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$position='center'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <!-- for single sided printing, print all page numbers on the right (of the page) -->
+ <xsl:when test="$double.sided = 0">
+ <xsl:choose>
+ <xsl:when test="$position='center'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <!--###################################################
+ Extensions
+ ################################################### -->
+
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <!-- FOP provide only PDF Bookmarks at the moment -->
+ <xsl:param name="fop.extensions">1</xsl:param>
+ <xsl:param name="fop1.extensions">1</xsl:param>
+ <xsl:param name="ignore.image.scaling">0</xsl:param>
+
+ <!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">2</xsl:param>
+
+ <!-- Dot and Whitespace as separator in TOC between Label and Title-->
+ <xsl:param name="autotoc.label.separator" select="'. '"/>
+
+
+ <!--###################################################
+ Paper & Page Size
+ ################################################### -->
+
+ <!-- Paper type, no headers on blank pages, no double sided printing -->
+ <xsl:param name="paper.type" select="'A4'"/>
+ <xsl:param name="double.sided">0</xsl:param>
+ <xsl:param name="headers.on.blank.pages">0</xsl:param>
+ <xsl:param name="footers.on.blank.pages">0</xsl:param>
+
+ <!-- Space between paper border and content (chaotic stuff, don't touch) -->
+ <xsl:param name="page.margin.top">5mm</xsl:param>
+ <xsl:param name="region.before.extent">10mm</xsl:param>
+ <xsl:param name="body.margin.top">10mm</xsl:param>
+
+ <xsl:param name="body.margin.bottom">15mm</xsl:param>
+ <xsl:param name="region.after.extent">10mm</xsl:param>
+ <xsl:param name="page.margin.bottom">0mm</xsl:param>
+
+ <xsl:param name="page.margin.outer">18mm</xsl:param>
+ <xsl:param name="page.margin.inner">18mm</xsl:param>
+
+ <!-- No intendation of Titles -->
+ <xsl:param name="title.margin.left">0pc</xsl:param>
+
+ <!--###################################################
+ Fonts & Styles
+ ################################################### -->
+
+ <!-- Left aligned text and no hyphenation -->
+ <xsl:param name="alignment">justify</xsl:param>
+ <xsl:param name="hyphenate">false</xsl:param>
+
+ <!-- Default Font size -->
+ <xsl:param name="body.font.master">11</xsl:param>
+ <xsl:param name="body.font.small">8</xsl:param>
+
+ <!-- Line height in body text -->
+ <xsl:param name="line-height">1.4</xsl:param>
+
+ <!-- Monospaced fonts are smaller than regular text -->
+ <xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="font-size">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!--###################################################
+ Tables
+ ################################################### -->
+
+ <!-- The table width should be adapted to the paper size -->
+ <xsl:param name="default.table.width">17.4cm</xsl:param>
+
+ <!-- Some padding inside tables -->
+ <xsl:attribute-set name="table.cell.padding">
+ <xsl:attribute name="padding-left">4pt</xsl:attribute>
+ <xsl:attribute name="padding-right">4pt</xsl:attribute>
+ <xsl:attribute name="padding-top">4pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Only hairlines as frame and cell borders in tables -->
+ <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
+
+ <!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+
+ <!--###################################################
+ Titles
+ ################################################### -->
+
+ <!-- Chapter title size -->
+ <xsl:attribute-set name="chapter.titlepage.recto.style">
+ <xsl:attribute name="text-align">left</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
+ Let's remove it, so this sucker can use our attribute-set only... -->
+ <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
+ <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="chapter.titlepage.recto.style">
+ <xsl:call-template name="component.title">
+ <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
+ </xsl:call-template>
+ </fo:block>
+ </xsl:template>
+
+ <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
+ <xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.5"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.25"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="space-before.optimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.0"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Titles of formal objects (tables, examples, ...) -->
+ <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!--###################################################
+ Programlistings
+ ################################################### -->
+
+ <!-- Verbatim text formatting (programlistings) -->
+ <xsl:attribute-set name="monospace.verbatim.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.small * 1.0"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:attribute-set name="verbatim.properties">
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Shade (background) programlistings -->
+ <xsl:param name="shade.verbatim">1</xsl:param>
+ <xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Use images for callouts instead of (1) (2) (3) -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+ <xsl:param name="callout.unicode">1</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+ <!--###################################################
+ Admonitions
+ ################################################### -->
+
+ <!-- Use nice graphics for admonitions -->
+ <xsl:param name="admon.graphics">'1'</xsl:param>
+ <xsl:param name="admon.graphics.path">src/docbkx/resources/images/admons/</xsl:param>
+
+ <!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+
+ <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
+ <xsl:param name="variablelist.as.blocks">1</xsl:param>
+
+ <!-- The horrible list spacing problems -->
+ <xsl:attribute-set name="list.block.spacing">
+ <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!--###################################################
+ colored and hyphenated links
+ ################################################### -->
+ <xsl:template match="ulink">
+ <fo:basic-link external-destination="{@url}"
+ xsl:use-attribute-sets="xref.properties"
+ text-decoration="underline"
+ color="blue">
+ <xsl:choose>
+ <xsl:when test="count(child::node())=0">
+ <xsl:value-of select="@url"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:basic-link>
+ </xsl:template>
+
+ <xsl:template match="link">
+ <fo:basic-link internal-destination="{@linkend}"
+ xsl:use-attribute-sets="xref.properties"
+ text-decoration="underline"
+ color="blue">
+ <xsl:choose>
+ <xsl:when test="count(child::node())=0">
+ <xsl:value-of select="@linkend"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fo:basic-link>
+ </xsl:template>
+ <!--
+
+ <xsl:template match="xref">
+ <fo:basic-link internal-destination="{@linkend}"
+ xsl:use-attribute-sets="xref.properties"
+ text-decoration="underline"
+ color="blue">
+ <xsl:apply-templates/>
+ </fo:basic-link>
+ </xsl:template>
+ -->
+
+</xsl:stylesheet>
View
44 docs/src/reference/resources/xsl/highlight-fo.xsl
@@ -0,0 +1,44 @@
+<?xml version='1.0'?>
+<!--
+ Simple highlighter for FO/PDF output. Follows the Eclipse color scheme.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:xslthl="http://xslthl.sf.net"
+ exclude-result-prefixes="xslthl"
+ version='1.0'>
+
+ <xsl:template match='xslthl:keyword'>
+ <fo:inline font-weight="bold" color="#7F0055"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:comment'>
+ <fo:inline font-style="italic" color="#3F5F5F"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:oneline-comment'>
+ <fo:inline font-style="italic" color="#3F5F5F"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:multiline-comment'>
+ <fo:inline font-style="italic" color="#3F5FBF"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:tag'>
+ <fo:inline color="#3F7F7F"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:attribute'>
+ <fo:inline olor="#7F007F"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:value'>
+ <fo:inline color="#2A00FF"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+ <xsl:template match='xslthl:string'>
+ <fo:inline color="#2A00FF"><xsl:apply-templates/></fo:inline>
+ </xsl:template>
+
+</xsl:stylesheet>
View
42 docs/src/reference/resources/xsl/highlight.xsl
@@ -0,0 +1,42 @@
+<?xml version='1.0'?>
+<!--
+ Simple highlighter for HTML output. Follows the Eclipse color scheme.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xslthl="http://xslthl.sf.net"
+ exclude-result-prefixes="xslthl"
+ version='1.0'>
+
+ <xsl:template match='xslthl:keyword'>
+ <span class="hl-keyword"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:comment'>
+ <span class="hl-comment"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:oneline-comment'>
+ <span class="hl-comment"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:multiline-comment'>
+ <span class="hl-multiline-comment"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:tag'>
+ <span class="hl-tag"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:attribute'>
+ <span class="hl-attribute"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:value'>
+ <span class="hl-value"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:string'>
+ <span class="hl-string"><xsl:value-of select='.'/></span>
+ </xsl:template>
+
+</xsl:stylesheet>
View
145 docs/src/reference/resources/xsl/html-custom.xsl
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xslthl="http://xslthl.sf.net"
+ exclude-result-prefixes="xslthl"
+ version='1.0'>
+
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/>
+
+ <xsl:param name="chunk.section.depth">'5'</xsl:param>
+ <xsl:param name="use.id.as.filename">'1'</xsl:param>
+
+ <!-- Only use scaling in FO -->
+ <xsl:param name="ignore.image.scaling">1</xsl:param>
+
+ <!-- Use code syntax highlighting -->
+ <xsl:param name="highlight.source">1</xsl:param>
+
+<!-- Extensions -->
+ <xsl:param name="use.extensions">0</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+
+<!-- Activate Graphics -->
+ <xsl:param name="admon.graphics" select="1"/>
+ <xsl:param name="admon.graphics.path">images/admon/</xsl:param>
+ <xsl:param name="admon.graphics.extension">.png</xsl:param>
+ <xsl:param name="callout.graphics" select="1" />
+ <xsl:param name="callout.defaultcolumn">120</xsl:param>
+ <xsl:param name="callout.graphics.path">images/callouts/</xsl:param>
+ <xsl:param name="callout.graphics.extension">.png</xsl:param>
+
+ <xsl:param name="table.borders.with.css" select="1"/>
+ <xsl:param name="html.stylesheet">css/manual.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="generate.toc">book toc,title</xsl:param>
+
+ <xsl:param name="admonition.title.properties">text-align: left</xsl:param>
+
+ <!-- Leave image paths as relative when navigating XInclude -->
+ <xsl:param name="keep.relative.image.uris" select="1"/>
+
+<!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel" select="1"/>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.autolabel.max.depth" select="2"/>
+
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+ <xsl:param name="table.footnote.number.format" select="'1'"/>
+
+<!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+
+<!-- Remove "Chapter" from the Chapter titles... -->
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="en">
+ <l:context name="title-numbered">
+ <l:template name="chapter" text="%n.&#160;%t"/>
+ <l:template name="section" text="%n&#160;%t"/>
+ </l:context>
+ </l:l10n>
+ </l:i18n>
+
+ <xsl:template match='xslthl:keyword' mode="xslthl">
+ <span class="hl-keyword"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:comment' mode="xslthl">
+ <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:oneline-comment' mode="xslthl">
+ <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:multiline-comment' mode="xslthl">
+ <span class="hl-multiline-comment"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:tag' mode="xslthl">
+ <span class="hl-tag"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:attribute' mode="xslthl">
+ <span class="hl-attribute"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:value' mode="xslthl">
+ <span class="hl-value"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <xsl:template match='xslthl:string' mode="xslthl">
+ <span class="hl-string"><xsl:apply-templates mode="xslthl"/></span>
+ </xsl:template>
+
+ <!-- Google Analytics -->
+ <xsl:template name="user.head.content">
+ <xsl:comment>Begin Google Analytics code</xsl:comment>
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ var pageTracker = _gat._getTracker("UA-2728886-3");
+ pageTracker._setDomainName("none");
+ pageTracker._setAllowLinker(true);
+ pageTracker._trackPageview();
+ </script>
+ <xsl:comment>End Google Analytics code</xsl:comment>
+ </xsl:template>
+
+ <!-- Loopfuse -->
+ <xsl:template name="user.footer.content">
+ <xsl:comment>Begin LoopFuse code</xsl:comment>
+ <script src="http://loopfuse.net/webrecorder/js/listen.js" type="text/javascript">
+ </script>
+ <script type="text/javascript">
+ _lf_cid = "LF_48be82fa";
+ _lf_remora();
+ </script>
+ <xsl:comment>End LoopFuse code</xsl:comment>
+ </xsl:template>
+
+</xsl:stylesheet>
View
142 docs/src/reference/resources/xsl/html-single-custom.xsl
@@ -0,0 +1,142 @@