debian/0000775000000000000000000000000012165255556007204 5ustar debian/patches/0000775000000000000000000000000012165230772010624 5ustar debian/patches/modello-1.1.patch0000664000000000000000000000352112165053766013604 0ustar --- a/pom.xml +++ b/pom.xml @@ -132,7 +132,7 @@ 1.0.0 - src/main/mdo/antlrOptions.mdo + src/main/mdo/antlrOptions.mdo --- a/src/main/java/org/codehaus/mojo/antlr/AntlrHtmlReport.java +++ b/src/main/java/org/codehaus/mojo/antlr/AntlrHtmlReport.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.Locale; +import org.apache.maven.doxia.sink.render.RenderingContext; import org.apache.maven.doxia.siterenderer.Renderer; -import org.apache.maven.doxia.siterenderer.RendererException; import org.apache.maven.doxia.siterenderer.sink.SiteRendererSink; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; @@ -217,20 +217,11 @@ { try { - SiteRendererSink sink = siteRenderer.createSink( getReportOutputDirectory(), getOutputName() + ".html" ); + RenderingContext context = new RenderingContext( getReportOutputDirectory(), getOutputName() + ".html" ); + SiteRendererSink sink = new SiteRendererSink( context ); generate( sink, Locale.getDefault() ); } - catch ( RendererException e ) - { - throw new MojoExecutionException( "An error has occurred in " + getName( Locale.ENGLISH ) - + " report generation.", e ); - } - catch ( IOException e ) - { - throw new MojoExecutionException( "An error has occurred in " + getName( Locale.ENGLISH ) - + " report generation.", e ); - } catch ( MavenReportException e ) { throw new MojoExecutionException( "An error has occurred in " + getName( Locale.ENGLISH ) debian/patches/null-options-check.patch0000664000000000000000000000131012165230772015356 0ustar Description: Fixed a NPE when the grammar options are null Author: Emmanuel Bourg Forwarded: yes Bug: http://jira.codehaus.org/browse/MANTLR-34 --- a/src/main/java/org/codehaus/mojo/antlr/metadata/MetadataExtracter.java +++ b/src/main/java/org/codehaus/mojo/antlr/metadata/MetadataExtracter.java @@ -239,6 +239,8 @@ Method getRHSMethod = helper.getAntlrOptionClass().getMethod( "getRHS", Helper.NO_ARG_SIGNATURE ); getRHSMethod.setAccessible( true ); + if (options == null) return; + Object importVocabOption = getElementMethod.invoke( options, new Object[] { "importVocab" } ); if ( importVocabOption != null ) { debian/patches/series0000664000000000000000000000005312165230470012032 0ustar null-options-check.patch modello-1.1.patch debian/rules0000775000000000000000000000036012165053766010262 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/maven.mk JAVA_HOME := /usr/lib/jvm/default-java get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename debian/watch0000664000000000000000000000022612165053766010234 0ustar version=3 opts="uversionmangle=s/-(alpha|beta)-/~$1/" \ http://svn.codehaus.org/mojo/tags/ \ antlr-maven-plugin-(\d.*)/ debian debian/orig-tar.sh debian/orig-tar.sh0000775000000000000000000000072712165053766011274 0ustar #!/bin/sh -e VERSION=$2 TAR=../antlr-maven-plugin_$VERSION.orig.tar.gz DIR=antlr-maven-plugin-$VERSION TAG=$(echo "antlr-maven-plugin-$VERSION" | sed -re's/~(alpha|beta)/-\1-/') svn export https://svn.codehaus.org/mojo/tags/${TAG}/ $DIR GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR rm -rf $DIR ../$TAG # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir && echo "moved $TAR to $origDir" fi debian/maven.properties0000664000000000000000000000002512165053766012424 0ustar maven.test.skip=true debian/changelog0000664000000000000000000000267412165250207011053 0ustar antlr-maven-plugin (2.2-2) unstable; urgency=low * Added a patch to fix a NPE when the grammar options are null (http://jira.codehaus.org/browse/MANTLR-34) -- Emmanuel Bourg Thu, 04 Jul 2013 10:27:52 +0200 antlr-maven-plugin (2.2-1) unstable; urgency=low * New upstream release * Refreshed the patch * Added a dependency on libcommons-exec-java * Updated Standards-Version to 3.9.4 (no changes) * debian/copyright: Updated the Format URI to the version 1.0 * Use canonical URLs for the Vcs-* fields * Added a lintian override for the javalib-but-no-public-jars warning -- Emmanuel Bourg Wed, 03 Jul 2013 14:40:27 +0200 antlr-maven-plugin (2.1-2) unstable; urgency=low * Team upload. * Add Build-Depends on libmaven-plugin-tools-java. (Closes: #655371). * Refresh modello-1.1.patch. (Closes: #643492). Thanks to Daniel Schepler for contributing a fix for this bug. * Bump Standards-Version to 3.9.2. No changes were required. * Make copyright file DEP-5 compliant. * Drop unnecessary B-D on quilt. -- Miguel Landaeta Wed, 11 Jan 2012 22:54:32 -0430 antlr-maven-plugin (2.1-1) unstable; urgency=low [ Ludovic Claude ] * Initial release (Closes: #567815) [ Torsten Werner ] * Add myself to Uploaders. * Fix debian/watch and debian/copyright. * Switch to source format 3.0. -- Torsten Werner Wed, 19 May 2010 22:30:21 +0200 debian/maven.publishedRules0000644000000000000000000000000112165251601013176 0ustar debian/source/0000775000000000000000000000000012165053766010503 5ustar debian/source/format0000664000000000000000000000001412165053766011711 0ustar 3.0 (quilt) debian/libantlr-maven-plugin-java.poms0000664000000000000000000000316012165251601015215 0ustar # List of POM files for the package # Format of this file is: # [option]* # where option can be: # --ignore: ignore this POM and its artifact if any # --ignore-pom: don't install the POM. To use on POM files that are created # temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms] # --no-parent: remove the tag from the POM # --package=: an alternative package to use when installing this POM # and its artifact # --has-package-version: to indicate that the original version of the POM is the same as the upstream part # of the version for the package. # --keep-elements=: a list of XML elements to keep in the POM # during a clean operation with mh_cleanpom or mh_installpom # --artifact=: path to the build artifact associated with this POM, # it will be installed when using the command mh_install. [mh_install] # --java-lib: install the jar into /usr/share/java to comply with Debian # packaging guidelines # --usj-name=: name to use when installing the library in /usr/share/java # --usj-version=: version to use when installing the library in /usr/share/java # --no-usj-versionless: don't install the versionless link in /usr/share/java # --dest-jar=: the destination for the real jar. # It will be installed with mh_install. [mh_install] # --classifier=: Optional, the classifier for the jar. Empty by default. # --site-xml=: Optional, the location for site.xml if it needs to be installed. # Empty by default. [mh_install] # pom.xml --no-parent debian/maven.ignoreRules0000664000000000000000000000010612165251601012512 0ustar org.apache.maven.plugin-testing maven-plugin-testing-harness * * * * debian/compat0000664000000000000000000000000212165053766010401 0ustar 7 debian/maven.rules0000664000000000000000000000112012165251601011343 0ustar org.apache.maven.reporting maven-reporting-impl jar s/.*/debian/ * * org.apache.maven.wagon wagon-provider-api jar s/.*/debian/ * * org.codehaus.plexus plexus-i18n jar s/.*/debian/ * * s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-harness * s/.*/debian/ * * s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-tools * s/.*/debian/ * * s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing * s/.*/debian/ * * s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-test-tools * s/.*/debian/ * * debian/copyright0000664000000000000000000000530312165053766011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Maven ANTLR Plugin Upstream-Contact: Codehaus developers, Vincent Siveton Source: http://mojo.codehaus.org/antlr-maven-plugin/ Files: * Copyright: 2004-2010, Vincent Siveton License: Apache-2.0 Files: src/test/resources/unit/no-antlr-dep/src/main/antlr/java15.g src/test/resources/unit/java-grammar-test/src/main/antlr/java15.g src/it/java-grammar-report-test/src/main/antlr/java15.g Copyright: 2004-2005, Matt Quail at Cenqua License: other This grammar is in the PUBLIC DOMAIN Files: src/test/resources/unit/java-grammar-inheritance-test/* Copyright: 1998, Non, Inc. License: other (BSD like) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. . All advertising materials mentioning features or use of this software must display the following acknowledgement: . This product includes software developed by Non, Inc. and its contributors. . Neither name of the company nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2010, Ludovic Claude License: Apache-2.0 License: Apache-2.0 On Debian GNU/Linux system you can find the complete text of the Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0' debian/README.source0000664000000000000000000000045612165053766011367 0ustar Information about antlr-maven-plugin ------------------------------ This package was debianized using the mh_make command from the maven-debian-helper package. The build system uses Maven but prevents it from downloading anything from the Internet, making the build compliant with the Debian policy. debian/control0000664000000000000000000000323512165053766010611 0ustar Source: antlr-maven-plugin Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Ludovic Claude , Torsten Werner , Emmanuel Bourg Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-debian-helper (>> 0.7) Build-Depends-Indep: libcommons-exec-java, libmaven-antrun-plugin-java (>= 1.3), libmaven-clean-plugin-java (>= 2.3), libmaven-compiler-plugin-java (>= 2.0.2), libmaven-invoker-plugin-java (>= 1.3), libmaven-jar-plugin-java (>= 2.2), libmaven-plugin-tools-java, libmaven-reporting-impl-java, libmaven-resources-plugin-java (>= 2.3), libmaven-site-plugin-java (>= 2.0), libmaven2-core-java, libmodello-maven-plugin-java (>= 1.1), libplexus-i18n-java, libplexus-utils-java, libsurefire-java (>= 2.4.3), libwagon-java Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/antlr-maven-plugin Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/antlr-maven-plugin/ Homepage: http://mojo.codehaus.org/antlr-maven-plugin/ Package: libantlr-maven-plugin-java Architecture: all Depends: ${maven:Depends}, ${misc:Depends} Recommends: ${maven:OptionalDepends} Description: Maven ANTLR Plugin Maven Plugin for Antlr v2. It can generate code from Antlr 2 scripts inside a Maven build. debian/maven.cleanIgnoreRules0000644000000000000000000000000112165251601013445 0ustar debian/libantlr-maven-plugin-java.lintian-overrides0000664000000000000000000000013712165053766017712 0ustar # Jars for Maven plugins are only deployed in /usr/share/maven-repo javalib-but-no-public-jars