tetra 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +3 -1
- data/lib/template/bashrc +10 -0
- data/lib/template/bundled/apache-ant-1.9.7/CONTRIBUTORS +422 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/INSTALL +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/KEYS +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/LICENSE +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/NOTICE +1 -1
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/README +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/WHATSNEW +247 -4
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/ant +5 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/ant.bat +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/ant.cmd +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/antRun +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/antRun.bat +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/antRun.pl +0 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/antenv.cmd +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/complete-ant-cmd.pl +11 -10
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/envset.cmd +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/lcp.bat +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/runant.pl +0 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/runant.py +9 -6
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/bin/runrc.cmd +0 -0
- data/lib/template/bundled/apache-ant-1.9.7/contributors.xml +1691 -0
- data/lib/template/bundled/apache-ant-1.9.7/etc/ant-bootstrap.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/changelog.xsl +0 -0
- data/lib/template/bundled/apache-ant-1.9.7/etc/checkstyle/checkstyle-frames-sortby-check.xsl +367 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-frames.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-text.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-xdoc.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/coverage-frames.xsl +0 -2
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/jdepend-frames.xsl +0 -2
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/jdepend.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/junit-frames-xalan1.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/junit-frames.xsl +18 -1
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/junit-noframes.xsl +18 -1
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/log.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/maudit-frames.xsl +0 -1
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/mmetrics-frames.xsl +0 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/tagdiff.xsl +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/fetch.xml +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/get-m2.xml +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/README +0 -0
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-antlr.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-antlr.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-apache-bcel.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-bcel.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-bsf.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-bsf.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-log4j.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-log4j.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-oro.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-oro.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-regexp.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-regexp.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-resolver.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-resolver.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-xalan2.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-apache-xalan2.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-commons-logging.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-commons-logging.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-commons-net.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-commons-net.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-jai.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-jai.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-javamail.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-javamail.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-jdepend.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-jdepend.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-jmf.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-jmf.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-jsch.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-jsch.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-junit.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-junit.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-junit4.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-junit4.pom +71 -71
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-launcher.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-launcher.pom +2 -2
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-netrexx.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-netrexx.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-parent.pom +4 -4
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant-swing.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-swing.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-testutil.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant-testutil.pom +3 -3
- data/lib/template/bundled/apache-ant-1.9.7/lib/ant.jar +0 -0
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/ant.pom +3 -3
- data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/lib/libraries.properties +0 -0
- data/lib/template/bundled/apache-ant-1.9.7/patch.xml +48 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/LICENSE +29 -23
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/NOTICE +1 -1
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/README.txt +5 -3
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/bin/m2.conf +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/bin/mvn +51 -9
- data/lib/template/bundled/{apache-maven-3.2.5/bin/mvn.bat → apache-maven-3.3.9/bin/mvn.cmd} +50 -69
- data/lib/template/bundled/apache-maven-3.3.9/bin/mvnDebug +41 -0
- data/lib/template/bundled/apache-maven-3.3.9/bin/mvnDebug.cmd +31 -0
- data/lib/template/bundled/apache-maven-3.3.9/bin/mvnyjp +42 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/boot/plexus-classworlds-2.5.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/conf/logging/simplelogger.properties +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/conf/settings.xml +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/conf/toolchains.xml +103 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-api-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-api.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-connector-basic-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-connector-basic.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-impl-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-impl.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-spi-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-spi.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-transport-wagon-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-transport-wagon.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar → apache-maven-3.3.9/lib/aether-util-1.0.2.v20150114.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aether-util.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/aopalliance-1.0.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/cdi-api-1.0.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/cdi-api.license +410 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/commons-cli-1.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/commons-io-2.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/commons-lang-2.6.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/commons-lang3-3.4.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-aether-provider.license → apache-maven-3.3.9/lib/commons-lang3.license} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/ext/README.txt +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/guava-18.0.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/guice-4.0-no_aop.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/javax.inject-1.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/jsoup-1.7.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/jsoup.license +15 -16
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/jsr250-api-1.0.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/jsr250-api.license +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-aether-provider-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-artifact.license → apache-maven-3.3.9/lib/maven-aether-provider.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-artifact-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-compat.license → apache-maven-3.3.9/lib/maven-artifact.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-builder-support-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-core.license → apache-maven-3.3.9/lib/maven-builder-support.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-compat-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-embedder.license → apache-maven-3.3.9/lib/maven-compat.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-core-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-model-builder.license → apache-maven-3.3.9/lib/maven-core.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-embedder-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-model.license → apache-maven-3.3.9/lib/maven-embedder.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-model-3.3.9.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-model-builder-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-plugin-api.license → apache-maven-3.3.9/lib/maven-model-builder.license} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-repository-metadata.license → apache-maven-3.3.9/lib/maven-model.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-plugin-api-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-settings-builder.license → apache-maven-3.3.9/lib/maven-plugin-api.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-repository-metadata-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/maven-settings.license → apache-maven-3.3.9/lib/maven-repository-metadata.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-settings-3.3.9.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/maven-settings-builder-3.3.9.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-file.license → apache-maven-3.3.9/lib/maven-settings-builder.license} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-http-shared.license → apache-maven-3.3.9/lib/maven-settings.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/org.eclipse.sisu.inject-0.3.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/org.eclipse.sisu.inject.license +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/org.eclipse.sisu.plexus-0.3.2.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/org.eclipse.sisu.plexus.license +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/plexus-cipher-1.7.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/plexus-cipher.license +410 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/plexus-component-annotations-1.6.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/plexus-interpolation-1.21.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/plexus-sec-dispatcher-1.3.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/plexus-sec-dispatcher.license +410 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar → apache-maven-3.3.9/lib/plexus-utils-3.0.22.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/slf4j-api-1.7.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/slf4j-api.license +370 -0
- data/lib/template/bundled/{apache-maven-3.2.5 → apache-maven-3.3.9}/lib/slf4j-simple-1.7.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/slf4j-simple.license +370 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-file-2.8.jar → apache-maven-3.3.9/lib/wagon-file-2.10.jar} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-http.license → apache-maven-3.3.9/lib/wagon-file.license} +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar → apache-maven-3.3.9/lib/wagon-http-2.10-shaded.jar} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/wagon-http-shared-2.10.jar +0 -0
- data/lib/template/bundled/{apache-maven-3.2.5/lib/wagon-provider-api.license → apache-maven-3.3.9/lib/wagon-http-shared.license} +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/wagon-http.license +202 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/wagon-provider-api-2.10.jar +0 -0
- data/lib/template/bundled/apache-maven-3.3.9/lib/wagon-provider-api.license +202 -0
- data/lib/tetra/facades/bash.rb +8 -2
- data/lib/tetra/kit.rb +1 -1
- data/lib/tetra/version.rb +1 -1
- data/spec/data/commons-collections4-4.1-src.tar.gz +0 -0
- data/spec/data/commons-collections4-4.1-src.zip +0 -0
- data/spec/lib/coarse/generate_all_subcommand_spec.rb +5 -5
- data/spec/lib/coarse/generate_spec_subcommand_spec.rb +2 -2
- data/spec/lib/coarse/init_subcommand_spec.rb +6 -6
- data/spec/lib/fine/project_spec.rb +1 -1
- data/spec/lib/fine/tar_spec.rb +2 -2
- data/spec/lib/fine/unzip_spec.rb +2 -2
- metadata +179 -170
- data/lib/template/bundled/apache-ant-1.9.4/etc/ant-bootstrap.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-antlr.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-apache-bcel.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-commons-net.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-jai.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-javamail.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-jdepend.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-jmf.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-jsch.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-junit.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-junit4.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-launcher.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-netrexx.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant-swing.jar +0 -0
- data/lib/template/bundled/apache-ant-1.9.4/lib/ant.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/bin/mvnDebug +0 -200
- data/lib/template/bundled/apache-maven-3.2.5/bin/mvnDebug.bat +0 -200
- data/lib/template/bundled/apache-maven-3.2.5/bin/mvnyjp +0 -207
- data/lib/template/bundled/apache-maven-3.2.5/lib/cdi-api.license +0 -445
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-core-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-model-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/plexus-cipher.license +0 -445
- data/lib/template/bundled/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/plexus-sec-dispatcher.license +0 -445
- data/lib/template/bundled/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/slf4j-api.license +0 -190
- data/lib/template/bundled/apache-maven-3.2.5/lib/slf4j-simple.license +0 -190
- data/lib/template/bundled/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar +0 -0
- data/lib/template/bundled/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar +0 -0
- data/spec/data/commons-collections-3.2.1-src.tar.gz +0 -0
- data/spec/data/commons-collections-3.2.1-src.zip +0 -0
Binary file
|
File without changes
|
@@ -0,0 +1,367 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
|
3
|
+
xmlns:lxslt="http://xml.apache.org/xslt"
|
4
|
+
xmlns:redirect="http://xml.apache.org/xalan/redirect"
|
5
|
+
extension-element-prefixes="redirect">
|
6
|
+
|
7
|
+
<!--
|
8
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
9
|
+
contributor license agreements. See the NOTICE file distributed with
|
10
|
+
this work for additional information regarding copyright ownership.
|
11
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
12
|
+
(the "License"); you may not use this file except in compliance with
|
13
|
+
the License. You may obtain a copy of the License at
|
14
|
+
|
15
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
16
|
+
|
17
|
+
Unless required by applicable law or agreed to in writing, software
|
18
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
19
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
20
|
+
See the License for the specific language governing permissions and
|
21
|
+
limitations under the License.
|
22
|
+
-->
|
23
|
+
|
24
|
+
<xsl:output method="html" indent="yes" encoding="US-ASCII"/>
|
25
|
+
<xsl:decimal-format decimal-separator="." grouping-separator="," />
|
26
|
+
|
27
|
+
<xsl:param name="output.dir" select="'.'"/>
|
28
|
+
<xsl:param name="basedir" select="'.'"/>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
<!--
|
33
|
+
Matches the root element of the data and starts the generation.
|
34
|
+
-->
|
35
|
+
<xsl:template match="checkstyle">
|
36
|
+
<!-- create the sorted.html with the data -->
|
37
|
+
<redirect:write file="{$output.dir}/sorted.html">
|
38
|
+
<xsl:call-template name="sorted.html"/>
|
39
|
+
</redirect:write>
|
40
|
+
|
41
|
+
<!-- create the stylesheet.css with layout -->
|
42
|
+
<redirect:write file="{$output.dir}/sorted.css">
|
43
|
+
<xsl:call-template name="sorted.css"/>
|
44
|
+
</redirect:write>
|
45
|
+
|
46
|
+
<!-- create the switch.js for collepsing the data -->
|
47
|
+
<redirect:write file="{$output.dir}/switch.js">
|
48
|
+
<xsl:call-template name="switch.js"/>
|
49
|
+
</redirect:write>
|
50
|
+
</xsl:template>
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
<!--
|
55
|
+
Generates the HTML page with the data.
|
56
|
+
-->
|
57
|
+
<xsl:template name="sorted.html">
|
58
|
+
<html>
|
59
|
+
<head>
|
60
|
+
<title>CheckStyle Audit</title>
|
61
|
+
<script language="JavaScript" src="switch.js" type="text/javascript"></script>
|
62
|
+
<link rel="stylesheet" type="text/css" href="sorted.css"/>
|
63
|
+
</head>
|
64
|
+
<body onload="javascript:openFirst();">
|
65
|
+
<h1>CheckStyle Audit</h1>
|
66
|
+
<p>Designed for use with
|
67
|
+
<a href='http://checkstyle.sourceforge.net/'>CheckStyle</a> and
|
68
|
+
<a href='http://ant.apache.org/'>Ant</a>.
|
69
|
+
</p>
|
70
|
+
<xsl:apply-templates select="." mode="navigation"/>
|
71
|
+
<xsl:apply-templates select="." mode="data"/>
|
72
|
+
</body>
|
73
|
+
</html>
|
74
|
+
</xsl:template>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<!--
|
79
|
+
Key for detecting duplicate CheckModules
|
80
|
+
-->
|
81
|
+
<xsl:key name="module" match="file/error" use="@source"/>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<!--
|
86
|
+
Generates the navagation bar.
|
87
|
+
-->
|
88
|
+
<xsl:template match="checkstyle" mode="navigation">
|
89
|
+
<ul id="navigation">
|
90
|
+
<xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]">
|
91
|
+
<xsl:sort select="@source"/>
|
92
|
+
<xsl:variable name="last-index">
|
93
|
+
<xsl:call-template name="last-index-of">
|
94
|
+
<xsl:with-param name="txt" select="@source"/>
|
95
|
+
<xsl:with-param name="delimiter" select="'.'"></xsl:with-param>
|
96
|
+
</xsl:call-template>
|
97
|
+
</xsl:variable>
|
98
|
+
<li><a href="javascript:change('{@source}');">
|
99
|
+
<xsl:value-of select="substring(@source, $last-index+1)"/>
|
100
|
+
</a></li>
|
101
|
+
</xsl:for-each>
|
102
|
+
</ul>
|
103
|
+
</xsl:template>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<!--
|
108
|
+
Generates the data part.
|
109
|
+
-->
|
110
|
+
<xsl:template match="checkstyle" mode="data">
|
111
|
+
<div id="content">
|
112
|
+
<xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]">
|
113
|
+
<xsl:sort select="@source"/>
|
114
|
+
<div class="hideable" id="{@source}">
|
115
|
+
<xsl:variable name="module" select="@source"/>
|
116
|
+
<h2><xsl:value-of select="@source"/></h2>
|
117
|
+
<xsl:call-template name="data">
|
118
|
+
<xsl:with-param name="filter" select="$module"/>
|
119
|
+
</xsl:call-template>
|
120
|
+
</div>
|
121
|
+
</xsl:for-each>
|
122
|
+
</div>
|
123
|
+
</xsl:template>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<!--
|
128
|
+
Generates the content table for the given check module.
|
129
|
+
@param filter full qualified module name
|
130
|
+
-->
|
131
|
+
<xsl:template name="data">
|
132
|
+
<xsl:param name="filter"/>
|
133
|
+
|
134
|
+
<table>
|
135
|
+
<tr>
|
136
|
+
<th>file</th>
|
137
|
+
<th>line</th>
|
138
|
+
<th>severity</th>
|
139
|
+
<th>message</th>
|
140
|
+
</tr>
|
141
|
+
<xsl:for-each select="/checkstyle/file">
|
142
|
+
<xsl:choose>
|
143
|
+
<xsl:when test="error/@source=$filter">
|
144
|
+
<xsl:call-template name="data-rows">
|
145
|
+
<xsl:with-param name="node" select="."/>
|
146
|
+
<xsl:with-param name="filter" select="$filter"/>
|
147
|
+
</xsl:call-template>
|
148
|
+
</xsl:when>
|
149
|
+
</xsl:choose>
|
150
|
+
</xsl:for-each>
|
151
|
+
</table>
|
152
|
+
</xsl:template>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<!--
|
157
|
+
Generates the data rows for the current check module.
|
158
|
+
Ignores errors in the current file from other modules.
|
159
|
+
@param node the file with the errors
|
160
|
+
@param filter full qualified module name
|
161
|
+
-->
|
162
|
+
<xsl:template name="data-rows">
|
163
|
+
<xsl:param name="node"/>
|
164
|
+
<xsl:param name="filter"/>
|
165
|
+
|
166
|
+
<xsl:for-each select="$node/error">
|
167
|
+
<xsl:choose>
|
168
|
+
<xsl:when test="@source=$filter">
|
169
|
+
<tr>
|
170
|
+
<!-- Hide the basdir. First char of the result is a path separator so remove that. -->
|
171
|
+
<td><xsl:value-of select="substring(substring-after($node/@name, $basedir),2)"/></td>
|
172
|
+
<td><xsl:value-of select="@line"/></td>
|
173
|
+
<td><xsl:value-of select="@severity"/></td>
|
174
|
+
<td><xsl:value-of select="@message"/></td>
|
175
|
+
</tr>
|
176
|
+
</xsl:when>
|
177
|
+
</xsl:choose>
|
178
|
+
</xsl:for-each>
|
179
|
+
</xsl:template>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<!--
|
184
|
+
Generates the CSS with the layout instructions.
|
185
|
+
Generated so this XSL is the single source of the whole report.
|
186
|
+
-->
|
187
|
+
<xsl:template name="sorted.css">
|
188
|
+
body {
|
189
|
+
font:normal 80% arial,helvetica,sanserif;
|
190
|
+
color: black;
|
191
|
+
background-color: white;
|
192
|
+
margin: 0;
|
193
|
+
padding: 1em;
|
194
|
+
min-width: 41em;
|
195
|
+
}
|
196
|
+
h1 {
|
197
|
+
font-weight:bold;
|
198
|
+
font-size:140%;
|
199
|
+
margin: 0 0 0.7em;
|
200
|
+
padding: 0.3em;
|
201
|
+
text-align: center;
|
202
|
+
background-color: #eee;
|
203
|
+
border: 2px ridge silver;
|
204
|
+
}
|
205
|
+
html<xsl:text disable-output-escaping="yes">></xsl:text>body h1 {
|
206
|
+
border-color: gray;
|
207
|
+
}
|
208
|
+
|
209
|
+
ul#navigation {
|
210
|
+
font-size: 0.83em;
|
211
|
+
float: left; width: 18em;
|
212
|
+
margin: 0 0 1.2em; padding: 0;
|
213
|
+
border: 1px dashed silver;
|
214
|
+
}
|
215
|
+
ul#navigation li {
|
216
|
+
list-style: none;
|
217
|
+
margin: 0; padding: 0.2em;
|
218
|
+
}
|
219
|
+
ul#navigation a {
|
220
|
+
display: block;
|
221
|
+
padding: 0.2em;
|
222
|
+
font-weight: bold;
|
223
|
+
}
|
224
|
+
ul#navigation a:link {
|
225
|
+
color: black; background-color: #eee;
|
226
|
+
}
|
227
|
+
ul#navigation a:visited {
|
228
|
+
color: #666; background-color: #eee;
|
229
|
+
}
|
230
|
+
ul#navigation a:hover {
|
231
|
+
color: red; background-color: white;
|
232
|
+
}
|
233
|
+
ul#navigation a:active {
|
234
|
+
color: white; background-color: gray;
|
235
|
+
}
|
236
|
+
|
237
|
+
div#content {
|
238
|
+
margin: 0 1em 1em 16em;
|
239
|
+
padding: 0 1em;
|
240
|
+
}
|
241
|
+
* html div#content {
|
242
|
+
height: 1em; /* Workaround 3-Pixel-Bug of Internet Explorers */
|
243
|
+
}
|
244
|
+
div#content h2 {
|
245
|
+
font-size:100%;
|
246
|
+
font-weight:bold;
|
247
|
+
background: #525D76;
|
248
|
+
color: white;
|
249
|
+
text-decoration: none;
|
250
|
+
padding: 5px;
|
251
|
+
margin-right: 2px;
|
252
|
+
margin-left: 2px;
|
253
|
+
margin-bottom: 0;
|
254
|
+
}
|
255
|
+
div#content p {
|
256
|
+
font-size: 1em;
|
257
|
+
margin: 1em 0;
|
258
|
+
}
|
259
|
+
table {
|
260
|
+
width:100%;
|
261
|
+
border-collapse:collapse;
|
262
|
+
}
|
263
|
+
table td, table th {
|
264
|
+
border:1px solid #000;
|
265
|
+
padding:3px 7px 2px 7px;
|
266
|
+
}
|
267
|
+
table th {
|
268
|
+
font-weight:bold;
|
269
|
+
background: #ccc;
|
270
|
+
color: black;
|
271
|
+
}
|
272
|
+
table tr:nth-child(odd) td {
|
273
|
+
background: #efefef;
|
274
|
+
}
|
275
|
+
table tr:nth-child(even) td {
|
276
|
+
background: #fff;
|
277
|
+
}
|
278
|
+
</xsl:template>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
<!--
|
283
|
+
Generates the JavaScript for the dynamic style.
|
284
|
+
Generated so this XSL is the single source of the whole report.
|
285
|
+
-->
|
286
|
+
<xsl:template name="switch.js">
|
287
|
+
/*
|
288
|
+
* Hides all "hideable" div-containers
|
289
|
+
*/
|
290
|
+
function hideAll() {
|
291
|
+
allElements = document.getElementsByTagName("div");
|
292
|
+
for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) {
|
293
|
+
if (allElements[i].className=="hideable") {
|
294
|
+
allElements[i].style.display="none";
|
295
|
+
}
|
296
|
+
}
|
297
|
+
return;
|
298
|
+
}
|
299
|
+
|
300
|
+
/*
|
301
|
+
* Shows one div-container and hides the other.
|
302
|
+
* @param id id of the element to show
|
303
|
+
*/
|
304
|
+
function change(id) {
|
305
|
+
hideAll();
|
306
|
+
e = document.getElementById(id);
|
307
|
+
if (e.style.display=="none") {
|
308
|
+
e.style.display="";
|
309
|
+
}
|
310
|
+
window.scrollTo(0, 0);
|
311
|
+
return;
|
312
|
+
}
|
313
|
+
|
314
|
+
/*
|
315
|
+
* Shows only the first data row.
|
316
|
+
* Used in body:onload so the user could directly see some messages.
|
317
|
+
*/
|
318
|
+
function openFirst() {
|
319
|
+
hideAll();
|
320
|
+
for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) {
|
321
|
+
if (allElements[i].className=="hideable") {
|
322
|
+
allElements[i].style.display="";
|
323
|
+
return;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
return;
|
327
|
+
}
|
328
|
+
</xsl:template>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
<!--
|
333
|
+
Calculates the index of the last occurence of a substring in a string.
|
334
|
+
@param txt the whole string in which to search
|
335
|
+
@delimiter the substring to search
|
336
|
+
-->
|
337
|
+
<xsl:template name="last-index-of">
|
338
|
+
<xsl:param name="txt"/>
|
339
|
+
<xsl:param name="remainder" select="$txt"/>
|
340
|
+
<xsl:param name="delimiter" select="' '"/>
|
341
|
+
|
342
|
+
<xsl:choose>
|
343
|
+
<xsl:when test="contains($remainder, $delimiter)">
|
344
|
+
<xsl:call-template name="last-index-of">
|
345
|
+
<xsl:with-param name="txt" select="$txt"/>
|
346
|
+
<xsl:with-param name="remainder" select="substring-after($remainder, $delimiter)"/>
|
347
|
+
<xsl:with-param name="delimiter" select="$delimiter"/>
|
348
|
+
</xsl:call-template>
|
349
|
+
</xsl:when>
|
350
|
+
<xsl:otherwise>
|
351
|
+
<xsl:variable name="lastIndex" select="string-length(substring($txt, 1, string-length($txt)-string-length($remainder)))+1"/>
|
352
|
+
<xsl:choose>
|
353
|
+
<xsl:when test="string-length($remainder)=0">
|
354
|
+
<xsl:value-of select="string-length($txt)"/>
|
355
|
+
</xsl:when>
|
356
|
+
<xsl:when test="$lastIndex>0">
|
357
|
+
<xsl:value-of select="($lastIndex - string-length($delimiter))"/>
|
358
|
+
</xsl:when>
|
359
|
+
<xsl:otherwise>
|
360
|
+
<xsl:value-of select="0"/>
|
361
|
+
</xsl:otherwise>
|
362
|
+
</xsl:choose>
|
363
|
+
</xsl:otherwise>
|
364
|
+
</xsl:choose>
|
365
|
+
</xsl:template>
|
366
|
+
|
367
|
+
</xsl:stylesheet>
|
data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-frames.xsl
RENAMED
File without changes
|
data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-text.xsl
RENAMED
File without changes
|
data/lib/template/bundled/{apache-ant-1.9.4 → apache-ant-1.9.7}/etc/checkstyle/checkstyle-xdoc.xsl
RENAMED
File without changes
|
@@ -33,8 +33,6 @@
|
|
33
33
|
of a reference classpath so that you have the list of classes/methods
|
34
34
|
that are not used at all in a given classpath.
|
35
35
|
|
36
|
-
@author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/>
|
37
|
-
|
38
36
|
-->
|
39
37
|
|
40
38
|
<!-- default output directory is current directory -->
|
File without changes
|
File without changes
|
@@ -929,7 +929,24 @@ h6 {
|
|
929
929
|
-->
|
930
930
|
<xsl:template name="br-replace">
|
931
931
|
<xsl:param name="word"/>
|
932
|
+
<xsl:param name="splitlimit">32</xsl:param>
|
933
|
+
<xsl:variable name="secondhalflen" select="(string-length($word)+(string-length($word) mod 2)) div 2"/>
|
934
|
+
<xsl:variable name="secondhalfword" select="substring($word, $secondhalflen)"/>
|
935
|
+
<!-- When word is very big, a recursive replace is very heap/stack expensive, so subdivide on line break after middle of string -->
|
932
936
|
<xsl:choose>
|
937
|
+
<xsl:when test="(string-length($word) > $splitlimit) and (contains($secondhalfword, '
'))">
|
938
|
+
<xsl:variable name="secondhalfend" select="substring-after($secondhalfword, '
')"/>
|
939
|
+
<xsl:variable name="firsthalflen" select="string-length($word) - $secondhalflen"/>
|
940
|
+
<xsl:variable name="firsthalfword" select="substring($word, 1, $firsthalflen)"/>
|
941
|
+
<xsl:variable name="firsthalfend" select="substring-before($secondhalfword, '
')"/>
|
942
|
+
<xsl:call-template name="br-replace">
|
943
|
+
<xsl:with-param name="word" select="concat($firsthalfword,$firsthalfend)"/>
|
944
|
+
</xsl:call-template>
|
945
|
+
<br/>
|
946
|
+
<xsl:call-template name="br-replace">
|
947
|
+
<xsl:with-param name="word" select="$secondhalfend"/>
|
948
|
+
</xsl:call-template>
|
949
|
+
</xsl:when>
|
933
950
|
<xsl:when test="contains($word, '
')">
|
934
951
|
<xsl:value-of select="substring-before($word, '
')"/>
|
935
952
|
<br/>
|
@@ -938,7 +955,7 @@ h6 {
|
|
938
955
|
</xsl:call-template>
|
939
956
|
</xsl:when>
|
940
957
|
<xsl:otherwise>
|
941
|
-
|
958
|
+
<xsl:value-of select="$word"/>
|
942
959
|
</xsl:otherwise>
|
943
960
|
</xsl:choose>
|
944
961
|
</xsl:template>
|
@@ -469,7 +469,24 @@
|
|
469
469
|
-->
|
470
470
|
<xsl:template name="br-replace">
|
471
471
|
<xsl:param name="word"/>
|
472
|
+
<xsl:param name="splitlimit">32</xsl:param>
|
473
|
+
<xsl:variable name="secondhalflen" select="(string-length($word)+(string-length($word) mod 2)) div 2"/>
|
474
|
+
<xsl:variable name="secondhalfword" select="substring($word, $secondhalflen)"/>
|
475
|
+
<!-- When word is very big, a recursive replace is very heap/stack expensive, so subdivide on line break after middle of string -->
|
472
476
|
<xsl:choose>
|
477
|
+
<xsl:when test="(string-length($word) > $splitlimit) and (contains($secondhalfword, '
'))">
|
478
|
+
<xsl:variable name="secondhalfend" select="substring-after($secondhalfword, '
')"/>
|
479
|
+
<xsl:variable name="firsthalflen" select="string-length($word) - $secondhalflen"/>
|
480
|
+
<xsl:variable name="firsthalfword" select="substring($word, 1, $firsthalflen)"/>
|
481
|
+
<xsl:variable name="firsthalfend" select="substring-before($secondhalfword, '
')"/>
|
482
|
+
<xsl:call-template name="br-replace">
|
483
|
+
<xsl:with-param name="word" select="concat($firsthalfword,$firsthalfend)"/>
|
484
|
+
</xsl:call-template>
|
485
|
+
<br/>
|
486
|
+
<xsl:call-template name="br-replace">
|
487
|
+
<xsl:with-param name="word" select="$secondhalfend"/>
|
488
|
+
</xsl:call-template>
|
489
|
+
</xsl:when>
|
473
490
|
<xsl:when test="contains($word, '
')">
|
474
491
|
<xsl:value-of select="substring-before($word, '
')"/>
|
475
492
|
<br/>
|
@@ -478,7 +495,7 @@
|
|
478
495
|
</xsl:call-template>
|
479
496
|
</xsl:when>
|
480
497
|
<xsl:otherwise>
|
481
|
-
|
498
|
+
<xsl:value-of select="$word"/>
|
482
499
|
</xsl:otherwise>
|
483
500
|
</xsl:choose>
|
484
501
|
</xsl:template>
|