[gant] 23/51: * New upstream release * Add upstream provided debian/build.xml to build gant using ant * Bump Standards-Version to 3.8.4 * Switch to source format 3.0 (quilt)
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Fri Jul 31 12:07:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository gant.
commit fb62bb1db5fe2610cefae63158553bc46b60a6ca
Author: Varun Hiremath <varun at debian.org>
Date: Fri Feb 19 23:22:13 2010 +0000
* New upstream release
* Add upstream provided debian/build.xml to build gant using ant
* Bump Standards-Version to 3.8.4
* Switch to source format 3.0 (quilt)
---
debian/build.xml | 219 +++++++++++++++++++++++++++++++++++++++++++++++++++
debian/changelog | 9 +++
debian/control | 4 +-
debian/rules | 1 +
debian/source/format | 1 +
5 files changed, 232 insertions(+), 2 deletions(-)
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..1433156
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,219 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Gant - A Groovy way of scripting Ant tasks.
+
+Copyright © 2006-10 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 at concertant.com>
+-->
+
+<project name="Gant" default="package" basedir=".." xmlns:artifact="urn:maven-artifact-ant">
+
+ <description>
+ This Ant script provides the build needed by Debian whilst the Gradle system is not packaged.
+ </description>
+
+ <property name="gantVersion" value="1.9.1"/>
+ <property name="groovyVersion" value="1.7.1"/>
+ <property name="mavenAntTaskVersion" value="2.0.10"/>
+ <property name="ivyVersion" value="2.1.0"/>
+
+ <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="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="maven-ant-tasks-${mavenAntTaskVersion}.jar"/>
+ </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="-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="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>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
index a756f4f..f12b477 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+gant (1.9.1-1) unstable; urgency=low
+
+ * New upstream release
+ * Add upstream provided debian/build.xml to build gant using ant
+ * Bump Standards-Version to 3.8.4
+ * Switch to source format 3.0 (quilt)
+
+ -- Varun Hiremath <varun at debian.org> Fri, 19 Feb 2010 18:16:29 -0500
+
gant (1.8.1-1) unstable; urgency=low
* New upstream release.
diff --git a/debian/control b/debian/control
index 5c94173..a71472c 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Varun Hiremath <varun at debian.org>, Torsten Werner <twerner at debian.org>, Michael Koch <konqueror at gmx.de>
Build-Depends: cdbs, debhelper (>= 7)
-Build-Depends-Indep: ant, groovy, openjdk-6-jdk
-Standards-Version: 3.8.3
+Build-Depends-Indep: ant, groovy, default-jdk
+Standards-Version: 3.8.4
Homepage: http://gant.codehaus.org/
Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/gant
Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/gant
diff --git a/debian/rules b/debian/rules
index bc57a19..469e808 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/java-6-openjdk
+DEB_ANT_BUILDFILE := debian/build.xml
DEB_ANT_BUILD_TARGET := package
UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e's,+dak.*,,')
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gant.git
More information about the pkg-java-commits
mailing list