Permalink
Browse files

Remove the Maven 1 build files since we have now officially moved to …

…Ant for the Groovy build.

git-svn-id: http://svn.codehaus.org/groovy/trunk/groovy/groovy-core@6400 a5544e8c-8a19-0410-ba12-f9af4593a198
  • Loading branch information...
1 parent 2187bee commit b02d5bc93c8c2630e8a55ca669ae177a81ec3fe3 Russel Winder committed May 22, 2007
Showing with 0 additions and 1,591 deletions.
  1. +0 −314 maven.xml
  2. +0 −94 project.properties
  3. +0 −797 project.xml
  4. +0 −386 xdocs/faq.fml
View
@@ -1,314 +0,0 @@
-<project default="default" xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:maven="jelly:maven">
-
- <goal name="default" prereqs="clean, groovy:make-install"/>
-
- <preGoal name="java:compile">
- <attainGoal name="generate"/>
- </preGoal>
-
- <postGoal name="dist:prepare-src-filesystem">
- <!-- lets zap the build.xml -->
- <delete file="${maven.dist.src.assembly.dir}/build.xml"/>
-
- </postGoal>
-
- <goal name="generate" description="Regenerates the groovy grammar from antlr sources">
- <j:set var="maven.antlr.grammars" value="groovy.g"/>
- <j:set var="maven.antlr.src.dir" value="${basedir}/src/main/org/codehaus/groovy/antlr"/>
- <j:set var="maven.antlr.target.dir" value="${basedir}/src/main"/>
-
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/parser/GroovyLexer.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/parser/GroovyTokenTypes.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/parser/GroovyTokenTypes.txt"/>
-
-<!-- <attainGoal name="antlr:generate"/> -->
-
- <mkdir dir="${maven.antlr.target.dir}/org/codehaus/groovy/antlr/parser"/>
-
- <antlr target="${maven.antlr.src.dir}/${maven.antlr.grammars}"
- outputdirectory="${maven.antlr.target.dir}/org/codehaus/groovy/antlr/parser">
- <classpath refid="maven.dependency.classpath"/>
- </antlr>
-
-
-
- <j:set var="maven.antlr.grammars" value="java.g"/>
- <j:set var="maven.antlr.src.dir" value="${basedir}/src/main/org/codehaus/groovy/antlr/java"/>
- <j:set var="maven.antlr.target.dir" value="${basedir}/src/main"/>
-
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/java/JavaRecognizer.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/java/JavaLexer.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/java/JavaTokenTypes.java"/>
- <delete file="${basedir}/src/main/org/codehaus/groovy/antlr/java/JavaTokenTypes.txt"/>
-
- <mkdir dir="${maven.antlr.target.dir}/org/codehaus/groovy/antlr/java"/>
-
- <antlr target="${maven.antlr.src.dir}/${maven.antlr.grammars}"
- outputdirectory="${maven.antlr.target.dir}/org/codehaus/groovy/antlr/java">
- <classpath refid="maven.dependency.classpath"/>
- </antlr>
- </goal>
-
- <goal name="rebuild" prereqs="clean" description="Rebuilds the groovy install without running the unit tests">
- <j:set var="maven.test.skip" value="true"/>
- <echo>Rebuilding the binary distro of Groovy without running the unit test cases</echo>
- <attainGoal name="groovy:make-install"/>
- </goal>
-
- <goal name="groovy:release" prereqs="clean, jar:install, release, site, dist:deploy-bin, dist:deploy-src, jar:deploy"
- description="Performs a release of the source, binary and jar distros">
- </goal>
-
- <preGoal name="groovy:release">
- <!-- we've run the tests by now once already, lets avoid it again -->
- <j:set var="maven.test.skip" value="true"/>
- </preGoal>
-
- <postGoal name="dist:prepare-bin-filesystem">
- <attainGoal name="groovy:make-full-install"/>
- <echo>Copying groovy install to ${maven.dist.bin.assembly.dir}</echo>
- <copy toDir="${maven.dist.bin.assembly.dir}">
- <fileset dir="${groovy.install.staging.dest}">
- <include name="**/*"/>
- <exclude name="**/*.groovy"/>
- </fileset>
- </copy>
- <chmod perm="ugo+x">
- <fileset dir="${maven.dist.bin.assembly.dir}/bin">
- <include name="*"/>
- <include name="*.*"/>
- </fileset>
- </chmod>
- </postGoal>
-
- <goal
- name="dist:build-bin"
- prereqs="dist:build-setup,dist:prepare-bin-filesystem"
- description="Build the binary distribution.">
-
- <!-- Create a tar.gz file -->
- <tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}.tar">
- <tarfileset dir="${maven.dist.bin.archive.dir}" >
- <exclude name="groovy-${pom.currentVersion}/bin/**" />
- </tarfileset>
- <tarfileset dir="${maven.dist.bin.archive.dir}" mode ="0755">
- <include name="groovy-${pom.currentVersion}/bin/**" />
- </tarfileset>
- </tar>
-
-
- <gzip
- zipfile="${maven.dist.dir}/${maven.final.name}.tar.gz"
- src="${maven.dist.dir}/${maven.final.name}.tar"
- />
-
- <delete file="${maven.dist.dir}/${maven.final.name}.tar"/>
-
- <!-- Create a zip file -->
- <zip zipfile="${maven.dist.dir}/${maven.final.name}.zip">
- <zipfileset dir="${maven.dist.bin.archive.dir}"/>
- </zip>
- </goal>
-
-
- <preGoal name="xdoc:jelly-transform">
- <attainGoal name="groovy:xdoc-stuff"/>
- </preGoal>
-
- <goal name="groovy:xdoc-stuff" prereqs="java:compile, setclasspath, groovy:make-new-javadoc">
- <mkdir dir="${maven.html2xdoc.dir}"/>
-
- <!-- lets generate the HTML docs -->
- <attainGoal name="groovy:make-new-javadoc"/>
-
- <attainGoal name="html2xdoc"/>
- <attainGoal name="faq"/>
- </goal>
-
- <goal name="groovy:make-new-javadoc" prereqs="java:compile, setclasspath"
- description="Generates the HTML of the new JavaDoc added to the JDK">
- <mkdir dir="${maven.html2xdoc.dir}"/>
- <java classname="org.codehaus.groovy.tools.DocGenerator" fork="yes">
- <classpath refid="test.classpath"/>
- </java>
- </goal>
-
- <postGoal name="test:compile">
- <attainGoal name="setclasspath"/>
- <j:if test="${unitTestSourcesPresent == 'true' and context.getVariable('maven.test.skip') != 'true'}">
- <attainGoal name="groovy:compile-tests"/>
- </j:if>
- ${context.setVariable('java.awt.headless', true)}
- </postGoal>
-
- <goal name="setclasspath">
- <path id="test.classpath">
- <pathelement path="${maven.build.dest}"/>
- <pathelement path="target/classes"/>
- <pathelement path="target/test-classes"/>
- <path refid="maven.dependency.classpath"/>
- </path>
-
- <taskdef name="rootLoaderRef" classname="org.codehaus.groovy.ant.RootLoaderRef" classpathref="test.classpath"/>
- <rootLoaderRef ref="tmp.groovy.groovyc">
- <classpath refid="test.classpath"/>
- </rootLoaderRef>
-
- <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="test.classpath" loaderRef="tmp.groovy.groovyc"/>
- </goal>
-
-
- <goal name="asm:verify" prereqs="test:compile"
- description="verifies the bytecode of every class">
- <taskdef name="verifyclasses" classname="org.codehaus.groovy.ant.VerifyClass" classpathref="test.classpath"/>
-
- <verifyclasses dir="${basedir}/target/classes"/>
- <verifyclasses dir="${basedir}/target/test-classes"/>
- </goal>
-
- <goal name="groovy:compile" prereqs="java:compile, setclasspath"
- description="Compiles the Groovy code">
-
- <copy todir="${basedir}/target/classes">
- <fileset dir="${basedir}/src/main">
- <include name="**/*.groovy"/>
- <include name="org/codehaus/groovy/tools/groovydoc/gstring-templates/**/*.*"/> <!-- groovydoc templates -->
- </fileset>
- </copy>
-
- <groovyc destdir="${basedir}/target/classes" srcdir="${basedir}/target/classes" listfiles="true">
- <classpath refid="test.classpath"/>
- </groovyc>
-
- </goal>
-
- <goal name="groovy:tck-test-generation" prereqs="setclasspath"
- description="Generates the Groovy TCK tests">
- <ant dir="src/tck" inheritRefs="true">
- <reference refid="test.classpath" torefid="passed.classpath"/>
- </ant>
- <mkdir dir="${basedir}/target/test-classes"/>
- <copy todir="${basedir}/target/test-classes">
- <!-- TCK classes and sources -->
- <fileset dir="${basedir}/src/tck/build/test/classes">
- <include name="**/*.class"/>
- </fileset>
- <fileset dir="${basedir}/src/tck/gentest">
- <include name="**/*.java"/>
- </fileset>
-
- <!-- helper classes for TCK tests -->
- <fileset dir="${basedir}/src/tck/build/classes">
- <include name="**/*Helper.class"/>
- </fileset>
- </copy>
- </goal>
-
- <goal name="groovy:compile-tests" prereqs="groovy:compile, setclasspath, groovy:tck-test-generation"
- description="Compiles the Groovy unit test cases">
- <!-- lets copy and touch all the groovy files to ensure they all recompile -->
- <mkdir dir="${basedir}/target/test-classes"/>
- <copy todir="${basedir}/target/test-classes">
- <fileset dir="${basedir}/src/test">
- <include name="**/*.groovy"/>
-
- <exclude name="**/notworking/*.groovy"/>
- <exclude name="**/parser/*.groovy"/>
- <exclude name="**/ant/*/GroovyTest*.groovy"/> <!-- should not get compiled here as test has to define by itself his classpath -->
- </fileset>
- </copy>
- <!--
- <touch>
- <fileset dir="${basedir}/target/test-classes" includes="**/*.groovy"/>
- </touch>
- -->
-
- <groovyc destdir="${basedir}/target/test-classes" srcdir="${basedir}/target/test-classes" listfiles="true">
- <classpath refid="test.classpath"/>
- </groovyc>
-
- <!-- Re compile java, so that UberTests are now built -->
- <javac srcdir="${basedir}/src/test"
- destdir="${basedir}/target/test-classes"
- classpathref="test.classpath">
- <include name="**/Uber*.java" />
- </javac>
-
- </goal>
-
- <preGoal name="jar:jar">
- <attainGoal name="groovy:compile"/>
- </preGoal>
-
-
- <goal name="groovy:make-install" prereqs="jar:jar">
- <echo>${groovy.install.staging.dest}</echo>
- <mkdir dir="${groovy.install.staging.dest}"/>
- <mkdir dir="${groovy.install.staging.dest}/lib"/>
- <mkdir dir="${groovy.install.staging.dest}/bin"/>
- <mkdir dir="${groovy.install.staging.dest}/conf"/>
- <j:forEach var="lib" items="${pom.artifacts}">
- <copy file="${lib.path}" toDir="${groovy.install.staging.dest}/lib"/>
- </j:forEach>
- <copy file="${maven.build.dir}/${maven.final.name}.jar" toDir="${groovy.install.staging.dest}/lib"/>
- <copy toDir="${groovy.install.staging.dest}/conf">
- <fileset dir="${maven.src.dir}/conf">
- <include name="*"/>
- </fileset>
- </copy>
- <copy toDir="${groovy.install.staging.dest}/bin">
- <fileset dir="${maven.src.dir}/bin">
- <include name="*"/>
- </fileset>
- <filterset>
- <filter token="GROOVYJAR" value="groovy-${pom.currentVersion}.jar"/>
- </filterset>
- </copy>
-
- <!-- fix crlf-->
- <fixcrlf srcdir="${groovy.install.staging.dest}/bin"
- eol="lf" excludes="*.bat"
- />
- <fixcrlf srcdir="${groovy.install.staging.dest}/bin"
- eol="crlf" includes="*.bat"
- />
-
- <chmod perm="ugo+x">
- <fileset dir="${groovy.install.staging.dest}/bin">
- <include name="*"/>
- <include name="*.*"/>
- </fileset>
- </chmod>
- <attainGoal name="groovy:embeddable-jar"/>
- </goal>
-
- <goal name="groovy:embeddable-jar">
- <mkdir dir="${groovy.embeddable.working.dir}"/>
- <unzip dest="${groovy.embeddable.working.dir}">
- <fileset dir="${groovy.install.staging.dest}/lib">
- <include name="antlr*.jar"/>
- <include name="asm*.jar"/>
- <exclude name="asm-attr*.jar"/>
- <exclude name="asm-util*.jar"/>
- <exclude name="asm-analysis*.jar"/>
- <include name="groovy*.jar"/>
- </fileset>
- </unzip>
- <copy toDir="${groovy.embeddable.working.dir}/META-INF">
- <fileset dir="${basedir}">
- <include name="ASM-LICENSE.txt"/>
- </fileset>
- </copy>
- <mkdir dir="${groovy.install.staging.dest}/embeddable"/>
- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="${groovy.install.staging.dest}/lib/jarjar-0.6.jar"/>
- <jarjar jarfile="${groovy.install.staging.dest}/embeddable/groovy-all-${pom.currentVersion}.jar"
- manifest="${groovy.embeddable.working.dir}/META-INF/MANIFEST.MF">
- <fileset dir="${groovy.embeddable.working.dir}"/>
- <rule pattern="antlr.**" result="groovyjarjarantlr.@1"/>
- <rule pattern="org.objectweb.**" result="groovyjarjarasm.@1"/>
- </jarjar>
-<!-- <delete dir="${groovy.embeddable.working.dir}"/>-->
- </goal>
-
-</project>
Oops, something went wrong.

0 comments on commit b02d5bc

Please sign in to comment.