108a0c20eSJorgen Austvik<?xml version="1.0" encoding="UTF-8"?> 218446c8aSKnut Anders Hatlen<!-- 318446c8aSKnut Anders Hatlen 418446c8aSKnut Anders HatlenCDDL HEADER START 518446c8aSKnut Anders Hatlen 618446c8aSKnut Anders HatlenThe contents of this file are subject to the terms of the 718446c8aSKnut Anders HatlenCommon Development and Distribution License (the "License"). 818446c8aSKnut Anders HatlenYou may not use this file except in compliance with the License. 918446c8aSKnut Anders Hatlen 1018446c8aSKnut Anders HatlenSee LICENSE.txt included in this distribution for the specific 1118446c8aSKnut Anders Hatlenlanguage governing permissions and limitations under the License. 1218446c8aSKnut Anders Hatlen 1318446c8aSKnut Anders HatlenWhen distributing Covered Code, include this CDDL HEADER in each 1418446c8aSKnut Anders Hatlenfile and include the License file at LICENSE.txt. 1518446c8aSKnut Anders HatlenIf applicable, add the following below this CDDL HEADER, with the 1618446c8aSKnut Anders Hatlenfields enclosed by brackets "[]" replaced with your own identifying 1718446c8aSKnut Anders Hatleninformation: Portions Copyright [yyyy] [name of copyright owner] 1818446c8aSKnut Anders Hatlen 1918446c8aSKnut Anders HatlenCDDL HEADER END 2018446c8aSKnut Anders Hatlen 21b40c46f4SLubos KoscoCopyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. 22431a6d7cSChris FrairePortions Copyright (c) 2017-2018, Chris Fraire <cfraire@me.com>. 2318446c8aSKnut Anders Hatlen 2418446c8aSKnut Anders Hatlen--> 2508a0c20eSJorgen Austvik<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2608a0c20eSJorgen Austvik xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 2708a0c20eSJorgen Austvik <modelVersion>4.0.0</modelVersion> 2808a0c20eSJorgen Austvik <groupId>org.opensolaris.opengrok</groupId> 29*6ed99b2dSVladimir Kotal <artifactId>opengrok</artifactId> 3008a0c20eSJorgen Austvik <packaging>jar</packaging> 31*6ed99b2dSVladimir Kotal <version>1.1-rc1006</version> 3208a0c20eSJorgen Austvik <name>OpenGrok Indexer</name> 3308a0c20eSJorgen Austvik 3408a0c20eSJorgen Austvik <parent> 3508a0c20eSJorgen Austvik <groupId>org.opensolaris.opengrok</groupId> 36*6ed99b2dSVladimir Kotal <artifactId>opengrok-top</artifactId> 37*6ed99b2dSVladimir Kotal <version>1.1-rc1006</version> 3808a0c20eSJorgen Austvik </parent> 3908a0c20eSJorgen Austvik 4008a0c20eSJorgen Austvik <build> 4108a0c20eSJorgen Austvik <sourceDirectory>../src</sourceDirectory> 4208a0c20eSJorgen Austvik <testSourceDirectory>../test</testSourceDirectory> 4308a0c20eSJorgen Austvik 448a75af3fSLubos Kosco <resources> 458a75af3fSLubos Kosco <resource> 46aa4907e2SLubos Kosco <targetPath>org/opensolaris/opengrok/analysis/sql/</targetPath> 478a75af3fSLubos Kosco <directory>../src/org/opensolaris/opengrok/analysis/sql/</directory> 483ddd2069SKnut Anders Hatlen <includes> 493ddd2069SKnut Anders Hatlen <include>*.dat</include> 503ddd2069SKnut Anders Hatlen </includes> 518a75af3fSLubos Kosco </resource> 528a75af3fSLubos Kosco <resource> 53c21742b7SBradley Baetz <targetPath>org/opensolaris/opengrok/analysis/vb/</targetPath> 54c21742b7SBradley Baetz <directory>../src/org/opensolaris/opengrok/analysis/vb/</directory> 55c21742b7SBradley Baetz <includes> 56c21742b7SBradley Baetz <include>*.dat</include> 57c21742b7SBradley Baetz </includes> 58c21742b7SBradley Baetz </resource> 59c21742b7SBradley Baetz <resource> 60aa4907e2SLubos Kosco <targetPath>org/opensolaris/opengrok/index/</targetPath> 61aa4907e2SLubos Kosco <directory>../src/org/opensolaris/opengrok/index/</directory> 62bdcdf76eSLubos Kosco <excludes> 63bdcdf76eSLubos Kosco <exclude>*.java</exclude> 64bdcdf76eSLubos Kosco </excludes> 658a75af3fSLubos Kosco </resource> 66aa4907e2SLubos Kosco <resource> 67aa4907e2SLubos Kosco <targetPath>org/opensolaris/opengrok/history/</targetPath> 68aa4907e2SLubos Kosco <directory>../src/org/opensolaris/opengrok/history/</directory> 69aa4907e2SLubos Kosco <excludes> 70aa4907e2SLubos Kosco <exclude>*.java</exclude> 71aa4907e2SLubos Kosco <exclude>*.html</exclude> 72aa4907e2SLubos Kosco </excludes> 73aa4907e2SLubos Kosco </resource> 748a75af3fSLubos Kosco </resources> 758a75af3fSLubos Kosco 76aa4907e2SLubos Kosco <testResources> 77aa4907e2SLubos Kosco <testResource> 78aa4907e2SLubos Kosco <targetPath>org/opensolaris/opengrok/history/</targetPath> 79aa4907e2SLubos Kosco <directory>../test/org/opensolaris/opengrok/history/</directory> 80bdcdf76eSLubos Kosco <excludes> 81bdcdf76eSLubos Kosco <exclude>*.java</exclude> 82bdcdf76eSLubos Kosco </excludes> 832563573fSGustavo Lopes </testResource> 842563573fSGustavo Lopes <testResource> 85a6dc5de0SC Fraire <targetPath>org/opensolaris/opengrok/analysis/</targetPath> 86a6dc5de0SC Fraire <directory>../test/org/opensolaris/opengrok/analysis/</directory> 87a6dc5de0SC Fraire <excludes> 88a6dc5de0SC Fraire <exclude>*.java</exclude> 89a6dc5de0SC Fraire </excludes> 90a6dc5de0SC Fraire </testResource> 91a6dc5de0SC Fraire <testResource> 92b2a7147bSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/ada/</targetPath> 93b2a7147bSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/ada/</directory> 94b2a7147bSChris Fraire <excludes> 95b2a7147bSChris Fraire <exclude>*.java</exclude> 96b2a7147bSChris Fraire </excludes> 97b2a7147bSChris Fraire </testResource> 98b2a7147bSChris Fraire <testResource> 992453f15eSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/archive/</targetPath> 1002453f15eSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/archive/</directory> 1012453f15eSChris Fraire <excludes> 1022453f15eSChris Fraire <exclude>*.java</exclude> 1032453f15eSChris Fraire </excludes> 1042453f15eSChris Fraire </testResource> 1052453f15eSChris Fraire <testResource> 1065e4231e9SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/clojure/</targetPath> 1075e4231e9SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/clojure/</directory> 1085e4231e9SChris Fraire <excludes> 1095e4231e9SChris Fraire <exclude>*.java</exclude> 1105e4231e9SChris Fraire </excludes> 1115e4231e9SChris Fraire </testResource> 1125e4231e9SChris Fraire <testResource> 113ac3a6424SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/csharp/</targetPath> 114ac3a6424SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/csharp/</directory> 115ac3a6424SChris Fraire <excludes> 116ac3a6424SChris Fraire <exclude>*.java</exclude> 117ac3a6424SChris Fraire </excludes> 118ac3a6424SChris Fraire </testResource> 119ac3a6424SChris Fraire <testResource> 120b2a7147bSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/document/</targetPath> 121b2a7147bSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/document/</directory> 122b2a7147bSChris Fraire <excludes> 123b2a7147bSChris Fraire <exclude>*.java</exclude> 124b2a7147bSChris Fraire </excludes> 125b2a7147bSChris Fraire </testResource> 126b2a7147bSChris Fraire <testResource> 1277b376333SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/eiffel/</targetPath> 1287b376333SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/eiffel/</directory> 1297b376333SChris Fraire <excludes> 1307b376333SChris Fraire <exclude>*.java</exclude> 1317b376333SChris Fraire </excludes> 1327b376333SChris Fraire </testResource> 1337b376333SChris Fraire <testResource> 1346a641987SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/erlang/</targetPath> 1356a641987SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/erlang/</directory> 1366a641987SChris Fraire <excludes> 1376a641987SChris Fraire <exclude>*.java</exclude> 1386a641987SChris Fraire </excludes> 1396a641987SChris Fraire </testResource> 1406a641987SChris Fraire <testResource> 141132be2b7SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/executables/</targetPath> 142132be2b7SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/executables/</directory> 143132be2b7SChris Fraire <excludes> 144132be2b7SChris Fraire <exclude>*.java</exclude> 145132be2b7SChris Fraire </excludes> 146132be2b7SChris Fraire </testResource> 147132be2b7SChris Fraire <testResource> 14806a0e69fSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/fortran/</targetPath> 14906a0e69fSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/fortran/</directory> 15006a0e69fSChris Fraire <excludes> 15106a0e69fSChris Fraire <exclude>*.java</exclude> 15206a0e69fSChris Fraire </excludes> 15306a0e69fSChris Fraire </testResource> 15406a0e69fSChris Fraire <testResource> 155f85a4f13SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/golang/</targetPath> 156f85a4f13SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/golang/</directory> 157f85a4f13SChris Fraire <excludes> 158f85a4f13SChris Fraire <exclude>*.java</exclude> 159f85a4f13SChris Fraire </excludes> 160f85a4f13SChris Fraire </testResource> 161f85a4f13SChris Fraire <testResource> 162ec8f2452SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/lua/</targetPath> 163ec8f2452SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/lua/</directory> 164ec8f2452SChris Fraire <excludes> 165ec8f2452SChris Fraire <exclude>*.java</exclude> 166ec8f2452SChris Fraire </excludes> 167ec8f2452SChris Fraire </testResource> 168ec8f2452SChris Fraire <testResource> 1698c43df08SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/java/</targetPath> 1708c43df08SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/java/</directory> 1718c43df08SChris Fraire <excludes> 1728c43df08SChris Fraire <exclude>*.java</exclude> 1738c43df08SChris Fraire </excludes> 1748c43df08SChris Fraire </testResource> 1758c43df08SChris Fraire <testResource> 176a20bb0a1SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/javascript/</targetPath> 177a20bb0a1SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/javascript/</directory> 178a20bb0a1SChris Fraire <excludes> 179a20bb0a1SChris Fraire <exclude>*.java</exclude> 180a20bb0a1SChris Fraire </excludes> 181a20bb0a1SChris Fraire </testResource> 182a20bb0a1SChris Fraire <testResource> 183a2b7fb37SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/json/</targetPath> 184a2b7fb37SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/json/</directory> 185a2b7fb37SChris Fraire <excludes> 186a2b7fb37SChris Fraire <exclude>*.java</exclude> 187a2b7fb37SChris Fraire </excludes> 188a2b7fb37SChris Fraire </testResource> 189a2b7fb37SChris Fraire <testResource> 190ef48b424SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/perl/</targetPath> 191ef48b424SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/perl/</directory> 192ef48b424SChris Fraire <excludes> 193ef48b424SChris Fraire <exclude>*.java</exclude> 194ef48b424SChris Fraire </excludes> 195ef48b424SChris Fraire </testResource> 196ef48b424SChris Fraire <testResource> 1972563573fSGustavo Lopes <targetPath>org/opensolaris/opengrok/analysis/php/</targetPath> 1982563573fSGustavo Lopes <directory>../test/org/opensolaris/opengrok/analysis/php/</directory> 199bdcdf76eSLubos Kosco <excludes> 200bdcdf76eSLubos Kosco <exclude>*.java</exclude> 201bdcdf76eSLubos Kosco </excludes> 202aa4907e2SLubos Kosco </testResource> 2036340305eSHarry Pan <testResource> 2044df1b207SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/powershell/</targetPath> 2054df1b207SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/powershell/</directory> 2064df1b207SChris Fraire <excludes> 2074df1b207SChris Fraire <exclude>*.java</exclude> 2084df1b207SChris Fraire </excludes> 2094df1b207SChris Fraire </testResource> 2104df1b207SChris Fraire <testResource> 211108bd6e4SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/python/</targetPath> 212108bd6e4SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/python/</directory> 213108bd6e4SChris Fraire <excludes> 214108bd6e4SChris Fraire <exclude>*.java</exclude> 215108bd6e4SChris Fraire </excludes> 216108bd6e4SChris Fraire </testResource> 217108bd6e4SChris Fraire <testResource> 218414fc60eSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/ruby/</targetPath> 219414fc60eSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/ruby/</directory> 220414fc60eSChris Fraire <excludes> 221414fc60eSChris Fraire <exclude>*.java</exclude> 222414fc60eSChris Fraire </excludes> 223414fc60eSChris Fraire </testResource> 224414fc60eSChris Fraire <testResource> 2259a6d010bSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/rust/</targetPath> 2269a6d010bSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/rust/</directory> 2279a6d010bSChris Fraire <excludes> 2289a6d010bSChris Fraire <exclude>*.java</exclude> 2299a6d010bSChris Fraire </excludes> 2309a6d010bSChris Fraire </testResource> 2319a6d010bSChris Fraire <testResource> 232a6a5de83SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/scala/</targetPath> 233a6a5de83SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/scala/</directory> 234a6a5de83SChris Fraire <excludes> 235a6a5de83SChris Fraire <exclude>*.java</exclude> 236a6a5de83SChris Fraire </excludes> 237a6a5de83SChris Fraire </testResource> 238a6a5de83SChris Fraire <testResource> 239c0b8d95fSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/sql/</targetPath> 240c0b8d95fSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/sql/</directory> 241c0b8d95fSChris Fraire <excludes> 242c0b8d95fSChris Fraire <exclude>*.java</exclude> 243c0b8d95fSChris Fraire </excludes> 244c0b8d95fSChris Fraire </testResource> 245c0b8d95fSChris Fraire <testResource> 246e18407ffSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/tcl/</targetPath> 247e18407ffSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/tcl/</directory> 248e18407ffSChris Fraire <excludes> 249e18407ffSChris Fraire <exclude>*.java</exclude> 250e18407ffSChris Fraire </excludes> 251e18407ffSChris Fraire </testResource> 252e18407ffSChris Fraire <testResource> 2536340305eSHarry Pan <targetPath>org/opensolaris/opengrok/analysis/haskell/</targetPath> 2546340305eSHarry Pan <directory>../test/org/opensolaris/opengrok/analysis/haskell/</directory> 255bdcdf76eSLubos Kosco <excludes> 256bdcdf76eSLubos Kosco <exclude>*.java</exclude> 257bdcdf76eSLubos Kosco </excludes> 258bdcdf76eSLubos Kosco </testResource> 259bdcdf76eSLubos Kosco <testResource> 260bdcdf76eSLubos Kosco <targetPath>org/opensolaris/opengrok/analysis/java/</targetPath> 261bdcdf76eSLubos Kosco <directory>../test/org/opensolaris/opengrok/analysis/java/</directory> 262bdcdf76eSLubos Kosco <excludes> 263bdcdf76eSLubos Kosco <exclude>*.java</exclude> 264bdcdf76eSLubos Kosco </excludes> 2656340305eSHarry Pan </testResource> 266c186d336SChris Fraire <testResource> 267c186d336SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/sh/</targetPath> 268c186d336SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/sh/</directory> 269c186d336SChris Fraire <excludes> 270c186d336SChris Fraire <exclude>*.java</exclude> 271c186d336SChris Fraire </excludes> 272c186d336SChris Fraire </testResource> 273e349eecaSChris Fraire <testResource> 2744e069556SChris Fraire <targetPath>org/opensolaris/opengrok/analysis/swift/</targetPath> 2754e069556SChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/swift/</directory> 2764e069556SChris Fraire <excludes> 2774e069556SChris Fraire <exclude>*.java</exclude> 2784e069556SChris Fraire </excludes> 2794e069556SChris Fraire </testResource> 2804e069556SChris Fraire <testResource> 281e349eecaSChris Fraire <targetPath>org/opensolaris/opengrok/analysis/vb/</targetPath> 282e349eecaSChris Fraire <directory>../test/org/opensolaris/opengrok/analysis/vb/</directory> 283e349eecaSChris Fraire <excludes> 284e349eecaSChris Fraire <exclude>*.java</exclude> 285e349eecaSChris Fraire </excludes> 286e349eecaSChris Fraire </testResource> 287aa4907e2SLubos Kosco </testResources> 288aa4907e2SLubos Kosco 28908a0c20eSJorgen Austvik <plugins> 290e0f7ec00SKnut Anders Hatlen 291e0f7ec00SKnut Anders Hatlen <plugin> 292e0f7ec00SKnut Anders Hatlen <groupId>org.apache.maven.plugins</groupId> 293e0f7ec00SKnut Anders Hatlen <artifactId>maven-jar-plugin</artifactId> 2949f619df4SLubos Kosco <version>3.0.2</version> 295e0f7ec00SKnut Anders Hatlen <configuration> 296e0f7ec00SKnut Anders Hatlen <archive> 297e0f7ec00SKnut Anders Hatlen <manifest> 298e0f7ec00SKnut Anders Hatlen <mainClass>org.opensolaris.opengrok.index.Indexer</mainClass> 299e0f7ec00SKnut Anders Hatlen <addClasspath>true</addClasspath> 300e0f7ec00SKnut Anders Hatlen <classpathPrefix>lib/</classpathPrefix> 301e0f7ec00SKnut Anders Hatlen </manifest> 302e0f7ec00SKnut Anders Hatlen <manifestEntries> 303e0f7ec00SKnut Anders Hatlen </manifestEntries> 304e0f7ec00SKnut Anders Hatlen </archive> 305e0f7ec00SKnut Anders Hatlen </configuration> 306e0f7ec00SKnut Anders Hatlen </plugin> 307e0f7ec00SKnut Anders Hatlen 30808a0c20eSJorgen Austvik <plugin> 30908a0c20eSJorgen Austvik <groupId>de.jflex</groupId> 31045ec3841SLubos Kosco <artifactId>jflex-maven-plugin</artifactId> 3114e6518cbSLubos Kosco <version>1.6.1</version> 31208a0c20eSJorgen Austvik <executions> 31308a0c20eSJorgen Austvik <execution> 31408a0c20eSJorgen Austvik <goals> 31508a0c20eSJorgen Austvik <goal>generate</goal> 31608a0c20eSJorgen Austvik </goals> 31708a0c20eSJorgen Austvik <configuration> 31808a0c20eSJorgen Austvik <lexDefinitions> 31958f88ff1SChris Fraire <lexDefinition>${basedir}/target/jflex-sources</lexDefinition> 32008a0c20eSJorgen Austvik </lexDefinitions> 32145ec3841SLubos Kosco <inputStreamCtor>false</inputStreamCtor> 32208a0c20eSJorgen Austvik </configuration> 32308a0c20eSJorgen Austvik </execution> 32408a0c20eSJorgen Austvik </executions> 32508a0c20eSJorgen Austvik </plugin> 3269182cd30SLubos Kosco 3279182cd30SLubos Kosco <!-- add the same fix as is in build.xml to patch jflex generated files to stop increasing buffer beyond token size that lucene accepts 328ff70ede8SLubos Kosco https://github.com/OpenGrok/OpenGrok/issues/1170 make parsers stop producing tokens > 32766 chars 329ba14bbd8SLubos Kosco at least for PlainFullTokenizer, PlainSymbolTokenizer, JavaScriptSymbolTokenizer, JavaSymbolTokenizer 3309182cd30SLubos Kosco use below 3319182cd30SLubos Kosco 3329182cd30SLubos Kosco DON'T forget to SYNC this with ../build.xml !!! 3339182cd30SLubos Kosco 3349182cd30SLubos Kosco --> 3359182cd30SLubos Kosco 336ff70ede8SLubos Kosco <plugin> 337ff70ede8SLubos Kosco <groupId>com.google.code.maven-replacer-plugin</groupId> 338ff70ede8SLubos Kosco <artifactId>replacer</artifactId> 3399182cd30SLubos Kosco <version>1.5.3</version> 340ff70ede8SLubos Kosco <executions> 341ff70ede8SLubos Kosco <execution> 3429182cd30SLubos Kosco <phase>generate-sources</phase> 343ff70ede8SLubos Kosco <goals> 344ff70ede8SLubos Kosco <goal>replace</goal> 345ff70ede8SLubos Kosco </goals> 346ff70ede8SLubos Kosco </execution> 347ff70ede8SLubos Kosco </executions> 348ff70ede8SLubos Kosco <configuration> 3499182cd30SLubos Kosco <filesToInclude> 3509182cd30SLubos Kosco ${basedir}/target/generated-sources/jflex/org/opensolaris/opengrok/analysis/java/JavaSymbolTokenizer.java,${basedir}/target/generated-sources/jflex/org/opensolaris/opengrok/analysis/javascript/JavaScriptSymbolTokenizer.java,${basedir}/target/generated-sources/jflex/org/opensolaris/opengrok/analysis/plain/PlainFullTokenizer.java,${basedir}/target/generated-sources/jflex/org/opensolaris/opengrok/analysis/plain/PlainSymbolTokenizer.java 3519182cd30SLubos Kosco </filesToInclude> 3529182cd30SLubos Kosco <replacements> 3539182cd30SLubos Kosco <replacement> 3549182cd30SLubos Kosco <token>private static final int ZZ_BUFFERSIZE =</token> 3559182cd30SLubos Kosco <value>private int ZZ_BUFFERSIZE =</value> 3569182cd30SLubos Kosco </replacement> 3579182cd30SLubos Kosco <replacement> 3589182cd30SLubos Kosco <token>int requested = zzBuffer\.length - zzEndRead;</token> 3599182cd30SLubos Kosco <value>int requested = zzBuffer.length - zzEndRead - zzFinalHighSurrogate;</value> 3609182cd30SLubos Kosco </replacement> 3619182cd30SLubos Kosco <replacement> 3629182cd30SLubos Kosco <token>(zzFinalHighSurrogate = 1;)(\r?\n)</token> 3639182cd30SLubos Kosco <value>$1$2 if (numRead == 1) { return true; }$2</value> 3649182cd30SLubos Kosco </replacement> 3659182cd30SLubos Kosco 3669182cd30SLubos Kosco <replacement> 3679182cd30SLubos Kosco <token>[ \t]*/\* is the buffer big enough\? \*/\s+if \(zzCurrentPos >= zzBuffer\.length.*?\}[ \t]*\r?\n</token> 3689182cd30SLubos Kosco <value></value> 3699182cd30SLubos Kosco </replacement> 3709182cd30SLubos Kosco <!-- also revert 0 character check that got in with 1.6.1 : https://github.com/jflex-de/jflex/blob/master/jflex/examples/zero-reader/README.md --> 3719182cd30SLubos Kosco <replacement> 3729182cd30SLubos Kosco <token>[ \t]*/\* not supposed to occur according to specification of java\.io\.Reader \*/\s+if \(numRead == 0.*?\}[ \t]*\r?\n</token> 3739182cd30SLubos Kosco <value></value> 3749182cd30SLubos Kosco </replacement> 3759182cd30SLubos Kosco 3769182cd30SLubos Kosco </replacements> 377ff70ede8SLubos Kosco <regexFlags> 3789182cd30SLubos Kosco <regexFlag>DOTALL</regexFlag> 379ff70ede8SLubos Kosco </regexFlags> 380ff70ede8SLubos Kosco </configuration> 3819182cd30SLubos Kosco </plugin> 3822e3d7e6eSJorgen Austvik 3832e3d7e6eSJorgen Austvik <plugin> 38445ec3841SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 3852e3d7e6eSJorgen Austvik <artifactId>maven-antrun-plugin</artifactId> 3869f619df4SLubos Kosco <version>1.8</version> 3872e3d7e6eSJorgen Austvik <executions> 3882e3d7e6eSJorgen Austvik <execution> 38958f88ff1SChris Fraire <id>collect-lex-lexh</id> 39058f88ff1SChris Fraire <phase>initialize</phase> 39158f88ff1SChris Fraire <configuration> 39258f88ff1SChris Fraire <target> 39358f88ff1SChris Fraire <property name="src.dir" value="../src"/> 39458f88ff1SChris Fraire <property name="tgt.dir" value="${basedir}/target/jflex-sources"/> 39558f88ff1SChris Fraire <ant target="-collect-lex-lexh"/> 39658f88ff1SChris Fraire </target> 39758f88ff1SChris Fraire </configuration> 39858f88ff1SChris Fraire <goals> 39958f88ff1SChris Fraire <goal>run</goal> 40058f88ff1SChris Fraire </goals> 40158f88ff1SChris Fraire </execution> 40258f88ff1SChris Fraire <execution> 40358f88ff1SChris Fraire <id>update-build-info</id> 40418446c8aSKnut Anders Hatlen <phase>generate-resources</phase> 40518446c8aSKnut Anders Hatlen <configuration> 40618446c8aSKnut Anders Hatlen <target> 40745ec3841SLubos Kosco <property name="version" value="${project.version}"/> 40818446c8aSKnut Anders Hatlen <ant target="-update-build-info"/> 40918446c8aSKnut Anders Hatlen </target> 41018446c8aSKnut Anders Hatlen </configuration> 41118446c8aSKnut Anders Hatlen <goals> 41218446c8aSKnut Anders Hatlen <goal>run</goal> 41318446c8aSKnut Anders Hatlen </goals> 41418446c8aSKnut Anders Hatlen </execution> 41518446c8aSKnut Anders Hatlen <execution> 4162e3d7e6eSJorgen Austvik <id>build-config-files</id> 4172e3d7e6eSJorgen Austvik <phase>process-test-classes</phase> 4182e3d7e6eSJorgen Austvik <goals> 4192e3d7e6eSJorgen Austvik <goal>run</goal> 4202e3d7e6eSJorgen Austvik </goals> 4212e3d7e6eSJorgen Austvik <configuration> 42218446c8aSKnut Anders Hatlen <target unless="maven.test.skip"> 42318446c8aSKnut Anders Hatlen <ant target="-post-compile-test"/> 42418446c8aSKnut Anders Hatlen </target> 4252e3d7e6eSJorgen Austvik </configuration> 4262e3d7e6eSJorgen Austvik </execution> 4272e3d7e6eSJorgen Austvik </executions> 4282e3d7e6eSJorgen Austvik </plugin> 4292e3d7e6eSJorgen Austvik 430aa4907e2SLubos Kosco <plugin> 431aa4907e2SLubos Kosco <groupId>org.apache.maven.plugins</groupId> 432aa4907e2SLubos Kosco <artifactId>maven-surefire-plugin</artifactId> 433aa4907e2SLubos Kosco <configuration> 434aa4907e2SLubos Kosco <excludes> 435aa4907e2SLubos Kosco <!-- Test helper class with name that confuses surefire --> 436aa4907e2SLubos Kosco <exclude>**/TestRepository.java</exclude> 437aa4907e2SLubos Kosco </excludes> 438aa4907e2SLubos Kosco </configuration> 439aa4907e2SLubos Kosco </plugin> 440aa4907e2SLubos Kosco 441bc6c8375SVladimir Kotal <plugin> 442bc6c8375SVladimir Kotal <groupId>org.codehaus.mojo</groupId> 443bc6c8375SVladimir Kotal <artifactId>exec-maven-plugin</artifactId> 444bc6c8375SVladimir Kotal <version>1.6.0</version> 445bc6c8375SVladimir Kotal <executions> 446bc6c8375SVladimir Kotal <execution> 447bc6c8375SVladimir Kotal <phase>verify</phase> 448bc6c8375SVladimir Kotal <goals> 449bc6c8375SVladimir Kotal <goal>exec</goal> 450bc6c8375SVladimir Kotal </goals> 451bc6c8375SVladimir Kotal </execution> 452bc6c8375SVladimir Kotal </executions> 453bc6c8375SVladimir Kotal <configuration> 454bc6c8375SVladimir Kotal <executable>pep8</executable> 455bc6c8375SVladimir Kotal <arguments> 456bc6c8375SVladimir Kotal <argument>-v</argument> 457873a5de8SVladimir Kotal <argument>--exclude=filelock.py,test_command.py,test_commands.py</argument> 458bc6c8375SVladimir Kotal <argument>${project.basedir}/../tools/sync</argument> 459bc6c8375SVladimir Kotal </arguments> 460bc6c8375SVladimir Kotal </configuration> 461bc6c8375SVladimir Kotal </plugin> 462aa4907e2SLubos Kosco 46308a0c20eSJorgen Austvik </plugins> 46408a0c20eSJorgen Austvik </build> 46508a0c20eSJorgen Austvik 46608a0c20eSJorgen Austvik <dependencies> 46708a0c20eSJorgen Austvik <dependency> 46808a0c20eSJorgen Austvik <groupId>org.apache.bcel</groupId> 46908a0c20eSJorgen Austvik <artifactId>bcel</artifactId> 47008a0c20eSJorgen Austvik </dependency> 47108a0c20eSJorgen Austvik <dependency> 47208a0c20eSJorgen Austvik <groupId>org.apache.lucene</groupId> 47308a0c20eSJorgen Austvik <artifactId>lucene-core</artifactId> 47408a0c20eSJorgen Austvik </dependency> 47508a0c20eSJorgen Austvik <dependency> 47608a0c20eSJorgen Austvik <groupId>org.apache.lucene</groupId> 477c1f3e4e0SLubos Kosco <artifactId>lucene-analyzers-common</artifactId> 478c1f3e4e0SLubos Kosco </dependency> 479bdcdf76eSLubos Kosco <dependency> 480bdcdf76eSLubos Kosco <groupId>org.apache.lucene</groupId> 4810299007bSChris Fraire <artifactId>lucene-highlighter</artifactId> 4820299007bSChris Fraire </dependency> 4830299007bSChris Fraire <dependency> 4840299007bSChris Fraire <groupId>org.apache.lucene</groupId> 4850299007bSChris Fraire <artifactId>lucene-join</artifactId> 4860299007bSChris Fraire </dependency> 4870299007bSChris Fraire <dependency> 4880299007bSChris Fraire <groupId>org.apache.lucene</groupId> 4890299007bSChris Fraire <artifactId>lucene-memory</artifactId> 4900299007bSChris Fraire </dependency> 4910299007bSChris Fraire <dependency> 4920299007bSChris Fraire <groupId>org.apache.lucene</groupId> 4930299007bSChris Fraire <artifactId>lucene-queries</artifactId> 4940299007bSChris Fraire </dependency> 4950299007bSChris Fraire <dependency> 4960299007bSChris Fraire <groupId>org.apache.lucene</groupId> 497c1f3e4e0SLubos Kosco <artifactId>lucene-queryparser</artifactId> 498c1f3e4e0SLubos Kosco </dependency> 499bdcdf76eSLubos Kosco <dependency> 500bdcdf76eSLubos Kosco <groupId>org.apache.lucene</groupId> 501c1f3e4e0SLubos Kosco <artifactId>lucene-suggest</artifactId> 50208a0c20eSJorgen Austvik </dependency> 50308a0c20eSJorgen Austvik <dependency> 50408a0c20eSJorgen Austvik <groupId>javax.servlet</groupId> 50508a0c20eSJorgen Austvik <artifactId>servlet-api</artifactId> 50608a0c20eSJorgen Austvik </dependency> 50708a0c20eSJorgen Austvik <dependency> 5083519d3f5SLubos Kosco <groupId>com.googlecode.json-simple</groupId> 509b6245ac4SLubos Kosco <artifactId>json-simple</artifactId> 5103519d3f5SLubos Kosco </dependency> 5113519d3f5SLubos Kosco <dependency> 512381a9b85SJorgen Austvik <groupId>org.opensolaris.opengrok</groupId> 513381a9b85SJorgen Austvik <artifactId>jrcs</artifactId> 514381a9b85SJorgen Austvik <version>${project.version}</version> 51508a0c20eSJorgen Austvik </dependency> 51608a0c20eSJorgen Austvik <dependency> 51708a0c20eSJorgen Austvik <groupId>org.apache.ant</groupId> 51808a0c20eSJorgen Austvik <artifactId>ant</artifactId> 51908a0c20eSJorgen Austvik </dependency> 52008a0c20eSJorgen Austvik <dependency> 52108a0c20eSJorgen Austvik <groupId>junit</groupId> 52208a0c20eSJorgen Austvik <artifactId>junit</artifactId> 52308a0c20eSJorgen Austvik <scope>test</scope> 52408a0c20eSJorgen Austvik </dependency> 525aa4907e2SLubos Kosco 52608a0c20eSJorgen Austvik </dependencies> 52708a0c20eSJorgen Austvik 52808a0c20eSJorgen Austvik</project> 529