Skip to content

Commit d219b4c

Browse files
ahornaceVladimir Kotal
authored andcommitted
Move jflex sources to src/main/jflex
1 parent 5ea61d1 commit d219b4c

File tree

138 files changed

+381
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+381
-405
lines changed

opengrok-indexer/build.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1818
1919
CDDL HEADER END
2020
21-
Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
21+
Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2222
Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
2323
2424
-->
@@ -55,13 +55,6 @@ Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
5555

5656
<property name="git" value="git"/>
5757

58-
<target name="-collect-lex-lexh">
59-
<mkdir dir="${tgt.dir}"/>
60-
<copy todir="${tgt.dir}" flatten="true">
61-
<fileset dir="${src.dir}" includes="**/*.lex,**/*.lexh"/>
62-
</copy>
63-
</target>
64-
6558
<target name="-post-compile-test">
6659
<antcall target="-create-svn-repository"/>
6760

opengrok-indexer/pom.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ Portions Copyright (c) 2020-2020, Lubos Kosco <[email protected]>.
253253
<goal>generate</goal>
254254
</goals>
255255
<configuration>
256-
<lexDefinitions>
257-
<lexDefinition>${basedir}/target/jflex-sources</lexDefinition>
258-
</lexDefinitions>
259256
<encodingName>${project.build.sourceEncoding}</encodingName>
260257
</configuration>
261258
</execution>
@@ -366,20 +363,6 @@ Portions Copyright (c) 2020-2020, Lubos Kosco <[email protected]>.
366363
<artifactId>maven-antrun-plugin</artifactId>
367364
<version>1.8</version>
368365
<executions>
369-
<execution>
370-
<id>collect-lex-lexh</id>
371-
<phase>initialize</phase>
372-
<configuration>
373-
<target>
374-
<property name="src.dir" value="src/main/resources"/>
375-
<property name="tgt.dir" value="${basedir}/target/jflex-sources"/>
376-
<ant target="-collect-lex-lexh"/>
377-
</target>
378-
</configuration>
379-
<goals>
380-
<goal>run</goal>
381-
</goals>
382-
</execution>
383366
<execution>
384367
<id>build-config-files</id>
385368
<phase>process-test-classes</phase>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

opengrok-indexer/src/main/resources/analysis/ada/AdaSymbolTokenizer.lex renamed to opengrok-indexer/src/main/jflex/analysis/ada/AdaSymbolTokenizer.lex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved.
2222
* Portions Copyright (c) 2017-2019, Chris Fraire <[email protected]>.
2323
*/
2424

@@ -39,7 +39,7 @@ import org.opengrok.indexer.web.HtmlConsts;
3939
%ignorecase
4040
%int
4141
%char
42-
%include CommonLexer.lexh
42+
%include ../CommonLexer.lexh
4343
%{
4444
private String lastSymbol;
4545

@@ -111,7 +111,7 @@ import org.opengrok.indexer.web.HtmlConsts;
111111
int SCOMMENT() { return SCOMMENT; }
112112
%}
113113

114-
%include Common.lexh
115-
%include CommonURI.lexh
116-
%include CommonPath.lexh
114+
%include ../Common.lexh
115+
%include ../CommonURI.lexh
116+
%include ../CommonPath.lexh
117117
%include AdaProductions.lexh

0 commit comments

Comments
 (0)