Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction classes start #5

Open
wants to merge 5 commits into
base: IntroductionClassesStart
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .idea/PRA2018-2019.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 40 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,49 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>Pracownia</groupId>
<artifactId>Pracownia_Programowania</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.artifactId}-${project.version}</finalName>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
pracownia.introduction.HelloWorld
</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
9 changes: 7 additions & 2 deletions src/main/java/pracownia/introduction/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package pracownia.introduction;

import org.apache.log4j.Logger;

public class HelloWorld {

public static void main(String [ ] args) {
System.out.println("Hello World");
final static Logger log = Logger.getLogger(HelloWorld.class);
public static void main(String [] args) {

System.out.println("Hello World zmiana v2 ");
log.info("message");
}
}
16 changes: 16 additions & 0 deletions src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Root logger option
log4j.rootLogger=DEBUG, stdout, file

# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=log.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
Binary file added target/Pracownia_Programowania-1.0-SNAPSHOT.jar
Binary file not shown.
16 changes: 16 additions & 0 deletions target/classes/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Root logger option
log4j.rootLogger=DEBUG, stdout, file

# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=log.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
Binary file added target/classes/pic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
5 changes: 5 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Fri Oct 23 11:43:42 CEST 2020
groupId=Pracownia
artifactId=Pracownia_Programowania
version=1.0-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pracownia\introduction\HelloWorld.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\User\IdeaProjects\PRA2018-2019\src\main\java\pracownia\introduction\HelloWorld.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pracownia\introduction\MainTest.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\User\IdeaProjects\PRA2018-2019\src\test\java\pracownia\introduction\MainTest.java
62 changes: 62 additions & 0 deletions target/surefire-reports/TEST-pracownia.introduction.MainTest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite tests="0" failures="0" name="pracownia.introduction.MainTest" time="0" errors="0" skipped="0">
<properties>
<property name="idea.version" value="2020.2.3"/>
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
<property name="java.vm.version" value="15+36-1562"/>
<property name="sun.boot.library.path" value="C:\Users\User\.jdks\openjdk-15\bin"/>
<property name="maven.multiModuleProjectDirectory" value="C:\Users\User\IdeaProjects\PRA2018-2019"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="java.vendor.url" value="https://java.oracle.com/"/>
<property name="guice.disable.misplaced.annotation.check" value="true"/>
<property name="path.separator" value=";"/>
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
<property name="sun.os.patch.level" value=""/>
<property name="user.script" value=""/>
<property name="user.country" value="PL"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="C:\Users\User\IdeaProjects\PRA2018-2019"/>
<property name="java.vm.compressedOopsMode" value="Zero based"/>
<property name="java.runtime.version" value="15+36-1562"/>
<property name="os.arch" value="amd64"/>
<property name="java.io.tmpdir" value="C:\Users\User\AppData\Local\Temp\"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="user.variant" value=""/>
<property name="os.name" value="Windows 10"/>
<property name="maven.ext.class.path" value="D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven-event-listener.jar"/>
<property name="classworlds.conf" value="D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven3\bin\m2.conf"/>
<property name="sun.jnu.encoding" value="Cp1250"/>
<property name="java.library.path" value="C:\Users\User\.jdks\openjdk-15\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk-13.0.2\bin;C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\Git\cmd;C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Windows\System32;C:\Users\User\AppData\Local\Programs\Python\Python38-32;C:\Program Files\heroku\bin;C:\Users\User\AppData\Local\Programs\Microsoft VS Code\bin;D:\IntelliJ IDEA 2020.2.3\bin;;C:\Program Files\Java\jdk-13.0.2\bin;D:\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin;;."/>
<property name="maven.conf" value="D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven3/conf"/>
<property name="jdk.debug" value="release"/>
<property name="java.class.version" value="59.0"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="os.version" value="10.0"/>
<property name="user.home" value="C:\Users\User"/>
<property name="user.timezone" value="Europe/Warsaw"/>
<property name="file.encoding" value="UTF-8"/>
<property name="java.specification.version" value="15"/>
<property name="user.name" value="User"/>
<property name="java.class.path" value="D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven3\boot\plexus-classworlds.license"/>
<property name="java.vm.specification.version" value="15"/>
<property name="sun.arch.data.model" value="64"/>
<property name="sun.java.command" value="org.codehaus.classworlds.Launcher -Didea.version=2020.2.3 install"/>
<property name="java.home" value="C:\Users\User\.jdks\openjdk-15"/>
<property name="user.language" value="pl"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.version" value="15"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="maven.home" value="D:\IntelliJ IDEA 2020.2.3\plugins\maven\lib\maven3"/>
<property name="file.separator" value="\"/>
<property name="java.version.date" value="2020-09-15"/>
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.cpu.isalist" value="amd64"/>
</properties>
</testsuite>
4 changes: 4 additions & 0 deletions target/surefire-reports/pracownia.introduction.MainTest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: pracownia.introduction.MainTest
-------------------------------------------------------------------------------
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Binary file not shown.