Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the unsupported Ant build

  • Loading branch information...
commit cd16b3b663cd63c32a148442e054a3c3a4c9394d 1 parent 6c1bc37
Cédric Champeau melix authored
Showing with 5 additions and 6,124 deletions.
  1. BIN  bootstrap/maven-ant-tasks-2.1.3.jar
  2. +0 −22 build.properties
  3. +0 −1,015 build.xml
  4. +0 −53 config/ant/build-checkstyle.xml
  5. +0 −55 config/ant/build-cobertura.xml
  6. +0 −168 config/ant/build-maven.xml
  7. +0 −94 config/ant/build-setup.xml
  8. +0 −51 cruise/build.xml
  9. +0 −100 cruise/buildstatus.xsl
  10. +0 −380 cruise/cc.xsl
  11. +0 −12 cruise/emailmap.properties
  12. +0 −16 cruise/html/index.html
  13. +0 −16 cruise/htmlmail.xsl
  14. +0 −61 cruise/project.xml
  15. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/BuildInfo.class
  16. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/BuildInfoSummary.class
  17. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/CruiseControlWebAppException.class
  18. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/StatusHelper.class
  19. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/chart/AbstractCruiseControlChartData.class
  20. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/chart/PieChartData.class
  21. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/chart/TimeChartData.class
  22. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/servlet/FileServlet.class
  23. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/servlet/WebFile.class
  24. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/ArtifactsLinkTag.class
  25. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/ArtifactsLinkTagExtraInfo.class
  26. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/BuildInfoTag.class
  27. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/BuildInfoTagExtraInfo.class
  28. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/CruiseControlBodyTagSupport.class
  29. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/CruiseControlLogFileFilter.class
  30. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/CruiseControlTagSupport$1.class
  31. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/CruiseControlTagSupport.class
  32. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/CurrentBuildStatusTag.class
  33. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/LinkTag.class
  34. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/LinkTagExtraInfo.class
  35. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/NavigationTag.class
  36. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/NavigationTagExtraInfo.class
  37. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/ReversedComparator.class
  38. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/Tab.class
  39. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/TabSheetTag.class
  40. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/TabTag.class
  41. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/XSLTag$1.class
  42. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/taglib/XSLTag.class
  43. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/util/DateUtil.class
  44. BIN  cruise/reporting-app/WEB-INF/classes/net/sourceforge/cruisecontrol/util/TimeNumberFormat.class
  45. +0 −150 cruise/reporting-app/WEB-INF/cruisecontrol-jsp11.tld
  46. +0 −145 cruise/reporting-app/WEB-INF/cruisecontrol-jsp12.tld
  47. BIN  cruise/reporting-app/WEB-INF/lib/batik-awt-util.jar
  48. BIN  cruise/reporting-app/WEB-INF/lib/batik-svggen.jar
  49. BIN  cruise/reporting-app/WEB-INF/lib/batik-util.jar
  50. BIN  cruise/reporting-app/WEB-INF/lib/cewolf.jar
  51. BIN  cruise/reporting-app/WEB-INF/lib/commons-logging.jar
  52. BIN  cruise/reporting-app/WEB-INF/lib/jcommon-0.8.0.jar
  53. BIN  cruise/reporting-app/WEB-INF/lib/jfreechart-0.9.8.jar
  54. +0 −139 cruise/reporting-app/WEB-INF/web.xml
  55. +0 −60 cruise/reporting-app/buildresults.jsp
  56. +0 −86 cruise/reporting-app/checkstyle.xml
  57. +0 −63 cruise/reporting-app/controlpanel.jsp
  58. +0 −36 cruise/reporting-app/cruisecontrol.header
  59. +0 −153 cruise/reporting-app/css/cruisecontrol.css
  60. BIN  cruise/reporting-app/images/DukeGroovyChair.jpg
  61. BIN  cruise/reporting-app/images/backhead2.png
  62. BIN  cruise/reporting-app/images/blank35.gif
  63. BIN  cruise/reporting-app/images/blank8.gif
  64. BIN  cruise/reporting-app/images/bluebg.gif
  65. BIN  cruise/reporting-app/images/bluestripesbottom.gif
  66. BIN  cruise/reporting-app/images/bluestripestop.gif
  67. BIN  cruise/reporting-app/images/buildResultsTab-off.gif
  68. BIN  cruise/reporting-app/images/buildResultsTab-on.gif
  69. BIN  cruise/reporting-app/images/canoo_rgb_pos.gif
  70. BIN  cruise/reporting-app/images/continuousintegration.gif
  71. BIN  cruise/reporting-app/images/controlPanelTab-off.gif
  72. BIN  cruise/reporting-app/images/controlPanelTab-on.gif
  73. BIN  cruise/reporting-app/images/logo.gif
  74. BIN  cruise/reporting-app/images/testResultsTab-off.gif
  75. BIN  cruise/reporting-app/images/testResultsTab-on.gif
  76. BIN  cruise/reporting-app/images/xmlLogFileTab-off.gif
  77. BIN  cruise/reporting-app/images/xmlLogFileTab-on.gif
  78. BIN  cruise/reporting-app/images/yellowGreenBack.png
  79. +0 −155 cruise/reporting-app/index.jsp
  80. +0 −85 cruise/reporting-app/main.jsp
  81. +0 −35 cruise/reporting-app/metrics.jsp
  82. +0 −57 cruise/reporting-app/navigation.jsp
  83. +0 −39 cruise/reporting-app/testdetails.jsp
  84. +0 −38 cruise/reporting-app/xmllog.jsp
  85. +0 −62 cruise/reporting-app/xsl/breakdown.xsl
  86. +0 −84 cruise/reporting-app/xsl/changelists/header.xsl
  87. +0 −68 cruise/reporting-app/xsl/checkstyle.xsl
  88. +0 −119 cruise/reporting-app/xsl/compile.xsl
  89. +0 −80 cruise/reporting-app/xsl/distributables.xsl
  90. +0 −90 cruise/reporting-app/xsl/header.xsl
  91. +0 −98 cruise/reporting-app/xsl/javadoc.xsl
  92. +0 −313 cruise/reporting-app/xsl/logfile.xsl
  93. +0 −101 cruise/reporting-app/xsl/maven.xsl
  94. +0 −205 cruise/reporting-app/xsl/modifications.xsl
  95. +0 −313 cruise/reporting-app/xsl/testdetails.xsl
  96. +0 −264 cruise/reporting-app/xsl/unittests.xsl
  97. +0 −1,038 pom.xml
  98. +5 −5 src/test/groovy/GroovyMethodsTest.groovy
