[gant-scm] [10428] gant/trunk/build.xml: Remove the now redundant Ant build file.

View: New views
1 Messages — Rating Filter:   Alert me  

[gant-scm] [10428] gant/trunk/build.xml: Remove the now redundant Ant build file.

by russel-9 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
[10428] gant/trunk/build.xml: Remove the now redundant Ant build file.
Revision
10428
Author
russel
Date
2009-10-18 14:12:23 -0500 (Sun, 18 Oct 2009)

Log Message

Remove the now redundant Ant build file.

Removed Paths

Diff

Deleted: gant/trunk/build.xml (10427 => 10428)

--- gant/trunk/build.xml	2009-10-16 14:07:39 UTC (rev 10427)
+++ gant/trunk/build.xml	2009-10-18 19:12:23 UTC (rev 10428)
@@ -1,322 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-Gant - A Groovy way of scripting Ant tasks.
-
-Copyright © 2006-9 Russel Winder
-
-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.
-
-Author : Russel Winder <russel.winder@...>
--->
-
-<project name="Gant" default="compile" basedir="." xmlns:artifact="urn:maven-artifact-ant">
-
-  <description>
-    This Ant script provides the bootstrap capability to install Gant for the first time for those people
-    installing from source who do not have a previous installation of Gant.  If the variable GROOVY_HOME is
-    set, a lightweight Gant installation will be created that uses the installed Groovy.  If the variable
-    GROOVY_HOME is not set, a standalone installation of Gant will be created.
-  </description>
-
-  <!--
-      This Ant script also provides targets for continuous integration servers.  Currently active are the
-      Codehaus Bamboo build, the Canoo CruiseControl build and the Concertant Buildbot build.  The Bamboo
-      and CruiseControl builds assume nothing except that that comes with Gant.  In particular, all the
-      Groovy and JUnit jars are brought in from the Maven repository using the Maven Ant task, the jar for
-      which is part of the Gant distribution.
-
-      When using a Groovy installation, in order to compile, the Groovy, ASM, Antlr and Commons CLI jars are
-      needed.  The ASM and Antlr jars are only needed for Groovy, the Commons CLI is needed for Groovy but
-      is also used by Gant directly.  When downloading Groovy use groovy-all to avoid needing ASM and Antlr.
-      Need Commons CLI of course.  NB The Ant jar is already in the classpath since Ant is running!
-      
-      JUnit is needed for compiling and running the tests.
-      
-      When using the Maven Ant task to pull down all the needed jars, we could just read the POM and use
-      those dependencies, but it seems better to explicitly specify them.  Note that we don't need to
-      specify transitive dependencies here, the Maven Ant Task takes care of that.
-  -->
-
-  <property file="local.build.properties"/>
-  <property file="gradle.properties"/>
-
-  <property name="groovyVersion" value="${groovy16Version}"/>
-
-  <property environment="environment"/>
-
-  <property name="sourceDirectory" value="src/main/groovy"/>
-  <property name="testsDirectory" value="src/test/groovy"/>
-  <property name="jarfilesDirectory" value="jarfiles"/>
-  <property name="scriptsDirectory" value="scripts"/>
-
-  <property name="buildDirectory" value="target_gant"/>
-  <property name="buildClassesDirectory" value="${buildDirectory}/classes"/>
-  <property name="buildTestClassesDirectory" value="${buildDirectory}/test-classes"/>
-  <property name="buildTestReportsDirectory" value="${buildDirectory}/test-reports"/>
-
-  <property name="buildMetadataDirectory" value="${buildClassesDirectory}/META-INF"/>
-
-  <property name="mavenAntTaskJarName" value="maven-ant-tasks-${mavenVersion}.jar"/>
-  <property name="gantJarName" value="gant-${gantVersion}.jar"/>
-
-  <property name="gantJarPath" value="${buildDirectory}/${gantJarName}"/>
-
-  <condition property="installDirectoryIsSet">
-    <isset property="installDirectory"/>
-  </condition>
-
-  <condition property="installStandalone">
-    <and>
-      <isset property="installDirectoryIsSet"/>
-      <not>
-        <isset property="environment.GROOVY_HOME"/>
-      </not>
-    </and>
-  </condition>
-
-  <condition property="skipTestsIsSet">
-    <istrue value="${skipTests}"/>
-  </condition>
-
-  <target name="-checkGroovyHome">
-    <!--
-        This test is contained in a target so that the test can be completely avoided for the continuous
-        integration runs: only check the test for command line invocations, the property is never set for
-        continuous integration runs.
-    -->
-    <condition property="groovyHomeIsSet">
-      <isset property="environment.GROOVY_HOME"/>
-    </condition>
-  </target>
-
-  <target name="-initializeMavenAntTask">
-     <path id="mavenAntTaskJarPathId">
-      <fileset dir="${jarfilesDirectory}" includes="${mavenAntTaskJarName}"/>
-    </path>
-    <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="mavenAntTaskJarPathId"/>
-  </target>
-
-  <target name="-initializeWithGroovyHome" if="groovyHomeIsSet">
-    <echo message="Building with the Groovy installation at $GROOVY_HOME (${environment.GROOVY_HOME})."/>
-    <path id="groovyJarPathId">
-      <fileset dir="${environment.GROOVY_HOME}/lib" includes="groovy-1.*.jar"/>
-    </path>
-    <path id="compileJarSetPathId">
-      <path refid="groovyJarPathId"/>
-      <fileset dir="${environment.GROOVY_HOME}/lib" includes="commons-cli*.jar"/>
-      <!-- The ASM and Antlr jars are just transitive dependencies of the Groovy jar, the Ant and Commons
-           CLI jars are needed directly by the Gant code. -->
-      <fileset dir="${environment.GROOVY_HOME}/lib" includes="asm*.jar"/>
-      <fileset dir="${environment.GROOVY_HOME}/lib" includes="ant*.jar"/> <!-- Intentionally includes Ant and Antlr jars. -->
-    </path>
-    <path id="testJarSetPathId">
-      <path refid="compileJarSetPathId"/>
-      <fileset dir="${environment.GROOVY_HOME}/lib" includes="junit*.jar"/>
-    </path>
-    <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="compileJarSetPathId"/>
-    <property name="scriptsExtrasDirectory" value="${scriptsDirectory}/bin_requiresGroovy"/>
-  </target>
-
-  <target name="-initializeNoGroovyHome" depends="-initializeMavenAntTask" unless="groovyHomeIsSet">
-    <echo message="Building without a Groovy installation. Using Groovy ${groovyVersion}, Commons CLI ${commonsCliVersion}, Ant ${antVersion} from Maven repository."/>
-    <artifact:dependencies pathId="groovyJarPathId" filesetId="groovyJarFilesetId">
-      <dependency groupId="org.codehaus.groovy" artifactId="groovy-all" version="${groovyVersion}"/>
-    </artifact:dependencies>
-     <artifact:dependencies pathId="compileJarSet" filesetId="compileJarSetFilesetId">
-      <dependency groupId="commons-cli" artifactId="commons-cli" version="${commonsCliVersion}"/>
-    </artifact:dependencies>
-    <path id="compileJarSetPathId">
-      <path refid="groovyJarPathId"/>
-      <path refid="compileJarSet"/>
-    </path>
-     <artifact:dependencies pathId="testJarSet" filesetId="compileJarSetFilesetId">
-      <dependency groupId="org.apache.ant" artifactId="ant-junit" version="${antVersion}"/>
-    </artifact:dependencies>
-    <path id="testJarSetPathId">
-      <path refid="compileJarSetPathId"/>
-      <path refid="testJarSet"/>
-    </path>
-    <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="compileJarSetPathId"/>
-    <property name="scriptsExtrasDirectory" value="${scriptsDirectory}/bin_standalone"/>
- </target>
-
-  <target name="-compile">
-    <mkdir dir="${buildClassesDirectory}"/>
-    <groovyc srcdir="${sourceDirectory}" destdir="${buildClassesDirectory}" fork="true" failonerror="true" includeantruntime="false">
-      <classpath>
-        <path refid="compileJarSetPathId"/>
-      </classpath>
-      <javac source="5" target="5" debug="on" encoding="UTF-8"/>
-    </groovyc>
-  </target>
-
-  <target name="-package" depends="-compile" unless="testsFailed">
-    <mkdir dir="${buildMetadataDirectory}"/>
-    <copy todir="${buildMetadataDirectory}" file="LICENCE.txt"/>
-    <manifest file="${buildMetadataDirectory}/MANIFEST.MF">
-      <attribute name="Built-By" value="${user.name}"/>
-      <attribute name="Extension-Name" value="gant"/>
-      <attribute name="Specification-Title" value="Gant: scripting Ant tasks with Groovy."/>
-      <attribute name="Specification-Version" value="${gantVersion}"/>
-      <attribute name="Specification-Vendor" value="The Codehaus"/>
-      <attribute name="Implementation-Title" value="Gant: Scripting Ant tasks with Groovy."/>
-      <attribute name="Implementation-Version" value="${gantVersion}"/> 
-      <attribute name="Implementation-Vendor" value="The Codehaus"/>
-    </manifest>
-    <jar destfile="${gantJarPath}" basedir="${buildClassesDirectory}" manifest="${buildMetadataDirectory}/MANIFEST.MF"/>
-  </target>
-
-  <target name="-compileTests" depends="-package" unless="skipTestsIsSet">
-    <mkdir dir="${buildTestClassesDirectory}"/>
-    <groovyc srcdir="${testsDirectory}" destdir="${buildTestClassesDirectory}" fork="true" failonerror="true" includeantruntime="false">
-      <classpath>
-        <pathelement location="${gantJarPath}"/>
-        <path refid="testJarSetPathId"/>
-      </classpath>
-      <javac source="5" target="5" debug="on" encoding="UTF-8"/>
-    </groovyc>
-  </target>
-
-  <target name="-test" depends="-initializeMavenAntTask,-compileTests" unless="skipTestsIsSet">
-    <mkdir dir="${buildTestReportsDirectory}"/>
-    <!--  Only need this file if GROOVY_HOME is not set but write it anyway to save the hassle of decision making. -->
-    <echo file="groovyAntTaskTestVersion.properties" message="groovyAntTaskTestVersion = ${groovyVersion}"/>
-    <artifact:dependencies pathId="ivyJarPathId">
-      <dependency groupId="org.apache.ivy" artifactId="ivy" version="${ivyVersion}"/>
-    </artifact:dependencies>
-    <path id="testClasspathPathId">
-      <pathelement location="${buildTestClassesDirectory}"/>
-      <path refid="mavenAntTaskJarPathId"/>
-      <path refid="ivyJarPathId"/>
-      <path refid="testJarSetPathId"/>
-    </path>
-    <!-- Forkmode should be once for speed but perTest for safety. -->
-    <junit printsummary="yes" fork="true" forkmode="once" failureproperty="testsFailed" includeantruntime="false">
-      <!--jvmarg line="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/-->
-      <formatter type="plain"/>
-      <formatter type="xml"/> <!-- Must have XML output for the continuous integration builds. -->
-      <batchtest todir="${buildTestReportsDirectory}">
-        <fileset dir="${buildTestClassesDirectory}" includes="**/*_Test.class" excludes="**/ant/tests/*"/>
-      </batchtest>
-      <classpath>
-        <path refid="testClasspathPathId"/>
-        <pathelement location="${gantJarPath}"/>
-      </classpath>
-    </junit>
-    <junit printsummary="yes" fork="true" forkmode="once" failureproperty="testsFailed" includeantruntime="false">
-      <formatter type="plain"/>
-      <formatter type="xml"/> <!-- Must have XML output for the continuous integration builds. -->
-      <batchtest todir="${buildTestReportsDirectory}">
-        <fileset dir="${buildTestClassesDirectory}" includes="**/ant/tests/*_Test.class"/>
-      </batchtest>
-      <classpath>
-        <path refid="testClasspathPathId"/>
-      </classpath>
-    </junit>
-    <delete file="groovyAntTaskTestVersion.properties"/>
-  </target>
-
-  <target name="-installStandalone" if="installStandalone" unless="testsFailed">
-    <copy todir="${installDirectory}/lib">
-      <fileset refid="groovyJarFilesetId"/>
-      <fileset refid="compileJarSetFilesetId"/>
-      <mapper type="flatten"/>
-    </copy>
-  </target>
-
-  <target name="-install" depends="-initializeMavenAntTask,-package,-installStandalone" if="installDirectoryIsSet" unless="testsFailed">
-    <pathconvert property="groovyJarName">
-      <path refid="groovyJarPathId"/>
-      <mapper type="flatten"/>
-    </pathconvert>
-    <copy todir="${installDirectory}/bin">
-      <fileset dir="${scriptsDirectory}/bin"/>
-      <fileset dir="${scriptsExtrasDirectory}"/>
-      <filterset>
-        <filter token="GANT_VERSION" value="${gantVersion}"/>
-        <filter token="GROOVYJAR" value="${groovyJarName}"/>
-      </filterset>
-    </copy>
-    <chmod perm="a+x">
-      <fileset dir="${installDirectory}/bin" includes="gant*,startGroovy.bat"/>
-    </chmod>
-     <copy todir="${installDirectory}">
-      <fileset dir="${scriptsDirectory}" includes="conf/gant-starter.conf"/>
-    </copy>
-   <artifact:dependencies filesetId="ivyJarFilesetId">
-      <dependency groupId="org.apache.ivy" artifactId="ivy" version="${ivyVersion}"/>
-    </artifact:dependencies>
-    <copy todir="${installDirectory}/lib">
-      <fileset dir="${buildDirectory}" includes="gant*.jar"/>
-      <fileset dir="${jarfilesDirectory}" includes="${mavenAntTaskJarName}"/>
-      <fileset refid="ivyJarFilesetId"/>
-      <mapper type="flatten"/>
-    </copy>
-  </target>
-
-  <target name="-notInstallable" unless="installDirectoryIsSet">
-    <echo message="Property installDirectory is not set, so cannot install.  Set installDirectory in file local.build.properties."/>
-  </target>
-
-  <target name="-uninstall" if="installDirectoryIsSet">
-    <delete dir="${installDirectory}"/>
-  </target>
-
-  <target name="-notUninstallable" unless="installDirectoryIsSet">
-    <echo message="Property installDirectory is not set, so cannot uninstall.  Set installDirectory in file local.build.properties."/>
-  </target>
-
-  <target name="-commandLineDependencies" depends="-checkGroovyHome,-initializeWithGroovyHome,-initializeNoGroovyHome"/>
-  
-  <!--
-      The targets usable from the command line.
-  -->
-
-  <target name="compile" depends="-commandLineDependencies,-compile" description="Compile everything needed for a bootstrap build of Gant."/>
-  
-  <target name="package" depends="-commandLineDependencies,-package" description="Create the jar file for a bootstrap build of Gant."/>
-  
-  <target name="compileTests" depends="-commandLineDependencies,-compileTests" description="Compile all the tests for a bootstrap build of Gant."/>
-  
-  <target name="test" depends="-commandLineDependencies,-test" description="Test a boostrap build of Gant."/>
-  
-  <target name="install" depends="-commandLineDependencies,-install,-notInstallable" description="Package and then install a boostrap build of Gant.  Install destination must be set in the file local.build.properties."/>
-  
-  <target name="uninstall" depends="-commandLineDependencies,-uninstall,-notUninstallable" description="Uninstall Gant from installation destination."/>
-  
-  <target name="clean" description="Clean everything up.">
-    <delete dir="${buildDirectory}"/>
-    <delete dir="target_forMavenTest"/>
-    <delete>
-      <fileset dir="." defaultexcludes="false">
-        <include name="**/*~"/>
-        <include name="texput.log"/>
-        <include name="cobertura.ser"/>
-      </fileset>
-    </delete>
-  </target>
-
-  <!-- 
-       The targets for the Canoo CruiseControl and Codehaus Bamboo continuous integration servers.
-       
-       Codehaus Bamboo executes with no GROOVY_HOME set, so there is no point in trying to check for it.
-       Use the same invocation not using GROOVY_HOME with Canoo.  However, it may be that this is indirectly
-       leading to a problem in one of the Gant Ant task tests.
-  -->
-
-  <target name="-ciBuild" depends="clean,-initializeNoGroovyHome,-test"/>
- 
-  <target name="cruiseControlBuild" depends="-ciBuild"/>
-
-  <target name="bambooBuild" depends="-ciBuild"/>
-
-</project>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email