Skip to content

Commit 4d7bf72

Browse files
committed
Updated gradle version
1 parent 2c59e74 commit 4d7bf72

20 files changed

+186
-43
lines changed

.classpath

-9
This file was deleted.

.gitignore

+72
Original file line numberDiff line numberDiff line change
@@ -1 +1,73 @@
11
/bin/
2+
### Example user template template
3+
### Example user template
4+
5+
# IntelliJ project files
6+
.idea
7+
out
8+
nbroject/
9+
10+
# Mobile Tools for Java (J2ME)
11+
# Package Files #
12+
*.jar
13+
!gradle-wrapper.jar
14+
15+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
16+
### NetBeans template
17+
build/
18+
nbbuild/
19+
dist/
20+
.nb-gradle/
21+
nbproject/
22+
### JetBrains template
23+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
24+
## Directory-based project format:
25+
# if you remove the above rule, at least ignore the following:
26+
27+
# User-specific stuff:
28+
# .idea/workspace.xml
29+
# .idea/tasks.xml
30+
# .idea/dictionaries
31+
32+
# Sensitive or high-churn files:
33+
# .idea/dataSources.ids
34+
# .idea/dataSources.xml
35+
# .idea/sqlDataSources.xml
36+
# .idea/dynamic.xml
37+
# .idea/uiDesigner.xml
38+
39+
# Gradle:
40+
# .idea/gradle.xml
41+
# .idea/libraries
42+
43+
# Mongo Explorer plugin:
44+
# .idea/mongoSettings.xml
45+
46+
## File-based project format:
47+
## Plugin-specific files:
48+
49+
# IntelliJ
50+
/out/
51+
52+
# mpeltonen/sbt-idea plugin
53+
# JIRA plugin
54+
# Crashlytics plugin (for Android Studio and IntelliJ)
55+
### Example user template template
56+
### Example user template
57+
58+
.DS_Store
59+
# Icon must end with two \r
60+
# Thumbnails
61+
# Files that might appear in the root of a volume
62+
# Directories potentially created on remote AFP share
63+
### Eclipse template
64+
.gradle
65+
# Eclipse Core
66+
# External tool builders
67+
# Locally stored "Eclipse launch configurations"
68+
# CDT-specific
69+
# JDT-specific (Eclipse Java Development Tools)
70+
# Java annotation processor (APT)
71+
# PDT-specific
72+
# sbteclipse plugin
73+
# TeXlipse plugin

.project

-18
This file was deleted.

.settings/org.eclipse.jdt.core.prefs

-11
This file was deleted.

.settings/org.eclipse.jdt.groovy.core.prefs

-2
This file was deleted.

build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apply plugin: 'java'
2+
3+
group 'com.astronlab.tut'
4+
version '1.0-SNAPSHOT'
5+
6+
sourceCompatibility = 1.8
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
compile 'org.codehaus.groovy:groovy-all:2.3.11'
14+
}

gradle/wrapper/gradle-wrapper.jar

57.8 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Whitespace-only changes.

gradlew.bat

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
17+
@if "%DEBUG%" == "" @echo off
18+
@rem ##########################################################################
19+
@rem
20+
@rem Gradle startup script for Windows
21+
@rem
22+
@rem ##########################################################################
23+
24+
@rem Set local scope for the variables with windows NT shell
25+
if "%OS%"=="Windows_NT" setlocal
26+
27+
set DIRNAME=%~dp0
28+
if "%DIRNAME%" == "" set DIRNAME=.
29+
set APP_BASE_NAME=%~n0
30+
set APP_HOME=%DIRNAME%
31+
32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
35+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37+
38+
@rem Find java.exe
39+
if defined JAVA_HOME goto findJavaFromJavaHome
40+
41+
set JAVA_EXE=java.exe
42+
%JAVA_EXE% -version >NUL 2>&1
43+
if "%ERRORLEVEL%" == "0" goto execute
44+
45+
echo.
46+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47+
echo.
48+
echo Please set the JAVA_HOME variable in your environment to match the
49+
echo location of your Java installation.
50+
51+
goto fail
52+
53+
:findJavaFromJavaHome
54+
set JAVA_HOME=%JAVA_HOME:"=%
55+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56+
57+
if exist "%JAVA_EXE%" goto execute
58+
59+
echo.
60+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61+
echo.
62+
echo Please set the JAVA_HOME variable in your environment to match the
63+
echo location of your Java installation.
64+
65+
goto fail
66+
67+
:execute
68+
@rem Setup the command line
69+
70+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71+
72+
73+
@rem Execute Gradle
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75+
76+
:end
77+
@rem End local scope for the variables with windows NT shell
78+
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
80+
:fail
81+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82+
rem the _cmd.exe /c_ return code!
83+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84+
exit /b 1
85+
86+
:mainEnd
87+
if "%OS%"=="Windows_NT" endlocal
88+
89+
:omega

regular_exp_groovy.png

646 KB
Loading

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'GroovyRegex'

src/tut/regex/groovy/basic/SummerySheetBasic.groovy renamed to src/main/java/tut/regex/groovy/basic/SummerySheetBasic.groovy

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ Basic regex meta-characters(literal)/ Boundary Matchers :
1616
\W : Non word characters
1717
\A : The beginning of the "input"
1818
\Z : End of "input"
19-
\G : The very first match must be at the beginning of the string and next match start exactly after the previous match without skipping characters between matches
19+
\G : The end of the previous match
20+
(The very first match must be at the beginning of the string and next match start exactly after the previous match without skipping characters between matches)
2021
ie:
2122
- /\Gl/ match 2 "l" from "llo" but not "hello"
2223
- /\Ga+/ match only first "aa" from "aabcaa" but /a+/ match both "aa" from "aabcaa"
2324
- For "abcde", split(/(?<=\G.{3})/) returns [abc, de] but split(/(?<=.{3})/) returns [abc, d, e]
25+
[Details explanation: https://www.bennadel.com/blog/2018-using-the-regular-expression-boundary-match-g-to-find-the-end-of-the-previous-match.htm ]
2426
2527
\b : Word-Boundary characters, starting|ending of alpha-numeric-underscore chars position
2628
\B : Not word-boundary char,

src/tut/regex/groovy/intermediate/SummerySheetIntermediate.groovy renamed to src/main/java/tut/regex/groovy/intermediate/SummerySheetIntermediate.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Character class intersection (common in set):
2828
Only match chars common in all sets
2929
Syntax: [set1 && set2 .. && setn]
3030
ie.
31-
[a && ma] : only match "a"
32-
[a-d && [^b-d]] : only match "a"
31+
[a&&ma] : only match "a"
32+
[a-d&&[^b-d]] : only match "a"
3333
3434
*/
3535
}

0 commit comments

Comments
 (0)