BIN  bootstrap/maven-ant-tasks-2.1.3.jar
View
Binary file not shown
22 build.properties
View
@@ -1,22 +0,0 @@
-groovyVersion = 2.0.0-rc-1-SNAPSHOT
-# bundle version format: major('.'minor('.'micro('.'qualifier)?)?)? (first 3 only digits)
-groovyBundleVersion = 2.0.0.rc-1-SNAPSHOT
-
-# Many people have reported problems testing UberTestCaseGroovySourceSubPackages, others have no difficulties with the default
-# values ant junit task uses. The decision has been taken to provide the values to try and cause the least
-# hassle to the most people.
-
-groovyJUnit_ms = 256m
-groovyJUnit_mx = 256m
-groovyJUnit_permSize = 64m
-groovyJUnit_maxPermSize=128m
-
-groovycMain_mx = 384m
-groovycTest_mx = 640m
-groovycExamples_mx = ${groovycMain_mx}
-
-javaDoc_mx = 512m
-# This property seems not to make such sense as the Groovydoc Ant task does not allow for setting it.
-groovyDoc_mx = 600m
-
-useIndy=false
1,015 build.xml
View
@@ -1,1015 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-Ant build script for Groovy.
-
-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.
-
-This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on
-behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information.
-
-Author : Russel Winder
-Author : Paul King
-$Revision$ ($LastChangedBy$)
-$Date$
--->
-
-<project name="Groovy" default="createJars" basedir=".">
-
- <property file="local.build.properties"/>
- <property file="build.properties"/>
- <property name="ant.requiredVersion" value="1.6.5"/>
-
- <!-- config/ant/build-maven.xml imports config/ant/build-setup.xml where all the paths are defined. -->
- <import file="config/ant/build-maven.xml"/>
- <import file="config/ant/build-checkstyle.xml"/>
- <import file="config/ant/build-cobertura.xml"/>
-
- <condition property="_skipTests_">
- <or>
- <equals arg1="${test}" arg2="false"/>
- <istrue value="${skipTests}"/>
- </or>
- </condition>
-
- <condition property="_skipExamples_">
- <istrue value="${skipExamples}"/>
- </condition>
-
- <condition property="_skipDocs_">
- <istrue value="${skipDocs}"/>
- </condition>
-
- <condition property="_skipOsgi_">
- <istrue value="${skipOsgi}"/>
- </condition>
-
- <condition property="_useIndy_">
- <istrue value="${useIndy}"/>
- </condition>
-
- <condition property="_skipFetch_">
- <istrue value="${skipFetch}"/>
- </condition>
-
- <condition property="_skipEmbeddable_">
- <istrue value="${skipEmbeddable}"/>
- </condition>
-
- <condition property="_forceServerSettings_">
- <istrue value="${forceServerSettings}"/>
- </condition>
-
- <condition property="groovy.build.vm4">
- <contains string="${ant.java.version}" substring="1.4"/>
- </condition>
-
- <condition property="groovy.build.vm6">
- <contains string="${ant.java.version}" substring="1.6"/>
- </condition>
-
- <presetdef name="javac">
- <javac memoryMaximumSize="500m"/>
- </presetdef>
-
- <target name="-initCoverage">
- <condition property="_forceCoverage_">
- <and>
- <not>
- <istrue value="${skipTests}"/>
- </not>
- <istrue value="${forceCoverage}"/>
- </and>
- </condition>
- </target>
-
- <target name="ensureGrammars" description="Ensure all the Antlr generated files are up to date.">
- <mkdir dir="${groovyParserDirectory}"/>
- <antlr target="${antlrDirectory}/groovy.g" outputdirectory="${groovyParserDirectory}">
- <classpath refid="compilePath"/>
- </antlr>
- <antlr target="${javaParserDirectory}/java.g" outputdirectory="${javaParserDirectory}">
- <classpath refid="compilePath"/>
- </antlr>
- </target>
-
- <target name="-init" depends="-banner,-fetchDependencies"/>
-
- <target name="-banner">
- <echo message="Java Runtime Environment version: ${java.version}"/>
- <echo message="Java Runtime Environment vendor: ${java.vendor}"/>
- <echo message="Ant version: ${ant.version}"/>
- <echo message="Operating system name: ${os.name}"/>
- <echo message="Operating system architecture: ${os.arch}"/>
- <echo message="Operating system version: ${os.version}"/>
- <echo message="Base directory: ${basedir}"/>
- <echo message="Java Home: ${java.home}"/>
- <echo message="Compilation using invokedynamic: ${useIndy}"/>
- </target>
-
- <target name="-buildVersionCheck" depends="-jvm14BuildWarning">
- </target>
-
- <target name="-jvm14BuildWarning" if="groovy.build.vm4">
- <fail>Aborting!
-
-================================================
- ERROR: You must build Groovy with a 1.5+ JDK
-================================================
- </fail>
- </target>
-
- <target name="-checkAntVersion" depends="-excludeLegacyAntVersion"
- description="Check that we are running on the required version of Ant."/>
-
- <target name="-excludeLegacyAntVersion">
- <!-- antversion didn't exist in early versions of ant so we have
- a legacy check to provide a nicer error message in this case -->
- <fail message="You are using ant ${ant.version}, please build using ant ${ant.requiredVersion}+">
- <condition>
- <or>
- <contains string="${ant.version}" substring="1.1"></contains>
- <contains string="${ant.version}" substring="1.2"></contains>
- <contains string="${ant.version}" substring="1.3"></contains>
- <contains string="${ant.version}" substring="1.4"></contains>
- <contains string="${ant.version}" substring="1.5"></contains>
- <and>
- <contains string="${ant.version}" substring="1.6"></contains>
- <not>
- <contains string="${ant.version}" substring="${ant.requiredVersion}"></contains>
- </not>
- </and>
- </or>
- </condition>
- </fail>
- </target>
-
- <!-- add back in if we make 1.7+ minimal required version for build again
- <target name="-ensureRequiredAntVersion">
- <fail message="You are using ant ${ant.version}, please install using ant ${ant.requiredVersion}+"/>
- <condition><not><antversion atleast="${ant.requiredVersion}"/></not></condition>
- </fail>
- </target>
- -->
-
- <target name="compileMain" depends="stagedcompile"
- description="Compile the Java and Groovy code in the main source.">
- </target>
-
- <target name="stagedcompile" depends="-init,ensureGrammars,-buildVersionCheck" unless="uber">
- <property name="vm5GroovySourceFiles" value="**/*.groovy"/>
- <property name="vm5JavaSourceFiles" value="**/*.java"/>
- <property name="anotherGroovyExtTestFiles" value="**/*.foogroovy"/>
- <property name="vm6GroovySourceFiles" value="groovy/**/vm6/*Test.groovy,org/codehaus/groovy/**/vm6/*Test.groovy"/>
- <property name="vm7JavaSourceFiles" value="**/indy/*.java,**/v7/*.java,**/vm7/*.java"/>
-
- <mkdir dir="${mainClassesDirectory}"/>
- <mkdir dir="${toolsClassesDirectory}"/>
- <mkdir dir="${mainClassesDirectory}/META-INF"/>
-
- <javac srcdir="${mainSourcePath}" includeantruntime="false" destdir="${mainClassesDirectory}"
- deprecation="on" debug="yes" source="1.5" target="1.5" fork="true" classpathref="compilePath"
- excludes="${vm7JavaSourceFiles}"
- >
- <exclude name="groovy/ui/**/*.java"/>
- </javac>
- <java classname="org.codehaus.groovy.tools.DgmConverter" fork="yes" failonerror="true">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- <arg line="--info"/>
- </java>
- <antcall inheritrefs="true" target="-stagedcompile-indy"/>
- <antcall inheritrefs="true" target="-stagedcompile-groovy"/>
- <antcall target="-includeResources"/>
- </target>
-
- <target name="-stagedcompile-indy" if="_useIndy_">
- <javac srcdir="${mainSourcePath}" includeantruntime="false" destdir="${mainClassesDirectory}"
- deprecation="on" debug="yes" source="1.5" target="1.5" fork="true"
- includes="${vm7JavaSourceFiles}">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- </javac>
- </target>
-
- <target name="-stagedcompile-groovy" depends="-initGroovyc">
- <groovyc srcdir="${mainSourcePath}" destdir="${mainClassesDirectory}"
- fork="true" stacktrace="true" indy="${useIndy}" excludes="${vm7JavaSourceFiles}"
- memorymaximumsize="${groovycMain_mx}">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- <javac deprecation="on" debug="yes" source="1.5" target="1.5"/>
- </groovyc>
- </target>
-
- <target name="-initGroovyc">
- <path id="groovyMainClasses">
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </path>
- <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovyMainClasses"/>
- </target>
-
- <target name="compileTest" depends="compileMain,compileTestOnly"
- description="Compile the Java and Groovy code in the test source."/>
-
- <target name="-cleanTest">
- <delete dir="${testClassesDirectory}"/>
- </target>
-
- <target name="compileTestOnly" unless="_skipTests_">
- <mkdir dir="${testClassesDirectory}"/>
- <antcall inheritrefs="true" target="-compileTest"/>
- </target>
-
- <target name="-compileTest" depends="-initGroovyc,-compileTest_vm6">
- <copy todir="${testClassesDirectory}">
- <fileset dir="${testSourceDirectory}">
- <include name="META-INF/services/*"/>
- <include name="**/*.html"/><!-- includes groovydoc templates -->
- </fileset>
- </copy>
- <groovyc srcdir="${testSourcePath}"
- destdir="${testClassesDirectory}"
- includes="${vm5GroovySourceFiles},${vm5JavaSourceFiles},${anotherGroovyExtTestFiles}"
- excludes="${vm6GroovySourceFiles}"
- fork="true" indy="${useIndy}"
- stacktrace="true"
- memorymaximumsize="${groovycTest_mx}">
- <classpath>
- <pathelement path="${testClassesDirectory}"/>
- <path refid="groovyMainClasses"/>
- <path refid="testLibPath"/>
- </classpath>
- <javac source="1.5" target="1.5" nowarn="on"/>
- </groovyc>
- </target>
-
- <target name="-compileTest_vm6" if="groovy.build.vm6">
- <groovyc srcdir="${testSourcePath}"
- destdir="${testClassesDirectory}"
- includes="${vm6GroovySourceFiles}"
- fork="true" indy="${useIndy}"
- stacktrace="true"
- memorymaximumsize="${groovycTest_mx}">
- <classpath>
- <pathelement path="${testClassesDirectory}"/>
- <path refid="groovyMainClasses"/>
- <path refid="testLibPath"/>
- </classpath>
- <!-- currently not needed, add in if/when required -->
- <!--<javac source="1.5" target="1.5" nowarn="on"/>-->
- </groovyc>
- </target>
-
- <target name="compileExamples" depends="-init,-initGroovyc,compileMain,-includeExamplesResources"
- unless="_skipExamples_"
- description="Compile the Java and Groovy code in the examples source directory.">
- <mkdir dir="${examplesClassesDirectory}"/>
- <echo message="Compiling example code."/>
-
- <groovyc srcdir="${examplesSourceDirectory}/webapps/groovlet-examples/WEB-INF/groovy"
- destdir="${examplesClassesDirectory}"
- fork="true" stacktrace="true" indy="${useIndy}"
- memorymaximumsize="${groovycExamples_mx}">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- <path refid="examplesPath"/>
- </classpath>
- </groovyc>
- <javac srcdir="${examplesSourceDirectory}"
- destdir="${examplesClassesDirectory}"
- source="1.5"
- target="1.5"
- fork="true">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <pathelement path="${examplesClassesDirectory}"/>
- <path refid="compilePath"/>
- <path refid="examplesPath"/>
- </classpath>
- </javac>
- <groovyc srcdir="${examplesSourceDirectory}"
- destdir="${examplesClassesDirectory}"
- fork="true" stacktrace="true" indy="${useIndy}"
- memorymaximumsize="${groovycExamples_mx}"
- excludes="webapps/groovlet-examples/WEB-INF/groovy/**/*.groovy,org/codehaus/groovy/grails/compiler/injection/**/*.java">
- <classpath>
- <pathelement path="${mainClassesDirectory}"/>
- <pathelement path="${examplesClassesDirectory}"/>
- <path refid="compilePath"/>
- <path refid="examplesPath"/>
- </classpath>
- <javac source="1.5" target="1.5"/>
- </groovyc>
-
- </target>
-
- <target name="-initializeReports">
- <mkdir dir="${reportsDirectory}"/>
- </target>
-
- <condition property="_shouldBeHeadless_">
- <or>
- <istrue value="${java.awt.headless}"/>
- <!--<os name="Mac OS X"/>-->
- </or>
- </condition>
-
- <target name="-testInit" depends="-initHeadless">
- <property name="headlessArg" value=""/>
- <property name="junitJvmArgs"
- value="-Xms${groovyJUnit_ms} -XX:PermSize=${groovyJUnit_permSize} -XX:MaxPermSize=${groovyJUnit_maxPermSize} ${headlessArg} -Dgroovy.testdb.props=${groovy.testdb.props} -DjavadocAssertion.src.dir=./src/main"/>
- </target>
-
- <target name="-initHeadless" if="_shouldBeHeadless_">
- <property name="headlessArg" value="-Djava.awt.headless=true"/>
- <echo message="Setting headless mode ..."/>
- </target>
-
- <target name="test"
- depends="-banner,-checkAntVersion,-initializeReports,compileTest,-coverageInstrument,-testInit,-testOne,-testAll,-reportTestFailed"
- description="Compile and test all the classes (or just one class if testCase property is defined)."/>
-
- <target name="clean-test" depends="clean,test"
- description="Clean and compile and test all the classes (or just one class if testCase property is defined)."/>
-
- <condition property="_testOne_">
- <and>
- <not>
- <istrue value="${_skipTests_}"/>
- </not>
- <isset property="testCase"/>
- </and>
- </condition>
-
- <target name="-testOne" if="_testOne_" depends="-initGroovyc">
- <mkdir dir="${junitRawDirectory}"/>
- <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed"
- maxmemory="${groovyJUnit_mx}" dir="${basedir}">
- <sysproperty key="apple.awt.UIElement" value="true"/>
- <!-- keeps the dock from showing the AWT startup -->
- <jvmarg line="${junitJvmArgs}"/>
- <test name="${testCase}" todir="${junitRawDirectory}"/>
- <formatter type="brief" usefile="false"/>
- <classpath>
- <pathelement path="${instrumentedClassesDirectory}"/>
- <pathelement path="src/test"/>
- <!-- TODO temp hack - remove once modules are in place -->
- <pathelement path="${bsfSourceDirectory}/test/java"/>
- <pathelement path="${jmxSourceDirectory}/test/groovy"/>
- <pathelement path="${jmxSourceDirectory}/test/java"/>
- <pathelement path="${jsr223SourceDirectory}/test/groovy"/>
- <pathelement path="${jsr223SourceDirectory}/test/java"/>
- <pathelement path="${groovyTestSourceDirectory}/test/groovy"/>
- <pathelement path="${groovyTestSourceDirectory}/test/java"/>
- <path refid="groovyMainClasses"/>
- <path refid="testLibPath"/>
- <pathelement path="${testClassesDirectory}"/>
- <path refid="coberturaPath"/>
- </classpath>
- <assertions>
- <enable/>
- </assertions>
- </junit>
- </target>
-
- <condition property="_testAll_">
- <and>
- <not>
- <istrue value="${_skipTests_}"/>
- </not>
- <not>
- <isset property="_testOne_"/>
- </not>
- </and>
- </condition>
-
- <target name="-collectOptionalTests">
- <condition property="networkTests.fileset.includes" value="groovy/grape/*Test.class" else="-nothing-">
- <istrue value="${junit.network}"/>
- </condition>
- <fileset id="optionalTests.fileset" dir="${testClassesDirectory}" includes="${networkTests.fileset.includes}"/>
- </target>
-
- <target name="-collect15tests" unless="groovy.build.vm6">
- <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class" excludes="Uber*VM6.class"/>
- </target>
-
- <target name="-collect16tests" if="groovy.build.vm6">
- <fileset id="ubertests.fileset" dir="${testClassesDirectory}" includes="UberTest*.class"/>
- </target>
-
- <target name="-testAll" if="_testAll_" depends="-collect15tests,-collect16tests,-collectOptionalTests,-initGroovyc">
- <mkdir dir="${junitRawDirectory}"/>
- <junit printsummary="true" fork="true" includeantruntime="false" failureproperty="testFailed"
- maxmemory="${groovyJUnit_mx}" dir="${basedir}">
- <jvmarg line="${junitJvmArgs}"/>
- <sysproperty key="apple.awt.UIElement" value="true"/>
- <!-- keeps the dock from showing the AWT startup -->
- <formatter type="xml"/>
- <formatter type="plain" unless="noTextReports"/>
- <batchtest todir="${junitRawDirectory}">
- <fileset refid="ubertests.fileset"/>
- <fileset refid="optionalTests.fileset"/>
- </batchtest>
- <classpath>
- <pathelement path="${instrumentedClassesDirectory}"/>
- <pathelement path="src/test"/>
- <!-- TODO temp hack - remove once modules are in place -->
- <pathelement path="${bsfSourceDirectory}/test/java"/>
- <pathelement path="${jmxSourceDirectory}/test/groovy"/>
- <pathelement path="${jmxSourceDirectory}/test/java"/>
- <pathelement path="${jsr223SourceDirectory}/test/groovy"/>
- <pathelement path="${jsr223SourceDirectory}/test/java"/>
- <pathelement path="${groovyTestSourceDirectory}/test/groovy"/>
- <path refid="groovyMainClasses"/>
- <path refid="testLibPath"/>
- <pathelement path="${testClassesDirectory}"/>
- <path refid="coberturaPath"/>
- </classpath>
- <assertions>
- <enable/>
- </assertions>
- </junit>
- <mkdir dir="${junitReportsDirectory}"/>
- <junitreport tofile="${junitRawDirectory}/Results.xml">
- <fileset dir="${junitRawDirectory}" includes="TEST-*.xml"/>
- <report format="frames" todir="${junitReportsDirectory}"/>
- </junitreport>
- </target>
-
- <target name="-reportTestFailed" depends="-coverageReport" if="testFailed">
- <fail message="Test failed, not processing further targets."/>
- </target>
-
- <target name="-coverageInstrument" depends="-initCoverage,-coberturaInit" if="_forceCoverage_">
- <mkdir dir="${instrumentedClassesDirectory}"/>
- <coberturaInstrument classesDirectory="${mainClassesDirectory}"/>
- </target>
-
- <target name="-coverageReport" depends="-initCoverage" if="_forceCoverage_">
- <coberturaReport reportDirectory="${reportsDirectory}/cobertura"/>
- </target>
-
- <target name="-actuallyCreateJars"
- depends="-makeManifest,-initializeJars,-createBaseJar,-createEmbeddableJar"
- unless="testFailed">
- <copy toDir="${targetDistDirectory}" failonerror="false">
- <fileset dir="${basedir}/extraArtifacts"/>
- </copy>
- </target>
-
- <target name="-makeManifest">
- <mkdir dir="${mainClassesDirectory}/META-INF"/>
- <copy todir="${mainClassesDirectory}/META-INF" file="LICENSE.txt"/>
- <makeManifest file="${mainClassesDirectory}/META-INF/MANIFEST.MF"/>
- </target>
-
- <macrodef name="makeManifest">
- <attribute name="file"/>
- <attribute name="bundleEnvironment" default="J2SE-1.5"/>
- <sequential>
- <manifest file="@{file}">
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="Extension-Name" value="groovy"/>
- <attribute name="Specification-Title" value="Groovy: a powerful, dynamic language for the JVM"/>
- <attribute name="Specification-Version" value="${groovyVersion}"/>
- <attribute name="Specification-Vendor" value="The Codehaus"/>
- <attribute name="Implementation-Title" value="Groovy: a powerful, dynamic language for the JVM"/>
- <attribute name="Implementation-Version" value="${groovyVersion}"/>
- <attribute name="Implementation-Vendor" value="The Codehaus"/>
- <attribute name="Bundle-ManifestVersion" value="2"/>
- <attribute name="Bundle-Name" value="Groovy Runtime"/>
- <attribute name="Bundle-Description" value="Groovy Runtime"/>
- <attribute name="Bundle-Version" value="${groovyBundleVersion}"/>
- <attribute name="Bundle-Vendor" value="The Codehaus"/>
- <attribute name="Bundle-ClassPath" value="."/>
- <attribute name="Bundle-RequiredExecutionEnvironment" value="@{bundleEnvironment}"/>
- <attribute name="Eclipse-BuddyPolicy" value="dependent"/>
- <attribute name="Eclipse-LazyStart" value="true"/>
- <attribute name="DynamicImport-Package" value="*"/>
- <attribute name="Main-class" value="groovy.ui.GroovyMain"/>
- </manifest>
- </sequential>
- </macrodef>
-
- <target name="-includeResources" depends="-includeGroovyDocTemplates">
- <copy todir="${mainClassesDirectory}">
- <fileset dir="${mainSourceDirectory}">
- <include name="META-INF/services/*"/>
- <include name="groovy/grape/*.xml"/>
- <include name="groovy/ui/*.properties"/>
- <include name="groovy/ui/**/*.png"/>
- <include name="groovy/inspect/swingui/AstBrowserProperties.groovy"/>
- <include name="org/codehaus/groovy/tools/shell/**/*.properties"/>
- <include name="org/codehaus/groovy/tools/groovydoc/**/*.properties"/>
- <include name="org/codehaus/groovy/tools/shell/**/*.xml"/>
- <include name="org/codehaus/groovy/antlib.xml"/>
- </fileset>
- </copy>
- <antcall target="-includeReleaseInfo"/>
- </target>
-
- <target name="-includeReleaseInfo">
- <copy file="${mainSourceDirectory}/META-INF/groovy-release-info.properties"
- todir="${mainClassesDirectory}/META-INF" overwrite="true">
- </copy>
- <tstamp>
- <format property="release.date" pattern="dd-MMM-yyyy"/>
- <format property="release.time" pattern="hh:mm aa"/>
- </tstamp>
- <replace file="${mainClassesDirectory}/META-INF/groovy-release-info.properties">
- <replacefilter token="##ImplementationVersion##" value="${groovyVersion}"/>
- <replacefilter token="##BundleVersion##" value="${groovyBundleVersion}"/>
- <replacefilter token="##BuildDate##" value="${release.date}"/>
- <replacefilter token="##BuildTime##" value="${release.time}"/>
- </replace>
- </target>
-
- <target name="-includeExamplesResources" depends="-includeGroovyDocTemplates">
- <copy todir="${examplesClassesDirectory}">
- <fileset dir="${examplesSourceDirectory}">
- <include name="/swing/binding/caricature/resources/*.gif"/>
- </fileset>
- </copy>
- </target>
-
- <target name="-includeGroovyDocTemplates">
- <copy todir="${mainClassesDirectory}">
- <fileset dir="${mainSourceDirectory}">
- <include name="org/codehaus/groovy/tools/groovydoc/gstringTemplates/*/*.*"/>
- </fileset>
- <fileset dir="${docgeneratorSourceDirectory}/main/groovy">
- <include name="org/codehaus/groovy/tools/groovy.ico"/>
- </fileset>
- </copy>
- </target>
-
- <target name="-initializeJars" depends="test" unless="_skipDocs_">
- <delete dir="${targetDistDirectory}" quiet="true"/>
- <mkdir dir="${targetDistDirectory}"/>
- </target>
-
- <target name="-createBaseJar" unless="testFailed">
- <!-- TODO temp hack - some containers don't correctly handle package-info class files - remove for now -->
- <jar destfile="${targetDistDirectory}/groovy.jar" basedir="${mainClassesDirectory}"
- excludes="*.groovy,**/package-info.class" manifest="${mainClassesDirectory}/META-INF/MANIFEST.MF"/>
- <jar destfile="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar" basedir="${mainSourceDirectory}">
- <!-- TODO temp hack - remove once modules are in place -->
- <fileset dir="${antSourceDirectory}/main/java"/>
- <fileset dir="${antSourceDirectory}/main/groovy"/>
- <fileset dir="${bsfSourceDirectory}/main/java"/>
- <fileset dir="${jmxSourceDirectory}/main/java"/>
- <fileset dir="${jmxSourceDirectory}/main/groovy"/>
- <fileset dir="${jsr223SourceDirectory}/main/java"/>
- <fileset dir="${templateSourceDirectory}/main/java"/>
- <fileset dir="${groovyTestSourceDirectory}/main/java"/>
- <fileset dir="${groovyTestSourceDirectory}/main/groovy"/>
- </jar>
- </target>
-
- <target name="-jarjarInit" unless="_skipEmbeddable_">
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="toolsPath"/>
- </target>
-
- <target name="-createEmbeddableJar" depends="-jarjarInit,-actuallyCreateEmbeddableJar" unless="testFailed"/>
-
- <target name="-actuallyCreateEmbeddableJar" unless="_skipEmbeddable_">
- <delete dir="${stagingDirectory}" quiet="true"/>
- <mkdir dir="${stagingDirectory}"/>
- <unzip dest="${stagingDirectory}">
- <fileset dir="${runtimeLibDirectory}">
- <include name="antlr*.jar"/>
- <include name="asm*.jar"/>
- <exclude name="asm-attr*.jar"/>
- <exclude name="asm-util*.jar"/>
- <exclude name="asm-analysis*.jar"/>
- </fileset>
- </unzip>
- <unzip dest="${stagingDirectory}">
- <patternset>
- <include name="**/org/objectweb/asm/util/AbstractVisitor.class"/>
- <include name="**/org/objectweb/asm/util/Trace*"/>
- </patternset>
- <fileset dir="${runtimeLibDirectory}">
- <include name="asm-util*.jar"/>
- </fileset>
- </unzip>
- <unzip dest="${stagingDirectory}">
- <fileset dir="${targetDistDirectory}">
- <include name="groovy.jar"/>
- </fileset>
- </unzip>
- <copy toDir="${stagingDirectory}/META-INF">
- <fileset dir="${basedir}/config/build">
- <include name="*LICENSE.txt"/>
- </fileset>
- </copy>
- <!-- add commons-cli -->
- <unzip dest="${stagingDirectory}">
- <patternset>
- <!-- no need for the manifest file, we have our own -->
- <exclude name="META-INF/MANIFEST.MF"/>
- </patternset>
- <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/>
- <fileset dir="${runtimeLibDirectory}">
- <include name="commons-cli-*.jar"/>
- </fileset>
- </unzip>
- <makeManifest file="${stagingDirectory}/META-INF/MANIFEST.MF"/>
- <!-- TODO try to make use of jarjar keep ability -->
- <jarjar jarfile="${targetDistDirectory}/groovy-all.jar"
- manifest="${stagingDirectory}/META-INF/MANIFEST.MF">
- <fileset dir="${stagingDirectory}"
- excludes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/>
- <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/>
- <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/>
- <rule pattern="org.apache.commons.cli.**" result="groovyjarjarcommonscli.@1"/>
- </jarjar>
- <jar destfile="${targetDistDirectory}/groovy-all.jar" update="true"
- basedir="${stagingDirectory}"
- includes="groovy/util/CliBuilder*.class,groovy/util/OptionAccessor*.class,org/codehaus/groovy/tools/shell/util/HelpFormatter*.class"/>
-
- <copy file="${targetDistDirectory}/groovy-${groovyVersion}-sources.jar"
- tofile="${targetDistDirectory}/groovy-all-${groovyVersion}-sources.jar"/>
- <delete dir="${stagingDirectory}" quiet="true"/>
- </target>
-
- <target name="createJars" depends="-checkAntVersion,test,-actuallyCreateJars"
- description="Build Groovy and create the jarfiles."/>
-
- <target name="updateJarsForOsgi" unless="_skipOsgi_">
- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="toolsPath"/>
- <copy todir="${targetDistDirectory}">
- <fileset dir="config/bnd" includes="groovy*.bnd"/>
- <filterset>
- <filter token="GROOVY_BUNDLE_VERSION" value="${groovyBundleVersion}"/>
- </filterset>
- </copy>
- <property name="jarsToWrap" value="groovy.jar,groovy-all.jar"/>
- <property name="runtimeJars" refid="runtimePath"/>
- <bndwrap definitions="${targetDistDirectory}" output="${targetDistDirectory}" failok="true"
- classpath="${runtimeJars}">
- <fileset dir="${targetDistDirectory}" includes="${jarsToWrap}"/>
- </bndwrap>
- <delete dir="${targetDistDirectory}" includes="${jarsToWrap}"/>
- <move todir="${targetDistDirectory}">
- <fileset dir="${targetDistDirectory}" includes="groovy*.bar"/>
- <globmapper from="groovy*.bar" to="groovy*-${groovyVersion}.jar"/>
- </move>
- <delete dir="${targetDistDirectory}" includes="groovy*.bnd"/>
- </target>
-
- <target name="skipOsgi" if="_skipOsgi_">
- <move todir="${targetDistDirectory}">
- <fileset dir="${targetDistDirectory}" includes="groovy*.jar"/>
- <globmapper from="groovy*.jar" to="groovy*-${groovyVersion}.jar"/>
- </move>
- </target>
-
- <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed"
- description="Create an installation hierarchy in target/install.">
-
- <!--
- FIXME: It's not really a good idea to delete stuff, as it tends to negate Ant's (or other tools)
- ability to run faster incremental builds.
- -->
- <delete dir="${installDirectory}" quiet="true"/>
- <mkdir dir="${installDirectory}"/>
-
- <!-- Install license files -->
- <copy todir="${installDirectory}">
- <fileset dir="${basedir}">
- <include name="LICENSE.txt"/>
- <include name="NOTICE.txt"/>
- </fileset>
- </copy>
- <unzip dest="${installDirectory}">
- <patternset>
- <include name="META-INF/*-LICENSE.txt"/>
- </patternset>
- <mapper type="flatten"/>
- <fileset file="${targetDistDirectory}/groovy-all-${groovyVersion}.jar"/>
- </unzip>
- <fixcrlf srcdir="${installDirectory}" eol="crlf" includes="*.txt"/>
-
- <!-- Install generated artifacts and runtime dependencies -->
- <mkdir dir="${installDirectory}/lib"/>
- <copy todir="${installDirectory}/lib">
- <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}.jar"/>
- <fileset dir="${runtimeLibDirectory}" includes="*.jar"/>
- </copy>
-
- <!-- Install the embeddable bits -->
- <mkdir dir="${installDirectory}/embeddable"/>
- <copy todir="${installDirectory}/embeddable">
- <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}.jar"/>
- </copy>
-
- <!-- Install the indy artifacts if available bits -->
- <mkdir dir="${installDirectory}/indy"/>
- <copy todir="${installDirectory}/indy">
- <fileset dir="${targetDistDirectory}" includes="groovy-${groovyVersion}-indy.jar"/>
- <fileset dir="${targetDistDirectory}" includes="groovy-all-${groovyVersion}-indy.jar"/>
- </copy>
-
- <!-- Install configuration files -->
- <mkdir dir="${installDirectory}/conf"/>
- <copy toDir="${installDirectory}/conf">
- <fileset dir="${sourceDirectory}/conf" includes="*"/>
- </copy>
-
- <!-- Install scripts -->
- <mkdir dir="${installDirectory}/bin"/>
- <copy toDir="${installDirectory}/bin">
- <fileset dir="${sourceDirectory}/bin" excludes="groovy.icns"/>
- <filterset>
- <filter token="GROOVYJAR" value="groovy-${groovyVersion}.jar"/>
- </filterset>
- </copy>
-
- <!-- icons -->
- <copy toDir="${installDirectory}/bin" flatten="true">
- <fileset dir="${sourceDirectory}/bin" includes="groovy.icns"/>
- <fileset dir="${docgeneratorSourceDirectory}/main/groovy">
- <include name="org/codehaus/groovy/tools/groovy.ico"/>
- </fileset>
- </copy>
-
- <!-- Tweak scripts for platform compatibility -->
- <fixcrlf srcdir="${installDirectory}/bin" eol="lf" excludes="*.bat, *.icns"/>
- <fixcrlf srcdir="${installDirectory}/bin" eol="crlf" includes="*.bat"/>
- <chmod perm="ugo+x">
- <fileset dir="${installDirectory}/bin" includes="*,*.*"/>
- </chmod>
- </target>
-
- <target name="checkstyle" depends="-init,-initializeReports,-checkstyleInit"
- description="Create the code style reports.">
- <!-- TODO extend checkstyle to mainSourcePath -->
- <checkAndReport
- reportDirectory="${reportsDirectory}/checkstyle"
- sourceDirectory="${mainSourceDirectory}"
- excludes="org/codehaus/groovy/antlr/parser/*,org/codehaus/groovy/antlr/java/*,org/codehaus/groovy/syntax/Types.java">
- <path>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="testLibPath"/>
- </path>
- </checkAndReport>
- </target>
-
- <target name="-compileTools" depends="-initGroovyc,compileMain">
- <path id="docGeneratorPath">
- <fileset dir="${toolsLibDirectory}" excludes="asm*.jar"/>
- </path>
- <groovyc srcdir="${toolsSourceDirectory}" destdir="${toolsClassesDirectory}" fork="true">
- <classpath>
- <path refid="docGeneratorPath"/>
- <pathelement path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- </groovyc>
- <copy todir="${toolsClassesDirectory}">
- <fileset dir="${toolsSourceDirectory}">
- <include name="**/*.html"/>
- </fileset>
- </copy>
- </target>
-
- <target name="cruiseReportExtras">
- <mkdir dir="${cruiseReportRootDirectory}"/>
- <copy todir="${cruiseReportRootDirectory}">
- <fileset dir="cruise/html"/>
- </copy>
- </target>
-
- <target name="cruiseInit">
- <property name="noTextReports" value="true"/>
- <property name="forceCoverage" value="true"/>
- <delete dir="${reportsDirectory}" quiet="true" failonerror="false"/>
- <delete dir="${junitRawDirectory}" quiet="true" failonerror="false"/>
- </target>
-
- <target name="cruise" depends="cruiseInit,fulldist,cruiseReportExtras"/>
-
- <target name="-docInit">
- <mkdir dir="${docsDirectory}"/>
- <property name="docFooter" value="Copyright &amp;copy; 2003-2012 The Codehaus. All rights reserved."/>
- <property name="title" value="Groovy ${groovyVersion}"/>
- </target>
-
- <target name="doc" depends="javadoc, groovydoc" description="Create the documentation."/>
-
- <target name="javadoc" depends="-fetchDependencies,-docInit,-buildVersionCheck,ensureGrammars"
- unless="_skipDocs_" description="Create the javadoc documentation.">
- <javadoc destdir="${docsDirectory}/api" author="true" version="true"
- windowtitle="${title}" doctitle="${title}"
- encoding="ISO-8859-1" useexternalfile="true" source="1.5"
- footer="${docFooter}"
- overview="src/main/overviewj.html"
- maxmemory="${javaDoc_mx}"
- >
- <classpath>
- <path path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- <fileset dir="${mainSourceDirectory}" includes="**/*.java"/>
- <!-- TODO temp hack - remove once modules are in place -->
- <fileset dir="${antSourceDirectory}/main/java" includes="**/*.java"/>
- <fileset dir="${bsfSourceDirectory}/main/java" includes="**/*.java"/>
- <fileset dir="${jmxSourceDirectory}/main/java" includes="**/*.java"/>
- <fileset dir="${jsr223SourceDirectory}/main/java" includes="**/*.java"/>
- <fileset dir="${groovyTestSourceDirectory}/main/java" includes="**/*.java"/>
- <link href="http://docs.oracle.com/javase/6/docs/api/"/>
- <link href="http://evgeny-goldin.org/javadoc/ant/api/"/>
- <link href="http://kentbeck.github.com/junit/javadoc/latest/"/>
- <link href="http://docs.oracle.com/javaee/6/api/"/>
- <link href="http://www.antlr2.org/javadoc"/>
- <link href="http://commons.apache.org/cli/api-release"/>
- </javadoc>
- <mkdir dir="${targetDistDirectory}"/>
- <jar basedir="${docsDirectory}/api" destfile="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/>
- <copy toFile="${targetDistDirectory}/groovy-all-${groovyVersion}-javadoc.jar">
- <fileset file="${targetDistDirectory}/groovy-${groovyVersion}-javadoc.jar"/>
- </copy>
- </target>
-
- <target name="groovydoc" depends="-fetchDependencies" unless="_skipDocs_">
- <path id="groovydocpath">
- <path path="${mainClassesDirectory}"/>
- <path refid="runtimePath"/>
- </path>
- <antforked target="realgroovydoc" maxmemory="${groovyDoc_mx}" classpathref="groovydocpath"/>
- </target>
-
- <target name="realgroovydoc" depends="-fetchDependencies,-docInit,-includeGroovyDocTemplates,docGDK">
- <taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc">
- <classpath>
- <path path="${mainClassesDirectory}"/>
- <path refid="compilePath"/>
- </classpath>
- </taskdef>
- <groovydoc
- destdir="${docsDirectory}/gapi"
- sourcepath="${mainSourcePath}"
- packagenames="**.*"
- use="true"
- windowtitle="${title}"
- doctitle="${title}"
- header="${title}"
- footer="${docFooter}"
- overview="src/main/overview.html">
- <link packages="javax.servlet.,javax.management." href="http://docs.oracle.com/javaee/6/api/"/>
- <link packages="java.,org.xml.,javax.,org.w3c." href="http://docs.oracle.com/javase/6/docs/api/"/>
- <link packages="org.apache.ant.,org.apache.tools.ant." href="http://evgeny-goldin.org/javadoc/ant/api/"/>
- <link packages="org.junit.,junit." href="http://kentbeck.github.com/junit/javadoc/latest/"/>
- <link packages="org.apache.commons.cli." href="http://commons.apache.org/cli/api-release"/>
- <link packages="antlr." href="http://www.antlr2.org/javadoc"/>
- </groovydoc>
- </target>
-
- <target name="docGDK" depends="-fetchDependencies,-compileTools" description="Create the GDK documentation">
- <path id="docGeneratorPath">
- <fileset dir="${toolsLibDirectory}" excludes="asm*.jar"/>
- <fileset dir="${compileLibDirectory}" includes="asm*.jar"/>
- </path>
- <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes" failonerror="true">
- <classpath>
- <pathelement path="${toolsClassesDirectory}"/>
- <path refid="docGeneratorPath"/>
- <pathelement path="${mainClassesDirectory}"/>
- </classpath>
- <arg value="org.codehaus.groovy.runtime.DefaultGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.DefaultGroovyStaticMethods"/>
- <arg value="org.codehaus.groovy.runtime.DateGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.EncodingGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.IOGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.ProcessGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.ResourceGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.SocketGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.SqlGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.StringGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.SwingGroovyMethods"/>
- <arg value="org.codehaus.groovy.runtime.XmlGroovyMethods"/>
- <arg value="org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods"/>
- <arg value="org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods"/>
- <arg value="org.codehaus.groovy.vmplugin.v6.PluginStaticGroovyMethods"/>
- </java>
- <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/groovy.ico"/>
- <copy todir="target/html/groovy-jdk" file="src/tools/org/codehaus/groovy/tools/stylesheet.css"/>
- </target>
-
- <target name="clean" description="Clean up build artifacts.">
- <delete dir="${targetDirectory}" quiet="true"/>
- <delete file="cobertura.ser" quiet="true" failonerror="false"/>
- <delete quiet="true">
- <fileset dir="." includes="**/*~"/>
- <fileset dir="${groovyParserDirectory}" includes="Groovy*.*"/>
- <fileset dir="${javaParserDirectory}"
- includes="JavaLexer.java,JavaRecognizer.java,JavaTokenTypes.java,JavaTokenTypes.txt,*.smap"/>
- </delete>
- </target>
-
- <target name="deploy" depends="-mavenDeployInit,install,doc,-deployDefault,-deployFromServer"
- description="Deploy jars to maven repository."/>
-
- <target name="-deployDefault" unless="_forceServerSettings_">
- <mavenDeploy version="${groovyVersion}" prefix="groovy"/>
- <mavenDeploy version="${groovyVersion}" prefix="groovy-all"/>
- </target>
-
- <target name="-deployFromServer" if="_forceServerSettings_">
- <copy tofile="target/settings.xml">
- <fileset file="config/maven/settings.xml"/>
- <filterset>
- <filter token="groovy.deploy.username" value="${groovy.deploy.username}"/>
- <filter token="groovy.deploy.password" value="${groovy.deploy.password}"/>
- </filterset>
- </copy>
- <mavenDeploySettings version="${groovyVersion}" prefix="groovy" settings="target/settings.xml"/>
- <mavenDeploySettings version="${groovyVersion}" prefix="groovy-all" settings="target/settings.xml"/>
- <delete file="target/settings.xml"/>
- </target>
-
- <target name="installRepo" depends="-mavenInit,install,doc"
- description="Deploy artifacts to local maven repository.">
- <mavenInstallRepo version="${groovyVersion}" prefix="groovy"/>
- <mavenInstallRepo version="${groovyVersion}" prefix="groovy-all"/>
- </target>
-
- <target name="quality" depends="install,checkstyle" description="install plus checkstyle"/>
-
- <target name="release" depends="deploy,compileExamples" description="deploy plus compileExamples"/>
-
- <target name="fulldist" depends="dist,compileExamples,checkstyle" description="dist plus examples plus checkstyle"/>
-
- <target name="dist" depends="install,doc" description="Create everything needed for a distribution.">
- <zip destfile="${targetDistDirectory}/groovy-binary-${groovyVersion}.zip"
- comment="The Groovy ${groovyVersion} binary distribution.">
-
- <!-- Make unix scripts executable -->
- <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}" filemode="775">
- <include name="bin/*"/>
- <exclude name="bin/*.*"/>
- <exclude name="bin/startGroovy*"/>
- </zipfileset>
-
- <!-- Include the other scripts as is -->
- <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}">
- <include name="bin/*.*"/>
- <include name="bin/startGroovy*"/>
- </zipfileset>
-
- <!-- Include everything else as is too -->
- <zipfileset dir="${installDirectory}" prefix="groovy-${groovyVersion}">
- <exclude name="bin/**"/>
- <include name="**"/>
- </zipfileset>
- </zip>
-
- <zip destfile="${targetDistDirectory}/groovy-docs-${groovyVersion}.zip"
- comment="The Groovy ${groovyVersion} documentation distribution.">
- <zipfileset dir="${wikiPdfDirectory}" includes="wiki-snapshot.pdf" prefix="groovy-${groovyVersion}/pdf"/>
- <zipfileset dir="${docsDirectory}" prefix="groovy-${groovyVersion}/html"/>
- </zip>
-
- <zip destfile="${targetDistDirectory}/groovy-src-${groovyVersion}.zip"
- comment="The Groovy ${groovyVersion} source distribution.">
- <zipfileset dir="${basedir}" prefix="groovy-${groovyVersion}">
- <!-- Exclude generated bits as well as any other bits that shouldn't make it in -->
- <exclude name="${targetDirectory}/**"/>
- <exclude name="classes/**"/>
- <exclude name="cruise/**"/>
- <exclude name=".clover/*"/>
- <exclude name=".git/**"/>
- <exclude name="local.build.properties"/>
- <exclude name="cobertura.ser"/>
- <exclude name="junitvmwatcher*.properties"/>
- </zipfileset>
- </zip>
- </target>
-
- <target name="prepare-indy" depends="clean" if="_useIndy_" description="Prepare a release by putting indy artifacts apart">
- <delete dir="${basedir}/extraArtifacts"/>
- <mkdir dir="${basedir}/extraArtifacts"/>
- <antcall target="createJars"/>
- <copy file="${targetDistDirectory}/groovy.jar" tofile="${basedir}/extraArtifacts/groovy-${groovyVersion}-indy.jar"/>
- <copy file="${targetDistDirectory}/groovy-all.jar" tofile="${basedir}/extraArtifacts/groovy-all-${groovyVersion}-indy.jar"/>
- </target>
-
-</project>
53 config/ant/build-checkstyle.xml
View
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-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.
-
-This work is copyright by the author(s) and is part of a greater work collectively copyright by the
-Groovy community. See the NOTICE.txt file distributed with this work for additional information.
-
-Author : Paul King
-$Revision: 5519 $ ($LastChangedBy: paulk $)
-$Date: 2007-03-11 19:14:07 +1000 (Sun, 11 Mar 2007) $
--->
-
-<project name="build-checkstyle" default="" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle" basedir="../..">
-
- <import file="build-setup.xml"/>
-
- <target name="-checkstyleInit">
- <taskdef resource="checkstyletask.properties" uri="antlib:com.puppycrawl.tools.checkstyle" classpathref="toolsPath"/>
- </target>
-
- <macrodef name="checkAndReport">
- <attribute name="reportDirectory"/>
- <attribute name="sourceDirectory"/>
- <attribute name="excludes"/>
- <element name="path"/>
- <sequential>
- <property name="checkstyle.basedir" value="@{sourceDirectory}"/>
- <property name="checkstyleReportDir" location="@{reportDirectory}"/>
- <property name="checkstyleResultPrefix" location="@{reportDirectory}/result"/>
- <mkdir dir="@{reportDirectory}"/>
- <cs:checkstyle config="config/checkstyle/config.xml" failureProperty="checkstyle.failure"
- failOnViolation="false">
- <classpath>
- <path/>
- </classpath>
- <formatter type="xml" tofile="${checkstyleResultPrefix}.xml"/>
- <fileset dir="@{sourceDirectory}" excludes="@{excludes}"/>
- </cs:checkstyle>
- <xslt in="${checkstyleResultPrefix}.xml" out="${checkstyleResultPrefix}.html" style="config/checkstyle/checkstyle-frames.xsl">
- <param name="output.dir" expression="${checkstyleReportDir}"/>
- </xslt>
- </sequential>
- </macrodef>
-
-</project>
55 config/ant/build-cobertura.xml
View
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-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.
-
-This work is copyright by the author(s) and is part of a greater work collectively copyright by Codehaus on
-behalf of the Groovy community. See the NOTICE.txt file distributed with this work for additional information.
-
-Author : Paul King
-$Revision: 5519 $ ($LastChangedBy: paulk $)
-$Date: 2007-03-11 19:14:07 +1000 (Sun, 11 Mar 2007) $
--->
-
-<project name="build-cobertura" default="" basedir="../..">
-
- <import file="build-setup.xml"/>
-
- <target name="-coberturaInit">
- <taskdef resource="tasks.properties" classpathref="toolsPath"/>
- <path id="coberturaPath">
- <fileset dir="${toolsLibDirectory}" includes="cobertura-*.jar,asm*.jar"/>
- </path>
- <delete dir="${instrumentedClassesDirectory}" quiet="true" failonerror="false"/>
- </target>
-
- <macrodef name="coberturaInstrument">
- <attribute name="classesDirectory"/>
- <sequential>
- <mkdir dir="${instrumentedClassesDirectory}"/>
- <cobertura-instrument todir="${instrumentedClassesDirectory}">
- <fileset dir="@{classesDirectory}" includes="**/*.class"/>
- </cobertura-instrument>
- </sequential>
- </macrodef>
-
- <macrodef name="coberturaReport">
- <attribute name="reportDirectory"/>
- <sequential>
- <cobertura-report destdir="${reportsDirectory}/cobertura">
- <!-- TODO: fix hack below when modules added -->
- <fileset dir="${mainSourceDirectory}"/>
- <fileset dir="${jmxSourceDirectory}/main/java"/>
- <fileset dir="${jmxSourceDirectory}/main/groovy"/>
- </cobertura-report>
- </sequential>
- </macrodef>
-
-</project>
168 config/ant/build-maven.xml
View
@@ -1,168 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-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.
-
-This work is copyright by the author(s) and is part of a greater work collectively copyright by the
-Groovy community. See the NOTICE.txt file distributed with this work for additional information.
-
-Author : Paul King
-$Revision$ ($LastChangedBy$)
-$Date$
--->
-
-<project name="build-maven" default="" basedir="../.." xmlns:artifact="urn:maven-artifact-ant">
-
- <import file="build-setup.xml"/>
-
- <macrodef name="fetch.maven">
- <attribute name="scope"/>
- <attribute name="module"/>
- <sequential>
- <artifact:dependencies useScope="@{scope}" filesetId="fs.@{scope}.@{module}" pomRefId="@{module}.pom"/>
- </sequential>
- </macrodef>
-
- <macrodef name="maven.pom">
- <attribute name="file"/>
- <attribute name="id"/>
- <sequential>
- <artifact:pom file="@{file}" id="@{id}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="fetch.maven.all.scopes">
- <attribute name="module"/>
- <sequential>
- <fetch.maven scope="compile" module="@{module}"/>
- <fetch.maven scope="runtime" module="@{module}"/>
- <fetch.maven scope="test" module="@{module}"/>
- </sequential>
- </macrodef>
-
- <macrodef name="fetch.maven.all.modules">
- <sequential>
- <fetch.maven.all.scopes module="groovy"/>
- <fetch.maven scope="runtime" module="groovy-tools"/>
- <fetch.maven scope="runtime" module="groovy-examples"/>
- </sequential>
- </macrodef>
-
- <target name="-mavenInit" depends="-mavenTaskdef,-mavenPomDefinitions"/>
-
- <target name="-mavenTaskdef" unless="_skipFetch_">
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant">
- <classpath>
- <fileset dir="${bootstrapDirectory}" includes="maven-ant-tasks-*.jar"/>
- </classpath>
- </typedef>
- </target>
-
- <target name="-mavenPomDefinitions" unless="_skipFetch_">
- <maven.pom file="pom.xml" id="groovy.pom"/>
- <xslt in="pom.xml" out="${targetDirectory}/groovy-all.pom" style="config/maven/groovy-all.xsl"/>
- <maven.pom file="${targetDirectory}/groovy-all.pom" id="groovy-all.pom"/>
- <maven.pom file="config/maven/groovy-tools.pom" id="groovy-tools.pom"/>
- <maven.pom file="config/maven/groovy-examples.pom" id="groovy-examples.pom"/>
- </target>
-
- <target name="-fetchDependencies" depends="-mavenFetchAllModules,-copyLibraries,-definePathsWithoutCopyingLibraries"/>
-
- <target name="-mavenFetchAllModules" depends="-mavenInit" unless="_skipFetch_">
- <fetch.maven.all.modules/>
- </target>
-
- <target name="-copyLibraries" unless="_skipFetch_">
- <definePath pathId="compilePath" filesetId="fs.compile.groovy" libdir="${compileLibDirectory}"/>
- <definePath pathId="runtimePath" filesetId="fs.runtime.groovy" libdir="${runtimeLibDirectory}"/>
- <definePath pathId="testLibPath" filesetId="fs.test.groovy" libdir="${testLibDirectory}"/>
- <definePath pathId="toolsPath" filesetId="fs.runtime.groovy-tools" libdir="${toolsLibDirectory}"/>
- <definePath pathId="examplesPath" filesetId="fs.runtime.groovy-examples" libdir="${examplesLibDirectory}"/>
- </target>
-
- <target name="-definePathsWithoutCopyingLibraries" if="_skipFetch_">
- <path id="compilePath">
- <fileset dir="${compileLibDirectory}" includes="**/*.jar"/>
- </path>
- <path id="runtimePath">
- <fileset dir="${runtimeLibDirectory}" includes="**/*.jar"/>
- </path>
- <path id="testLibPath">
- <fileset dir="${testLibDirectory}" includes="**/*.jar"/>
- </path>
- <path id="toolsPath">
- <fileset dir="${toolsLibDirectory}" includes="**/*.jar"/>
- </path>
- <path id="examplesPath">
- <fileset dir="${examplesLibDirectory}" includes="**/*.jar"/>
- </path>
- </target>
-
- <target name="-mavenDeployInit" depends="-mavenInit">
- <artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2"/>
- </target>
-
- <macrodef name="definePath">
- <attribute name="filesetId"/>
- <attribute name="libdir"/>
- <attribute name="pathId"/>
- <sequential>
- <mkdir dir="@{libdir}"/>
- <copy todir="@{libdir}">
- <mapper type="flatten"/>
- <fileset refid="@{filesetId}"/>
- </copy>
- <path id="@{pathId}">
- <fileset dir="@{libdir}" includes="**/*.jar"/>
- </path>
- </sequential>
- </macrodef>
-
- <macrodef name="mavenDeploy">
- <attribute name="version"/>
- <attribute name="prefix"/>
- <sequential>
- <artifact:deploy file="${targetDistDirectory}/@{prefix}-@{version}.jar">
- <pom refid="@{prefix}.pom"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-sources.jar" classifier="sources"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-javadoc.jar" classifier="javadoc"/>
- <!-- <attach file="${targetDistDirectory}/@{prefix}-@{version}-indy.jar" classifier="indy"/> -->
- </artifact:deploy>
- </sequential>
- </macrodef>
-
- <macrodef name="mavenDeploySettings">
- <attribute name="version"/>
- <attribute name="prefix"/>
- <attribute name="settings"/>
- <sequential>
- <artifact:deploy file="${targetDistDirectory}/@{prefix}-@{version}.jar" settingsFile="@{settings}">
- <pom refid="@{prefix}.pom"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-sources.jar" classifier="sources"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-javadoc.jar" classifier="javadoc"/>
- <!-- <attach file="${targetDistDirectory}/@{prefix}-@{version}-indy.jar" classifier="indy"/> -->
- </artifact:deploy>
- </sequential>
- </macrodef>
-
- <macrodef name="mavenInstallRepo">
- <attribute name="version"/>
- <attribute name="prefix"/>
- <sequential>
- <artifact:install file="${targetDistDirectory}/@{prefix}-@{version}.jar">
- <pom refid="@{prefix}.pom"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-sources.jar" classifier="sources"/>
- <attach file="${targetDistDirectory}/@{prefix}-@{version}-javadoc.jar" classifier="javadoc"/>
- <!-- <attach file="${targetDistDirectory}/@{prefix}-@{version}-indy.jar" classifier="indy"/> -->
- </artifact:install>
- </sequential>
- </macrodef>
-
-</project>
94 config/ant/build-setup.xml
View
@@ -1,94 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-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.
-
-This work is copyright by the author(s) and is part of a greater work collectively copyright by the
-Groovy community. See the NOTICE.txt file distributed with this work for additional information.
-
-Author : Paul King
-$Revision: 5519 $ ($LastChangedBy: paulk $)
-$Date: 2007-03-11 19:14:07 +1000 (Sun, 11 Mar 2007) $
--->
-
-<project name="build-setup" default="" basedir="../..">
-
- <property name="bootstrapDirectory" location="bootstrap"/>
- <property name="sourceDirectory" value="src"/>
- <property name="wikiPdfDirectory" value="src"/>
- <property name="mainSourceDirectory" location="${sourceDirectory}/main"/>
- <property name="testSourceDirectory" value="${sourceDirectory}/test"/>
-
- <!-- TODO temp hack - remove once modules are in place -->
- <property name="antSourceDirectory" location="subprojects/groovy-ant/src"/>
- <property name="bsfSourceDirectory" location="subprojects/groovy-bsf/src"/>
- <property name="bsfSourceDirectory" location="subprojects/groovy-bsf/src"/>
- <property name="docgeneratorSourceDirectory" location="subprojects/groovy-docgenerator/src"/>
- <property name="groovydocSourceDirectory" location="subprojects/groovy-groovydoc/src"/>
- <property name="jmxSourceDirectory" location="subprojects/groovy-jmx/src"/>
- <property name="jsr223SourceDirectory" location="subprojects/groovy-jsr223/src"/>
- <property name="templateSourceDirectory" location="subprojects/groovy-templates/src"/>
- <property name="xmlSourceDirectory" location="subprojects/groovy-xml/src"/>
- <property name="groovyTestSourceDirectory" location="subprojects/groovy-test/src"/>
- <property name="mainSourcePath" value="${sourceDirectory}/main:${antSourceDirectory}/main/java:${antSourceDirectory}/main/groovy:${bsfSourceDirectory}/main/java:${groovydocSourceDirectory}/main/java:${jmxSourceDirectory}/main/java:${jmxSourceDirectory}/main/groovy:${jsr223SourceDirectory}/main/java:${templateSourceDirectory}/main/java:${xmlSourceDirectory}/main/java:${xmlSourceDirectory}/main/groovy:${groovyTestSourceDirectory}/main/java:${groovyTestSourceDirectory}/main/groovy"/>
- <property name="testSourcePath" value="${sourceDirectory}/test:${antSourceDirectory}/test/groovy:${bsfSourceDirectory}/test/java:${groovydocSourceDirectory}/test/groovy:${jmxSourceDirectory}/test/java:${jmxSourceDirectory}/test/groovy:${jsr223SourceDirectory}/test/java:${jsr223SourceDirectory}/test/groovy:${templateSourceDirectory}/test/java:${templateSourceDirectory}/test/groovy:${xmlSourceDirectory}/test/groovy:${groovyTestSourceDirectory}/test/groovy"/>
-
- <!--<property name="toolsSourceDirectory" location="${sourceDirectory}/tools"/>-->
- <property name="examplesSourceDirectory" location="${sourceDirectory}/examples"/>
-
- <property name="targetDirectory" value="target"/>
- <property name="installDirectory" value="${targetDirectory}/install"/>
- <property name="cruiseReportRootDirectory" value="${targetDirectory}/root"/>
- <property name="stagingDirectory" value="${targetDirectory}/staging"/>
- <property name="docsDirectory" value="${targetDirectory}/html"/>
- <property name="mainClassesDirectory" value="${targetDirectory}/classes"/>
- <property name="testClassesDirectory" value="${targetDirectory}/test-classes"/>
- <property name="toolsClassesDirectory" value="${targetDirectory}/tools-classes"/>
- <property name="mainStubsDirectory" value="${targetDirectory}/stubs"/>
- <property name="testStubsDirectory" value="${targetDirectory}/test-stubs"/>
-
- <property name="examplesClassesDirectory" value="${targetDirectory}/examples-classes"/>
- <property name="instrumentedClassesDirectory" value="${targetDirectory}/instrumented-classes"/>
- <property name="reportsDirectory" value="${targetDirectory}/reports"/>
- <property name="targetLibDirectory" value="${targetDirectory}/lib"/>
- <property name="targetDistDirectory" value="${targetDirectory}/dist"/>
-
- <property name="antlrDirectory" value="${mainSourceDirectory}/org/codehaus/groovy/antlr"/>
- <property name="groovyParserDirectory" value="${antlrDirectory}/parser"/>
- <property name="javaParserDirectory" value="${antlrDirectory}/java"/>
-
- <property name="compileLibDirectory" value="${targetLibDirectory}/compile"/>
- <property name="testLibDirectory" value="${targetLibDirectory}/test"/>
- <property name="runtimeLibDirectory" value="${targetLibDirectory}/runtime"/>
- <property name="toolsLibDirectory" value="${targetLibDirectory}/tools"/>
- <property name="examplesLibDirectory" value="${targetLibDirectory}/examples"/>
- <property name="extrasLibDirectory" value="${targetLibDirectory}/extras"/>
- <property name="junitRawDirectory" value="${targetDirectory}/test-reports"/>
- <property name="junitReportsDirectory" value="${reportsDirectory}/junit"/>
- <property name="relativePathToRealBasedir" value="."/>
- <property name="skipFetch" value="false"/>
-
- <macrodef name="antforked">
- <attribute name="target"/>
- <attribute name="maxmemory" default="256m"/>
- <attribute name="classpathref" default="runtimePath"/>
- <sequential>
- <java classname="org.apache.tools.ant.launch.Launcher" fork="true" maxmemory="@{maxmemory}" failonerror="true">
- <classpath refid="@{classpathref}"/>
- <jvmarg value="-Duser.home=${user.home}" />
- <arg value="@{target}"/>
- <arg value="-DskipFetch=${skipFetch}"/>
- <arg value="-DruntimeLibDirectory=${runtimeLibDirectory}"/>
- <arg value="-DtoolsLibDirectory=${toolsLibDirectory}" />
- </java>
- </sequential>
- </macrodef>
-
-</project>
51 cruise/build.xml
View
@@ -1,51 +0,0 @@
-<project name="groovy-cruisecontrol-starter" default="cruise">
-
- <property name="svn.tag" value="https://svn.codehaus.org/groovy/tags/cc"/>
- <property name="dir.checkout" value=".."/>
- <property name="svn.user" value="dierk"/>
-
- <target name="cruise" depends="update, copy-reporting-app, delegate, tagLastBuild"/>
-
- <!-- label is given by CruiseControl, provides a default value here for the case where the admin starts
- this script manually. -->
-
- <property name="label" value="manualBuild"/>
-
- <target name="update">
- <echo message="*** getting the detected modifications ***"/>
- <exec executable="svn" failonerror="true">
- <arg line="--username ${svn.user} --non-interactive"/>
- <arg line="update ${dir.checkout}"/>
- </exec>
- </target>
-
- <target name="delegate" description="Groovy-specific build parts">
- <ant dir=".." antfile="build.xml" target="clean"/>
- <ant dir=".." antfile="build.xml" target="cruise">
- <property name="buildnumber" value="${label}"/>
- </ant>
- <echo message="*** groovy (${label}) Ant build successfully ended ***"/>
- </target>
-
- <target name="tagLastBuild">
- <exec executable="svn" failonerror="true">
- <arg line="--username ${svn.user} --non-interactive"/>
- <arg line="copy -m '' ${dir.checkout} ${svn.tag}/${label}"/>
- </exec>
- <exec executable="svn" failonerror="true">
- <arg line="--username ${svn.user} --non-interactive"/>
- <arg line="rm -m '' ${svn.tag}/LAST_BUILD"/>
- </exec>
- <exec executable="svn" failonerror="true">
- <arg line="--username ${svn.user} --non-interactive"/>
- <arg line="copy -m '' ${svn.tag}/${label} ${svn.tag}/LAST_BUILD"/>
- </exec>
- </target>
-
- <target name="copy-reporting-app">
- <fail unless="reporting-app-dir" message="The property reporting-app-dir must be set from outside!" />
- <copy todir="${reporting-app-dir}" > <!-- overwrite="true" can be needed occasionally -->
- <fileset dir="reporting-app" /> <!-- only changes to web.xml need context reload -->
- </copy>
- </target>
-</project>
100 cruise/buildstatus.xsl
View
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="us-ascii" ?>
-<!--
- Excerpted from the book, "Pragmatic Project Automation"
- ISBN 0-9745140-3-9
- Copyright 2004 The Pragmatic Programmers, LLC. All Rights Reserved.
- Visit www.PragmaticProgrammer.com
- -->
-
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="xml" indent="yes"/>
-
- <xsl:template match="/">
-
- <rss version="2.0">
- <channel>
-
- <title>groovy Build Status</title>
-
- <link>http://build.canooo.com/groovy/</link>
-
- <description>CruiseControl build status feed for the groovy project.</description>
-
- <item>
-
- <xsl:variable name="project.name"
- select="cruisecontrol/info/property[@name='projectname']/@value"/>
- <xsl:variable name="build.date"
- select="cruisecontrol/info/property[@name='builddate']/@value"/>
- <xsl:variable name="build.time"
- select="cruisecontrol/build/@time"/>
- <xsl:variable name="modification.list"
- select="cruisecontrol/modifications/modification"/>
-
- <xsl:variable name="testsuite.list" select="//testsuites/testsuite"/>
- <xsl:variable name="testcase.list" select="$testsuite.list/testcase"/>
- <title>
- <xsl:choose>
- <xsl:when test="cruisecontrol/build/@error">BUILD FAILED</xsl:when>
- <xsl:otherwise>Build Succeeded</xsl:otherwise>
- </xsl:choose>
- </title>
- <link>http://build.canoo.com/groovy/</link>
- <description>
- <xsl:choose>
- <xsl:when test="cruisecontrol/build/@error">
- <xsl:text>&lt;b&gt;Ant Error Message:&lt;/b&gt;&lt;br/&gt;</xsl:text>
- <xsl:value-of select="cruisecontrol/build/@error"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>&lt;b&gt;Build:&lt;/b&gt;</xsl:text>
- <xsl:value-of select="cruisecontrol/info/property[@name='label']/@value"/>
- </xsl:otherwise>
- </xsl:choose>
-
- &lt;br/&gt;
- &lt;br/&gt;
-
- &lt;b&gt;Date of build:&lt;/b&gt;
- <xsl:value-of select="$build.date"/>&lt;br/&gt;
-
- &lt;b&gt;Time to build:&lt;/b&gt;
- <xsl:value-of select="$build.time"/>&lt;br/&gt;
-
- <xsl:apply-templates select="$modification.list">
- <xsl:sort select="date" order="descending" data-type="text"/>
- </xsl:apply-templates>
-
- &lt;br/&gt;
-
- &lt;b&gt;Unit Tests:&lt;/b&gt;
- <xsl:value-of select="count($testcase.list)"/>
-
- </description>
- </item>
- </channel>
- </rss>
- </xsl:template>
-
- <xsl:template match="modification">
- <xsl:if test="position() = 1">
-
- &lt;br/&gt;
-
- &lt;b&gt;Last changed:&lt;/b&gt;
- <xsl:value-of select="date"/>&lt;br/&gt;
-
- &lt;b&gt;Last changed by:&lt;/b&gt;
- <xsl:value-of select="user"/>&lt;br/&gt;
-
- &lt;b&gt;Last log entry:&lt;/b&gt;
- <xsl:value-of select="comment"/>&lt;br/&gt;
-
- </xsl:if>
- </xsl:template>
-
-</xsl:stylesheet>
380 cruise/cc.xsl
View
@@ -1,380 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY space "&#32;">
- <!ENTITY nbsp "&#160;">
- <!ENTITY bullet "&#8226;">]>
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:xslt="http://xml.apache.org/xslt"
- >
- <xsl:output method="html"/>
-
- <!-- collects all task nodes with parent target into the variable $tasklist -->
- <xsl:variable name="tasklist" select="//task"/>
-
- <!-- collects all task nodes from $tasklist with attribute name="Javac" etc. -->
- <xsl:variable name="javac.tasklist" select="$tasklist[@name='javac']"/>
- <xsl:variable name="ejbjar.tasklist" select="$tasklist[@name='ejbjar']"/>
- <xsl:variable name="jar.tasklist" select="$tasklist[@name='jar']"/>
- <xsl:variable name="war.tasklist" select="$tasklist[@name='war']"/>
-
- <!-- count elements in sublists -->
- <xsl:variable name="dist.count" select="count($jar.tasklist) + count($war.tasklist)"/>
-
- <!-- collect all testsuite nodes in build, regardless of depth -->
- <xsl:variable name="testsuite.list" select="//testsuites/testsuite"/>
- <!-- count error nodes directly under testsuite -->
- <xsl:variable name="testsuite.error.count" select="count($testsuite.list/error)"/>
-
- <xsl:variable name="testcase.list" select="$testsuite.list/testcase"/>
- <xsl:variable name="testcase.error.list" select="$testcase.list/error"/>
- <xsl:variable name="testcase.failure.list" select="$testcase.list/failure"/>
- <xsl:variable name="totalErrorsAndFailures" select="count($testcase.error.list) + count($testcase.failure.list)"/>
-
- <!-- 1: /build/modifications, 2: /cruisecontrol/modifications -->
- <xsl:variable name="modification.list" select="//modifications/modification"/>
- <!-- collects all the modification sets -->
- <xsl:key name="modificationSet" match="//modifications/modification" use="concat(user,':',comment)"/>
-
- <!-- long template for the whole page, this ensures sequence -->
- <xsl:template match="/">
- <!-- Header Part -->
-
- <xsl:choose>
- <xsl:when test="//build/@error"> <!-- build tag contains attribute error -->
- <h1>BUILD FAILED</h1>
- </xsl:when>
- <xsl:otherwise>
- <h1>
- <xsl:text>BUILD COMPLETE -&space;</xsl:text>
- <!-- support CruiseControl 1.0 and 2.0 -->
- <xsl:value-of select="build/label | //info/property[@name='label']/@value"/>
- </h1>
- </xsl:otherwise>
- </xsl:choose>
-
- <table>
- <tr>
- <th>Date of build</th>
- <td>
- <!-- support CruiseControl 1.0 and 2.0 -->
- <xsl:value-of select="build/today | //info/property[@name='builddate']/@value"/>
- </td>
- </tr>
- <tr>
- <th>Time to build</th>
- <td>
- <xsl:value-of select="//build/@time"/>
- </td>
- </tr>
- <tr>
- <th>Last changed</th>
- <td>
- <xsl:value-of select="//modifications/modification/date"/>
- </td>
- </tr>
- <tr>
- <th>Last log entry</th>
- <td>
- <xsl:value-of select="//modifications/modification/comment"/>
- </td>
- </tr>
- </table>
-
- <xsl:if test="//build/@error">
- <h2>Ant Error Message</h2>
- <pre>
- <xsl:value-of select="//build/@error"/>
- </pre>
- <pre>
- <xsl:value-of select="//stacktrace"/>
- </pre>
- </xsl:if>
-
- <!-- Compilation Messages -->
-
- <xsl:variable name="javac.warn.messages" select="$javac.tasklist/message[@priority='warn']"/>
- <xsl:variable name="ejbjar.warn.messages" select="$ejbjar.tasklist/message[@priority='warn']"/>
- <xsl:variable name="total.errorMessage.count"
- select="count($javac.warn.messages) + count($ejbjar.warn.messages)"/>
-
- <!-- NOTE: total.errorMessage.count is actually the number of lines of error
- messages. This accurately represents the number of errors ONLY if the Ant property
- build.compiler.emacs is set to "true" -->
- <xsl:if test="$total.errorMessage.count > 0">
- <h2>
- <xsl:text>Error-/Warning- Lines:&space;</xsl:text>
- <xsl:value-of select="$total.errorMessage.count"/>
- </h2>
-
- <pre>
- <xsl:apply-templates select="$javac.warn.messages"/>
- </pre>
- </xsl:if>
-
- <!-- Unit Tests -->
- <xsl:variable name="unit.passed" select="count($testcase.list)-$totalErrorsAndFailures"/>
-
- <h2>Unit Tests</h2>
- <p>
- <xsl:text>Test cases:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($testcase.list)"/>
- </b>
- <xsl:text>, passed:&space;</xsl:text>
- <b>
- <xsl:value-of select="$unit.passed"/>
- </b>
- <xsl:text>, failures:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($testcase.failure.list)"/>
- </b>
- <xsl:text>, errors:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($testcase.error.list)"/>
- </b>
- <xsl:text>.</xsl:text>
- </p>
-
- <xsl:call-template name="colorBar">
- <xsl:with-param name="success.count" select="$unit.passed"/>
- <xsl:with-param name="failed.count" select="$totalErrorsAndFailures"/>
- <xsl:with-param name="total.count" select="count($testcase.list)"/>
- <xsl:with-param name="tableID">utests</xsl:with-param>
- </xsl:call-template>
-
- <xsl:if test="count($testcase.error.list) > 0">
- <h3>Errors</h3>
- <ul>
- <xsl:apply-templates select="$testcase.error.list"/>
- </ul>
- </xsl:if>
-
- <xsl:if test="count($testcase.failure.list) > 0">
- <h3>Failures</h3>
- <ul>
- <xsl:apply-templates select="$testcase.failure.list"/>
- </ul>
- </xsl:if>
-
- <xsl:if test="$totalErrorsAndFailures > 0">
- <h3>
- <xsl:text>Unit Test Error Details:&space;(</xsl:text>
- <xsl:value-of select="$totalErrorsAndFailures"/>
- <xsl:text>)</xsl:text>
- </h3>
- <xsl:apply-templates select="//testsuite/testcase[.//error]"/>
- <xsl:apply-templates select="//testsuite/testcase[.//failure]"/>
- </xsl:if>
-
- <!-- Functional Tests -->
-
- <!-- functional testing vars -->
- <xsl:variable name="cases" select="//summary/testresult"/>
- <xsl:variable name="steps" select="//summary/testresult/results/step"/>
- <xsl:variable name="passed" select="$cases[@successful='yes']"/>
- <xsl:variable name="failed" select="$cases[@successful='no']"/>
-
- <h2>Functional Tests</h2>
- <p>
- <xsl:text>Szenarios:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($cases)"/>
- </b>
- <xsl:text>, passed:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($passed)"/>
- </b>
- <xsl:text>, failed:&space;</xsl:text>
- <b>
- <xsl:value-of select="count($failed)"/>
- </b>
- <xsl:text>, including&space;</xsl:text>
- <b>
- <xsl:value-of select="count($steps)"/>
- </b>
- <xsl:text>&space;single steps.</xsl:text>
- </p>
-
- <xsl:call-template name="colorBar">
- <xsl:with-param name="success.count" select="count($passed)"/>
- <xsl:with-param name="failed.count" select="count($failed)"/>
- <xsl:with-param name="total.count" select="count($cases)"/>
- <xsl:with-param name="tableID">ftests</xsl:with-param>
- </xsl:call-template>
-
- <h2>Modifications</h2>
- <p>
- <xsl:value-of select="count($modification.list)"/>
- <xsl:text>&space;modifications since last build.</xsl:text>
- </p>
-
- <xsl:for-each select="$modification.list[count(.|key('modificationSet',concat(user,':',comment))[1])=1]">
- <h3>
- <xsl:value-of select="user"/>
- <xsl:text>:&space;</xsl:text>
- <xsl:value-of select="comment"/>
- <xsl:text>&space;(</xsl:text>
- <xsl:value-of select="date"/>
- <xsl:text>)</xsl:text>
- </h3>
- <ul>
- <xsl:apply-templates select="key('modificationSet',concat(user,':',comment))"/>
- </ul>
- </xsl:for-each>
-
-
- <xsl:if test="$dist.count > 0">
- <h2>Deployments</h2>
- <p>
- <xsl:value-of select="$dist.count"/>
- <xsl:text>&space;files deployed by this build.</xsl:text>
- </p>
-
- <ul>
- <xsl:apply-templates select="$jar.tasklist | $war.tasklist"/>
- </ul>
- </xsl:if>
-
- </xsl:template>
-
- <xsl:template name="colorBar">
- <xsl:param name="success.count"/>
- <xsl:param name="failed.count"/>
- <xsl:param name="total.count"/>
- <xsl:param name="tableID"/>
-
- <table bgcolor="white" cellspacing="0" cellpadding="0">
- <xsl:attribute name="id">
- <xsl:value-of select="$tableID"/>
- </xsl:attribute>
- <tr>
- <xsl:if test="$success.count > 0">
- <td bgcolor="green">
- <xsl:attribute name="width">
- <xsl:value-of select="concat($success.count * 100 div $total.count, '%')"/>
- </xsl:attribute>
- &nbsp;
- </td>
- </xsl:if>
-
- <xsl:if test="$failed.count > 0">
- <td bgcolor="#FFFFA0">
- <xsl:attribute name="width">
- <xsl:value-of select="concat($failed.count * 100 div $total.count, '%')"/>
- </xsl:attribute>
- &nbsp;
- </td>
- </xsl:if>
-
- <xsl:if test="($total.count = 0) or ($total.count > ($success.count + $failed.count))">
- <td>&nbsp;</td>
- </xsl:if>
- </tr>
- </table>
- </xsl:template>
-
-
- <!-- UnitTest Errors/Failures -->
- <xsl:template match="error|failure">
- <li>
- <xsl:call-template name="colorOddEvenRow"/>
- <xsl:value-of select="../@name"/>
- </li>
- </xsl:template>
-
- <!-- UnitTest Errors And Failures Detail Template -->
- <xsl:template match="//testsuite/testcase">
- <h4>
- <xsl:text>Test:&space;</xsl:text>
- <xsl:value-of select="@name"/>
- </h4>
-
- <p>
- <xsl:text>Type:</xsl:text>
- <xsl:value-of select="node()/@type"/>
- </p>
- <p>
- <xsl:text>Message:</xsl:text>
- <xsl:value-of select="node()/@message"/>
- </p>
-
- <PRE>
- <xsl:value-of select="node()"/>
- </PRE>
- </xsl:template>
-
- <!-- Compilation Error Details -->
- <xsl:template match="message[@priority='warn']">
- <xsl:value-of select="text()"/>
- <br/>
- </xsl:template>
- <!-- Test Execution Stacktrace -->
- <xsl:template match="stacktrace">
- <pre>
- <xsl:value-of select="text()"/>
- </pre>
- </xsl:template>
-
- <!-- Modifications template -->
- <xsl:template match="modification[file/filename]">
- <!-- CC 2.0 -->
- <li>
- <xsl:call-template name="colorOddEvenRow"/>
- <xsl:call-template name="modificationType">
- <xsl:with-param name="type" select="file/@action"/>
- </xsl:call-template>
-
- <xsl:value-of select="file/project"/>
- <xsl:if test="string-length(normalize-space(file/project))">
- <xsl:text>/</xsl:text>
- </xsl:if>
- <xsl:value-of select="file/filename"/>
- </li>
- </xsl:template>
-
- <xsl:template match="modification">
- <!-- CC 1.0 -->
- <li>
- <xsl:call-template name="colorOddEvenRow"/>
- <xsl:call-template name="modificationType">
- <xsl:with-param name="type" select="@type"/>
- </xsl:call-template>
-
- <xsl:value-of select="filename"/>
- </li>
- </xsl:template>
-
- <xsl:template name="modificationType">
- <xsl:param name="type"/>
-
- <span class="modifificationType">
- <xsl:choose>
- <xsl:when test="$type='modified'">&gt;</xsl:when>
- <xsl:when test="$type='added'">+</xsl:when>
- <xsl:when test="$type='deleted'">-</xsl:when>
- <xsl:otherwise><xsl:value-of select="$type"/></xsl:otherwise>
- </xsl:choose>
- </span>
-
- &nbsp;
- </xsl:template>
-
- <!-- jar and war template -->
- <xsl:template match="task[translate(string(@name),'jJwW','')='ar']">
- <li>
- <xsl:call-template name="colorOddEvenRow"/>
- <xsl:value-of select="message"/>
- </li>
- </xsl:template>
-
- <xsl:template name="colorOddEvenRow">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 0">evenrow</xsl:when>
- <xsl:otherwise>oddrow</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:template>
-</xsl:stylesheet>