Skip to content

Commit

Permalink
Delete not necessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
palych-piter committed May 30, 2017
1 parent 3cbbc42 commit 5568dd5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 18 deletions.
24 changes: 20 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,22 @@ repositories {


dependencies {

compile project (":common")
//eliminate the :common project now since all method are in the excel2db class now
//compile project (":common")
compile 'ch.qos.logback:logback-classic:1.2.2'
compile 'javax.persistence:persistence-api:1.0.2'
compile ('org.springframework:spring-context:4.3.7.RELEASE'){
//exclude module: 'commons-logging' // force Spring to use jcl-over-slf4j bridge
exclude module: 'commons-logging' // force Spring to use jcl-over-slf4j bridge
}
compile 'org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE'
compile 'org.apache.poi:poi:3.15'
compile 'org.apache.poi:poi-ooxml:3.15'
compile 'org.postgresql:postgresql:42.0.0.jre7'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'

compile('junit:junit:4.12'){
exclude group: 'org.hamcrest'
}
compile 'org.hamcrest:hamcrest-library:1.3'
}


Expand All @@ -69,6 +73,18 @@ jar {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}


//filtering out test classes, only test suites should be run
test {
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'

//exclude certain classes to avoid double running
// - suites + test classes
exclude '**/InitInputFilesImplTest.class'
exclude '**/PopulateTablePostgresImplTest.class'
}

}


Expand Down
Empty file added log.txt
Empty file.
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
rootProject.name = 'Excel2DB'

include 'common'
18 changes: 9 additions & 9 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<logger name="deng" level="DEBUG"/>
<logger name="deng" level="DEBUG"/>

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>

</configuration>
7 changes: 3 additions & 4 deletions src/main/resources/spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

</bean>



<bean id="dbConnection" class="excel2db.service.impl.DBConnectionPostgresImpl"></bean>
<!-- This way it is possible to get values from a properties file nd use the values -->
<!-- as paramaters in the spring configuration -->
<!--<bean id="dbConnection" class="${dbConnectionImplenentation}"></bean>-->

<bean id="dbConnection" class="excel2db.service.impl.DBConnectionPostgresImpl"></bean>

<bean id="createTable" class="excel2db.service.impl.CreateTablePostgresImpl"></bean>

Expand All @@ -58,5 +58,4 @@

<bean id="applicationContextUtils" class="excel2db.ApplicationContextUtils"></bean>


</beans>
Binary file removed test.xls
Binary file not shown.

0 comments on commit 5568dd5

Please sign in to comment.