init refactoring exercise
This commit is contained in:
8
dev_ops/.idea/.gitignore
generated
vendored
Normal file
8
dev_ops/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
dev_ops/.idea/continious_integration.iml
generated
Normal file
9
dev_ops/.idea/continious_integration.iml
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
6
dev_ops/.idea/misc.xml
generated
Normal file
6
dev_ops/.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_23" default="true" project-jdk-name="openjdk-23" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
8
dev_ops/.idea/modules.xml
generated
Normal file
8
dev_ops/.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/continious_integration.iml" filepath="$PROJECT_DIR$/.idea/continious_integration.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
8
dev_ops/.idea/vcs.xml
generated
Normal file
8
dev_ops/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/fst-chat-app" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/fst-demo-app" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
8
dev_ops/gradle/.idea/.gitignore
generated
vendored
Normal file
8
dev_ops/gradle/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
dev_ops/gradle/.idea/gradle.iml
generated
Normal file
9
dev_ops/gradle/.idea/gradle.iml
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
6
dev_ops/gradle/.idea/misc.xml
generated
Normal file
6
dev_ops/gradle/.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_22" default="true" project-jdk-name="corretto-22" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
8
dev_ops/gradle/.idea/modules.xml
generated
Normal file
8
dev_ops/gradle/.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/gradle.iml" filepath="$PROJECT_DIR$/.idea/gradle.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
dev_ops/gradle/.idea/vcs.xml
generated
Normal file
6
dev_ops/gradle/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
BIN
dev_ops/gradle/uebung-01/.gradle/8.10.2/checksums/checksums.lock
Normal file
BIN
dev_ops/gradle/uebung-01/.gradle/8.10.2/checksums/checksums.lock
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
#Tue Nov 05 16:02:41 CET 2024
|
||||
gradle.version=8.10.2
|
27
dev_ops/gradle/uebung-01/build.gradle
Normal file
27
dev_ops/gradle/uebung-01/build.gradle
Normal file
@@ -0,0 +1,27 @@
|
||||
// Define an extra property for the correct code
|
||||
ext.correctCode = "1234"
|
||||
|
||||
// Task to save the code to a file
|
||||
task save {
|
||||
doLast {
|
||||
def code = correctCode
|
||||
file("code.txt").text = code
|
||||
println "Code wurde gespeichert!"
|
||||
}
|
||||
}
|
||||
|
||||
// Task to check the saved code, depends on the 'save' task
|
||||
task check() {
|
||||
doLast {
|
||||
def code = file("code.txt").text.trim()
|
||||
|
||||
if (code == correctCode)
|
||||
println "Ausgelesener Code ${code} ist korrekt."
|
||||
else
|
||||
throw new Exception("Fehler: Der Code ist inkorrekt.")
|
||||
}
|
||||
}
|
||||
|
||||
task unlock(dependsOn: check) {
|
||||
println "Das Schloss wurde geoeffnet."
|
||||
}
|
1
dev_ops/gradle/uebung-01/code.txt
Normal file
1
dev_ops/gradle/uebung-01/code.txt
Normal file
@@ -0,0 +1 @@
|
||||
1235
|
BIN
dev_ops/gradle/uebung-02/.gradle/8.10.2/checksums/checksums.lock
Normal file
BIN
dev_ops/gradle/uebung-02/.gradle/8.10.2/checksums/checksums.lock
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
#Tue Nov 05 15:48:22 CET 2024
|
||||
gradle.version=8.10.2
|
Binary file not shown.
BIN
dev_ops/gradle/uebung-02/.gradle/file-system.probe
Normal file
BIN
dev_ops/gradle/uebung-02/.gradle/file-system.probe
Normal file
Binary file not shown.
13
dev_ops/gradle/uebung-02/build.gradle
Normal file
13
dev_ops/gradle/uebung-02/build.gradle
Normal file
@@ -0,0 +1,13 @@
|
||||
plugins {
|
||||
id "de.undercouch.download" version "4.1.1"
|
||||
}
|
||||
|
||||
task download(type: Download) {
|
||||
src 'http://st.uni-trier.de/Gradle/Rezept.zip'
|
||||
dest buildDir
|
||||
onlyIfModified true
|
||||
}
|
||||
|
||||
task unzip(type: Copy, dependsOn: download) {
|
||||
|
||||
}
|
BIN
dev_ops/gradle/uebung-02/build/Rezept.zip
Normal file
BIN
dev_ops/gradle/uebung-02/build/Rezept.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user