commit
64c7f06e51
BIN
antlr-3.1.3.jar
Normal file
BIN
antlr-3.1.3.jar
Normal file
Binary file not shown.
106
antlr-3.1.3.pom
Normal file
106
antlr-3.1.3.pom
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>ANTLR Grammar Tool</name>
|
||||||
|
<url>http://antlr.org</url>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Inherit from the ANTLR master pom, which tells us what
|
||||||
|
version we are and allows us to inherit dependencies
|
||||||
|
and so on.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<parent>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr-master</artifactId>
|
||||||
|
<version>3.1.3</version>
|
||||||
|
</parent>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr-runtime</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.5</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Tell Maven which other artifacts we need in order to
|
||||||
|
build, run and test the ANTLR Tool. The ANTLR Tool uses earlier versions
|
||||||
|
of ANTLR at runtime (for the moment), uses the current
|
||||||
|
released version of ANTLR String template, but obviously is
|
||||||
|
reliant on the latest snapshot of the runtime, which will either be
|
||||||
|
taken from the antlr-snapshot repository, or your local .m2
|
||||||
|
repository if you built and installed that locally.
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<defaultGoal>install</defaultGoal>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr3-maven-plugin</artifactId>
|
||||||
|
<version>3.1.2</version>
|
||||||
|
<configuration>
|
||||||
|
<libDirectory>target/generated-sources/antlr/org/antlr/grammar/v3</libDirectory>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
|
||||||
|
<goals>
|
||||||
|
<goal>antlr</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>antlr-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<sourceDirectory>src/main/antlr2/org/antlr/grammar/v2</sourceDirectory>
|
||||||
|
<grammars>antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g</grammars>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>generate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<source>1.5</source>
|
||||||
|
<target>1.5</target>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
BIN
antlr-3.2.tar.gz
Normal file
BIN
antlr-3.2.tar.gz
Normal file
Binary file not shown.
254
antlr-master-3.1.3.pom
Normal file
254
antlr-master-3.1.3.pom
Normal file
@ -0,0 +1,254 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr-master</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>3.1.3</version>
|
||||||
|
<name>ANTLR Master build control POM</name>
|
||||||
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
What version of ANTLR are we building? This sets the
|
||||||
|
the version number for all other things that are built
|
||||||
|
as part of an ANTLR release, unless they override or
|
||||||
|
ignore it. We do this via a properites file for this
|
||||||
|
pom.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the master pom for building the ANTLR
|
||||||
|
toolset and runtime (Java) at the specific level
|
||||||
|
defined above. Hence we specify here the modules that
|
||||||
|
this pom will build when we build this pom
|
||||||
|
-->
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
|
||||||
|
<module>runtime/Java</module>
|
||||||
|
<module>tool</module>
|
||||||
|
<module>antlr3-maven-plugin</module>
|
||||||
|
<module>gunit</module>
|
||||||
|
</modules>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Define where the ANTLR releated jars are deployed both for
|
||||||
|
the main ANTLR repository, which syncs with the maven main
|
||||||
|
repository, and the snapshot repository, which can be
|
||||||
|
used by developers that need the latest development version of
|
||||||
|
something, but is used here to show maven where to deploy
|
||||||
|
snapshots and releases.
|
||||||
|
-->
|
||||||
|
<distributionManagement>
|
||||||
|
|
||||||
|
<repository>
|
||||||
|
<id>antlr-repo</id>
|
||||||
|
<name>ANTLR Testing repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-repo</url>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>antlr-snapshot</id>
|
||||||
|
<name>ANTLR Testing Snapshot Repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-snapshot</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Inform Maven of the ANTLR snapshot repository, which it will
|
||||||
|
need to consult to get the latest snapshot build of the runtime
|
||||||
|
if it was not built and installed locally.
|
||||||
|
-->
|
||||||
|
<repositories>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the ANTLR repository.
|
||||||
|
-->
|
||||||
|
<repository>
|
||||||
|
<id>antlr-snapshot</id>
|
||||||
|
<name>ANTLR Testing Snapshot Repository</name>
|
||||||
|
<url>http://antlr.org/antlr-snapshot</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>always</updatePolicy>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Tell Maven which other artifacts we need in order to
|
||||||
|
build, run and test the ANTLR jars.
|
||||||
|
This is the master pom, and so it only contains those
|
||||||
|
dependencies that are common to all the modules below
|
||||||
|
or are just included for test
|
||||||
|
-->
|
||||||
|
<dependencyManagement>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.5</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>antlr</groupId>
|
||||||
|
<artifactId>antlr</artifactId>
|
||||||
|
<version>2.7.7</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>stringtemplate</artifactId>
|
||||||
|
<version>3.2</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>gunit</artifactId>
|
||||||
|
<version>3.1.3-SNAPSHOT</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<defaultGoal>install</defaultGoal>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The following filter definition means that both the master
|
||||||
|
project and the sub projects will read in a file in the same
|
||||||
|
directory as the pom.xml is located and set any properties
|
||||||
|
that are defined there in the standard x=y format. These
|
||||||
|
properties can then be referenced via ${x} in any resource
|
||||||
|
file specified in any pom. So, there is a master antlr.config
|
||||||
|
file in the same location as this pom.xml file and here you can
|
||||||
|
define anything that is relevant to all the modules that we
|
||||||
|
build here. However each module also has an antlr.config file
|
||||||
|
where you can override property values from the master file or
|
||||||
|
define things that are only relevant to that module.
|
||||||
|
-->
|
||||||
|
<filters>
|
||||||
|
<filter>antlr.config</filter>
|
||||||
|
</filters>
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<format>{0,date,MMM dd, yyyy} {0,time,kk:mm:ss}</format>
|
||||||
|
<items>
|
||||||
|
<item>timestamp</item>
|
||||||
|
</items>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>create</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<source>1.5</source>
|
||||||
|
<target>1.5</target>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<findbugsXmlOutput>true</findbugsXmlOutput>
|
||||||
|
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
|
||||||
|
<xmlOutput>true</xmlOutput>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Build an uber-jar for the ANTLR Tool that is packaged with all the other dependencies,
|
||||||
|
such as the antlr-runtime and stringtemplate etc. This will be useful
|
||||||
|
for developers, who then do not need to download anything else or
|
||||||
|
remember that they need stringtemplate.jar in their CLASSPATH and so
|
||||||
|
on.
|
||||||
|
|
||||||
|
Note that this is only the tool Uber jar as anything else is standalone.
|
||||||
|
|
||||||
|
The uber-jar is then self contained for developing and testing.
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Do not make the child modules build an assembly
|
||||||
|
-->
|
||||||
|
<inherited>false</inherited>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>antlrjar.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Specify that we want the resulting jar to be executable
|
||||||
|
via java -jar, which we do by modifying the manifest
|
||||||
|
of course.
|
||||||
|
-->
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>org.antlr.Tool</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
|
<artifactId>wagon-ssh-external</artifactId>
|
||||||
|
<version>1.0-beta-2</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
BIN
antlr-runtime-3.1.3.jar
Normal file
BIN
antlr-runtime-3.1.3.jar
Normal file
Binary file not shown.
119
antlr-runtime-3.1.3.pom
Normal file
119
antlr-runtime-3.1.3.pom
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr-runtime</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Inherit from the ANTLR master pom, which tells us what
|
||||||
|
version we are and allows us to inherit dependencies
|
||||||
|
and so on.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<parent>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr-master</artifactId>
|
||||||
|
<version>3.1.3</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<name>Antlr 3 Runtime</name>
|
||||||
|
<description>A framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions.</description>
|
||||||
|
<url>http://www.antlr.org</url>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>Terence Parr</name>
|
||||||
|
<organization>USFCA</organization>
|
||||||
|
<organizationUrl>http://www.cs.usfca.edu</organizationUrl>
|
||||||
|
<email>parrt@antlr.org</email>
|
||||||
|
<roles>
|
||||||
|
<role>Project Leader</role>
|
||||||
|
<role>Developer - Java Target</role>
|
||||||
|
</roles>
|
||||||
|
<timezone>PST</timezone>
|
||||||
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<name>Jim Idle</name>
|
||||||
|
<organization>Temporal Wave LLC</organization>
|
||||||
|
<organizationUrl>http://www.temporal-wave.com</organizationUrl>
|
||||||
|
<email>jimi@temporal-wave.com</email>
|
||||||
|
<roles>
|
||||||
|
<role>Developer - Maven stuff</role>
|
||||||
|
<role>Developer - C Target</role>
|
||||||
|
</roles>
|
||||||
|
<timezone>PST</timezone>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<url>http://fisheye2.cenqua.com/browse/antlr</url>
|
||||||
|
<connection>http://fisheye2.cenqua.com/browse/antlr</connection>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Definition of the ANTLR repositories. Note that you can only deploy
|
||||||
|
to the repositories via scp, and so the server must already know about
|
||||||
|
your public key. ONly ANTLR developers are allowed to deploy to the
|
||||||
|
release and snapshot repositories, which are synced with the Maven central
|
||||||
|
repository.
|
||||||
|
-->
|
||||||
|
<distributionManagement>
|
||||||
|
|
||||||
|
<repository>
|
||||||
|
<id>antlr-repo</id>
|
||||||
|
<name>ANTLR Testing repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-repo</url>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>antlr-snapshot</id>
|
||||||
|
<name>ANTLR Testing Snapshot Repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-snapshot</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>stringtemplate</artifactId>
|
||||||
|
<version>3.2</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<defaultGoal>install</defaultGoal>
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
|
<artifactId>wagon-ssh-external</artifactId>
|
||||||
|
<version>1.0-beta-2</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.0.2</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.5</source>
|
||||||
|
<target>1.5</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<findbugsXmlOutput>true</findbugsXmlOutput>
|
||||||
|
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
|
||||||
|
<xmlOutput>true</xmlOutput>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
61
antlr2-usage.patch
Normal file
61
antlr2-usage.patch
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
--- tool/build.xml.orig 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ tool/build.xml 2015-07-07 14:24:35.010405911 +0100
|
||||||
|
@@ -0,0 +1,11 @@
|
||||||
|
+<project default="antlr">
|
||||||
|
+ <target name="antlr">
|
||||||
|
+ <mkdir dir="./target/generated-sources/antlr/org/antlr/grammar/v2"/>
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/antlr.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/codegen.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/antlr.print.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/assign.types.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/buildnfa.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ <antlr target="src/main/antlr2/org/antlr/grammar/v2/define.g" outputdirectory="./target/generated-sources/antlr/org/antlr/grammar/v2" />
|
||||||
|
+ </target>
|
||||||
|
+</project>
|
||||||
|
--- tool/pom.xml.orig 2009-09-23 19:50:28.000000000 +0100
|
||||||
|
+++ tool/pom.xml 2015-07-07 14:49:09.811396333 +0100
|
||||||
|
@@ -76,19 +76,40 @@
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
- <artifactId>antlr-maven-plugin</artifactId>
|
||||||
|
+ <artifactId>exec-maven-plugin</artifactId>
|
||||||
|
+ <version>1.4.0</version>
|
||||||
|
<configuration>
|
||||||
|
- <sourceDirectory>src/main/antlr2/org/antlr/grammar/v2</sourceDirectory>
|
||||||
|
- <grammars>antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g</grammars>
|
||||||
|
+ <executable>ant</executable>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
+ <phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
- <goal>generate</goal>
|
||||||
|
+ <goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
+
|
||||||
|
+ <plugin>
|
||||||
|
+ <groupId>org.codehaus.mojo</groupId>
|
||||||
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
+ <version>1.7</version>
|
||||||
|
+ <executions>
|
||||||
|
+ <execution>
|
||||||
|
+ <id>add-source</id>
|
||||||
|
+ <phase>generate-sources</phase>
|
||||||
|
+ <goals>
|
||||||
|
+ <goal>add-source</goal>
|
||||||
|
+ </goals>
|
||||||
|
+ <configuration>
|
||||||
|
+ <sources>
|
||||||
|
+ <source>${project.build.directory}/generated-sources/antlr</source>
|
||||||
|
+ </sources>
|
||||||
|
+ </configuration>
|
||||||
|
+ </execution>
|
||||||
|
+ </executions>
|
||||||
|
+ </plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
BIN
antlr3-maven-plugin-3.1.3-1.jar
Normal file
BIN
antlr3-maven-plugin-3.1.3-1.jar
Normal file
Binary file not shown.
341
antlr3-maven-plugin-3.1.3-1.pom
Normal file
341
antlr3-maven-plugin-3.1.3-1.pom
Normal file
@ -0,0 +1,341 @@
|
|||||||
|
<!--
|
||||||
|
|
||||||
|
[The "BSD licence"]
|
||||||
|
|
||||||
|
ANTLR - Copyright (c) 2005-2008 Terence Parr
|
||||||
|
Maven Plugin - Copyright (c) 2009 Jim Idle
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. 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.
|
||||||
|
3. The name of the author may not be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
|
||||||
|
<!-- Maven model we are inheriting from
|
||||||
|
-->
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Now that teh ANTLR project has adopted Maven with a vengence,
|
||||||
|
all ANTLR tools will be grouped under org.antlr and will be
|
||||||
|
controlled by a project member.
|
||||||
|
-->
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This is the ANTLR plugin for ANTLR version 3.1.3 and above. It might
|
||||||
|
have been best to change the name of the plugin as the 3.1.2 plugins
|
||||||
|
behave a little differently, however for the sake of one transitional
|
||||||
|
phase to a much better plugin, it was decided that the name should
|
||||||
|
remain the same.
|
||||||
|
-->
|
||||||
|
<artifactId>antlr3-maven-plugin</artifactId>
|
||||||
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
|
<!-- Note that as this plugin depends on teh ANTLR tool itself
|
||||||
|
we cannot use the paren pom to control the version number
|
||||||
|
and MUST update <version> in this pom manually!
|
||||||
|
-->
|
||||||
|
<version>3.1.3-1</version>
|
||||||
|
<name>Maven plugin for ANTLR V3</name>
|
||||||
|
<prerequisites>
|
||||||
|
<maven>2.0</maven>
|
||||||
|
</prerequisites>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Where does our actual project live on the interwebs.
|
||||||
|
-->
|
||||||
|
<url>http://antlr.org</url>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
|
||||||
|
This is the brand new, re-written from scratch plugin for ANTLR v3.
|
||||||
|
|
||||||
|
Previous valiant efforts all suffered from being unable to modify the ANTLR Tool
|
||||||
|
itself to provide support not just for Maven oriented things but any other tool
|
||||||
|
that might wish to invoke ANTLR without resorting to the command line interface.
|
||||||
|
|
||||||
|
Rather than try to shoe-horn new code into the existing Mojo (in fact I think that
|
||||||
|
by incorporating a patch supplied by someone I ended up with tow versions of the
|
||||||
|
Mojo, I elected to rewrite everything from scratch, including the documentation, so
|
||||||
|
that we might end up with a perfect Mojo that can do everything that ANTLR v3 supports
|
||||||
|
such as imported grammar processing, proper support for library directories and
|
||||||
|
locating token files from generated sources, and so on.
|
||||||
|
|
||||||
|
In the end I decided to also change the the ANTLR Tool.java code so that it
|
||||||
|
would be the provider of all the things that a build tool needs, rather than
|
||||||
|
delegating things to 5 different tools. So, things like dependencies, dependency
|
||||||
|
sorting, option tracking, generating sources and so on are all folded back
|
||||||
|
in to ANTLR's Tool.java code, where they belong, and they now provide a
|
||||||
|
public interface to anyone that might want to interface with them.
|
||||||
|
|
||||||
|
One other goal of this rewrite was to completely document the whole thing
|
||||||
|
to death. Hence even this pom has more comments than funcitonal elements,
|
||||||
|
in case I get run over by a bus or fall off a cliff while skiing.
|
||||||
|
|
||||||
|
Jim Idle - March 2009
|
||||||
|
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<developers>
|
||||||
|
|
||||||
|
<developer>
|
||||||
|
<name>Jim Idle</name>
|
||||||
|
<url>http://www.temporal-wave.com</url>
|
||||||
|
<roles>
|
||||||
|
<role>Originator, version 3.1.3</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
|
||||||
|
<developer>
|
||||||
|
<name>Terence Parr</name>
|
||||||
|
<url>http://antlr.org/wiki/display/~admin/Home</url>
|
||||||
|
<roles>
|
||||||
|
<role>Project lead - ANTLR</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
|
||||||
|
<developer>
|
||||||
|
<name>David Holroyd</name>
|
||||||
|
<url>http://david.holroyd.me.uk/</url>
|
||||||
|
<roles>
|
||||||
|
<role>Originator - prior version</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
|
||||||
|
<developer>
|
||||||
|
<name>Kenny MacDermid</name>
|
||||||
|
<url>kenny@kmdconsulting.ca</url>
|
||||||
|
<roles>
|
||||||
|
<role>Contributor - prior versions</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
|
||||||
|
</developers>
|
||||||
|
|
||||||
|
<!-- Where are the continuous integration details for this project then John?
|
||||||
|
-->
|
||||||
|
<ciManagement>
|
||||||
|
<system>hudson</system>
|
||||||
|
<url>http://antlr.org/hudson/job/Maven_Plugin/lastSuccessfulBuild/</url>
|
||||||
|
<notifiers>
|
||||||
|
<notifier>
|
||||||
|
<type>rss</type>
|
||||||
|
|
||||||
|
<configuration>
|
||||||
|
<url>http://antlr.org/hudson/job/Maven_Plugin/rssAll</url>
|
||||||
|
</configuration>
|
||||||
|
</notifier>
|
||||||
|
</notifiers>
|
||||||
|
</ciManagement>
|
||||||
|
|
||||||
|
<!-- Where do we track bugs for this project?
|
||||||
|
-->
|
||||||
|
<issueManagement>
|
||||||
|
<system>JIRA</system>
|
||||||
|
<url>http://antlr.org/jira/browse/ANTLR</url>
|
||||||
|
</issueManagement>
|
||||||
|
|
||||||
|
<!-- Location of the license description for this project
|
||||||
|
-->
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
<name>The BSD License</name>
|
||||||
|
<url>http://www.antlr.org/LICENSE.txt </url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
|
||||||
|
<repository>
|
||||||
|
<id>antlr-repo</id>
|
||||||
|
<name>ANTLR Testing repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-repo</url>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>antlr-snapshot</id>
|
||||||
|
<name>ANTLR Testing Snapshot Repository</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-snapshot</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
|
||||||
|
<site>
|
||||||
|
<id>antlr-repo</id>
|
||||||
|
<name>ANTLR Maven Plugin Web Site</name>
|
||||||
|
<url>scpexe://antlr.org/home/mavensync/antlr-maven-webs/antlr3-maven-plugin</url>
|
||||||
|
</site>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Inform Maven of the ANTLR snapshot repository, which it will
|
||||||
|
need to consult to get the latest snapshot build of the runtime and tool
|
||||||
|
if it was not built and installed locally.
|
||||||
|
-->
|
||||||
|
<repositories>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the ANTLR repository.
|
||||||
|
-->
|
||||||
|
<repository>
|
||||||
|
<id>antlr-snapshot</id>
|
||||||
|
<name>ANTLR Testing Snapshot Repository</name>
|
||||||
|
<url>http://antlr.org/antlr-snapshot</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<updatePolicy>always</updatePolicy>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
</repositories>
|
||||||
|
|
||||||
|
<!-- Ancilliary information for completeness
|
||||||
|
-->
|
||||||
|
<inceptionYear>2009</inceptionYear>
|
||||||
|
|
||||||
|
<mailingLists>
|
||||||
|
<mailingList>
|
||||||
|
<archive>http://antlr.markmail.org/</archive>
|
||||||
|
<otherArchives>
|
||||||
|
<otherArchive>http://www.antlr.org/pipermail/antlr-interest/</otherArchive>
|
||||||
|
</otherArchives>
|
||||||
|
<name>ANTLR Users</name>
|
||||||
|
<subscribe>http://www.antlr.org/mailman/listinfo/antlr-interest/</subscribe>
|
||||||
|
<unsubscribe>http://www.antlr.org/mailman/options/antlr-interest/</unsubscribe>
|
||||||
|
<post>antlr-interest@antlr.org</post>
|
||||||
|
</mailingList>
|
||||||
|
</mailingLists>
|
||||||
|
|
||||||
|
<organization>
|
||||||
|
<name>ANTLR.org</name>
|
||||||
|
<url>http://www.antlr.org</url>
|
||||||
|
</organization>
|
||||||
|
<!-- ============================================================================= -->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
What are we depedent on for the Mojos to execute? We need the
|
||||||
|
plugin API itself and of course we need the ANTLR Tool and runtime
|
||||||
|
and any of their dependencies, which we inherit. The Tool itself provides
|
||||||
|
us with all the dependencies, so we need only name it here.
|
||||||
|
-->
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The things we need to build the target language recognizer
|
||||||
|
-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven</groupId>
|
||||||
|
<artifactId>maven-plugin-api</artifactId>
|
||||||
|
<version>2.0</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven</groupId>
|
||||||
|
<artifactId>maven-project</artifactId>
|
||||||
|
<version>2.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
<artifactId>plexus-compiler-api</artifactId>
|
||||||
|
<version>1.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The version of ANTLR tool that this version of the plugin controls.
|
||||||
|
We have decided that this should be in lockstep with ANTLR itself, other
|
||||||
|
than -1 -2 -3 etc patch releases.
|
||||||
|
-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr</artifactId>
|
||||||
|
<version>3.1.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Testing requirements...
|
||||||
|
-->
|
||||||
|
<dependency>
|
||||||
|
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.5</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
|
<artifactId>maven-plugin-testing-harness</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<defaultGoal>install</defaultGoal>
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
|
<artifactId>wagon-ssh-external</artifactId>
|
||||||
|
<version>1.0-beta-2</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.0.2</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.5</source>
|
||||||
|
<target>1.5</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
113
antlr32.spec
Normal file
113
antlr32.spec
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
%global bootstrap 0
|
||||||
|
%global bootstrap_version 3.1.3
|
||||||
|
Name: antlr32
|
||||||
|
Version: 3.2
|
||||||
|
Release: 1
|
||||||
|
Summary: ANother Tool for Language Recognition
|
||||||
|
License: BSD
|
||||||
|
URL: http://www.antlr3.org/
|
||||||
|
Source0: http://www.antlr3.org/download/antlr-%{version}.tar.gz
|
||||||
|
%if %{bootstrap}
|
||||||
|
Source1: https://repo1.maven.org/maven2/org/antlr/antlr-master/%{bootstrap_version}/antlr-master-%{bootstrap_version}.pom
|
||||||
|
Source2: https://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.jar
|
||||||
|
Source3: https://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.pom
|
||||||
|
Source4: https://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.jar
|
||||||
|
Source5: https://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.pom
|
||||||
|
Source6: https://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.jar
|
||||||
|
Source7: https://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.pom
|
||||||
|
%endif
|
||||||
|
Patch0: java8-compat.patch
|
||||||
|
Patch1: osgi-manifest.patch
|
||||||
|
Patch2: antlr2-usage.patch
|
||||||
|
BuildRequires: maven-local ant-antlr exec-maven-plugin maven-plugin-build-helper
|
||||||
|
BuildRequires: maven-plugin-bundle maven-plugin-plugin stringtemplate >= 3.2
|
||||||
|
%if ! %{bootstrap}
|
||||||
|
BuildRequires: %{name}-maven-plugin = %{version}
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
ANother Tool for Language Recognition, is a grammar parser generator.
|
||||||
|
This package is compatibility package containing an older version of
|
||||||
|
in order to support jython. No other packages should declare a
|
||||||
|
dependency on this one.
|
||||||
|
|
||||||
|
%package maven-plugin
|
||||||
|
Summary: Maven plug-in for creating ANTLR-generated parsers
|
||||||
|
Requires: %{name}-tool = %{version}-%{release}
|
||||||
|
%description maven-plugin
|
||||||
|
Maven plug-in for creating ANTLR-generated parsers.
|
||||||
|
|
||||||
|
%package tool
|
||||||
|
Summary: Command line tool for creating ANTLR-generated parsers
|
||||||
|
Requires: %{name}-java = %{version}-%{release}
|
||||||
|
%description tool
|
||||||
|
Command line tool for creating ANTLR-generated parsers.
|
||||||
|
|
||||||
|
%package java
|
||||||
|
Summary: Java run-time support for ANTLR-generated parsers
|
||||||
|
Requires: stringtemplate >= 3.2
|
||||||
|
%description java
|
||||||
|
Java run-time support for ANTLR-generated parsers.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: API documentation for ANTLR
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n antlr-%{version}
|
||||||
|
%patch0 -b .orig
|
||||||
|
%patch1 -b .orig
|
||||||
|
%patch2 -b .orig
|
||||||
|
find -type f -a -name *.jar -delete
|
||||||
|
find -type f -a -name *.class -delete
|
||||||
|
find -name "._*" -delete
|
||||||
|
%pom_disable_module gunit
|
||||||
|
%pom_disable_module gunit-maven-plugin
|
||||||
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
|
||||||
|
%pom_xpath_remove pom:build/pom:extensions
|
||||||
|
%pom_xpath_remove pom:build/pom:extensions runtime/Java
|
||||||
|
%pom_xpath_remove pom:build/pom:extensions antlr3-maven-plugin
|
||||||
|
%mvn_package :antlr tool
|
||||||
|
%mvn_package :antlr-master java
|
||||||
|
%mvn_package :antlr-runtime java
|
||||||
|
%mvn_package :antlr3-maven-plugin maven-plugin
|
||||||
|
find -name "pom.xml" | xargs sed -i -e "s|>jsr14<|>1.5<|"
|
||||||
|
sed -i -e "s|\${buildNumber}|%{release}|" tool/src/main/resources/org/antlr/antlr.properties
|
||||||
|
%mvn_compat_version 'org.antlr:antlr3-maven-plugin' %{version} %{bootstrap_version}-1
|
||||||
|
%mvn_compat_version 'org.antlr:antlr{,-master,-runtime}' %{version} %{bootstrap_version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p .m2/org/antlr/antlr-master/%{version}/
|
||||||
|
cp -p pom.xml .m2/org/antlr/antlr-master/%{version}/antlr-master-%{version}.pom
|
||||||
|
%if %{bootstrap}
|
||||||
|
mkdir -p .m2/org/antlr/antlr-master/%{bootstrap_version}/
|
||||||
|
cp -p %{SOURCE1} .m2/org/antlr/antlr-master/%{bootstrap_version}/.
|
||||||
|
mkdir -p .m2/org/antlr/antlr/%{bootstrap_version}/
|
||||||
|
cp -p %{SOURCE2} %{SOURCE3} .m2/org/antlr/antlr/%{bootstrap_version}/.
|
||||||
|
mkdir -p .m2/org/antlr/antlr-runtime/%{bootstrap_version}/
|
||||||
|
cp -p %{SOURCE4} %{SOURCE5} .m2/org/antlr/antlr-runtime/%{bootstrap_version}/.
|
||||||
|
mkdir -p .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}/
|
||||||
|
cp -p %{SOURCE6} %{SOURCE7} .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}/.
|
||||||
|
%endif
|
||||||
|
%mvn_build -f
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
%files tool -f .mfiles-tool
|
||||||
|
%doc tool/LICENSE.txt
|
||||||
|
|
||||||
|
%files maven-plugin -f .mfiles-maven-plugin
|
||||||
|
%doc tool/LICENSE.txt
|
||||||
|
|
||||||
|
%files java -f .mfiles-java
|
||||||
|
%doc tool/LICENSE.txt
|
||||||
|
%dir %{_datadir}/java/antlr32
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%doc tool/LICENSE.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 22 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.2-1
|
||||||
|
- Package init
|
||||||
4
antlr32.yaml
Normal file
4
antlr32.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
1
id_rsa.pub
Normal file
1
id_rsa.pub
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ9h9S4qIxFtZuZIwLJchB6xMquztAnKGybZoM1rrcrBFLQTmSDNuUP+4S5Hv3ZJF3By1N5NRD3aE2eN0DJv3BXrQRiP/O52zyoE0hnF/MLlRgdTrQ4Ny6rmVB8ctvjB9bxXGWibkk/ApsER3vhuyj8XraYBL+SvvL3vk7Tku6Ty8kF+k5XMzm6YHk7n52vsGuGV31RwHwumG55IINQ5+pvtBZZ73oRONmU4iKpaMzTvH0NKxQiV9avKDev54QVcW6LXBhV78QxwPzZTsmjlpHQlcMbqNkIwM/xsdJtUKx09nBCTatpT5fr4zQyJLluTBHDHDnFBbZLzO5Y8ODNAU1 jeff200902@163.com
|
||||||
11
java8-compat.patch
Normal file
11
java8-compat.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- tool/src/main/java/org/antlr/tool/CompositeGrammar.java.orig 2014-05-30 00:12:33.360503545 +0100
|
||||||
|
+++ tool/src/main/java/org/antlr/tool/CompositeGrammar.java 2014-05-30 00:13:38.533423946 +0100
|
||||||
|
@@ -219,7 +219,7 @@
|
||||||
|
public List<Grammar> getIndirectDelegates(Grammar g) {
|
||||||
|
List<Grammar> direct = getDirectDelegates(g);
|
||||||
|
List<Grammar> delegates = getDelegates(g);
|
||||||
|
- delegates.removeAll(direct);
|
||||||
|
+ if ( direct!=null ) delegates.removeAll(direct);
|
||||||
|
return delegates;
|
||||||
|
}
|
||||||
|
|
||||||
31
osgi-manifest.patch
Normal file
31
osgi-manifest.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
--- runtime/Java/pom.xml.orig 2009-09-23 19:50:28.000000000 +0100
|
||||||
|
+++ runtime/Java/pom.xml 2015-11-17 20:44:01.653318483 +0000
|
||||||
|
@@ -96,6 +96,14 @@
|
||||||
|
</extensions>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
+ <groupId>org.apache.felix</groupId><artifactId>maven-bundle-plugin</artifactId>
|
||||||
|
+ <executions><execution><id>bundle-manifest</id><phase>process-classes</phase><goals><goal>manifest</goal></goals></execution></executions>
|
||||||
|
+ <configuration>
|
||||||
|
+ <manifestLocation>${project.build.directory}/osgi</manifestLocation>
|
||||||
|
+ <instructions><Bundle-SymbolicName>org.antlr.runtime</Bundle-SymbolicName><Import-Package>!org.antlr.stringtemplate,*</Import-Package></instructions>
|
||||||
|
+ </configuration>
|
||||||
|
+ </plugin>
|
||||||
|
+ <plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.0.2</version>
|
||||||
|
<configuration>
|
||||||
|
@@ -103,7 +110,12 @@
|
||||||
|
<target>jsr14</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
-
|
||||||
|
+ <plugin>
|
||||||
|
+ <groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId>
|
||||||
|
+ <configuration>
|
||||||
|
+ <archive><manifestFile>${project.build.directory}/osgi/MANIFEST.MF</manifestFile></archive>
|
||||||
|
+ </configuration>
|
||||||
|
+ </plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
Loading…
x
Reference in New Issue
Block a user