Skip to content

Commit

Permalink
Merge pull request #286 from pahnjy/develop
Browse files Browse the repository at this point in the history
sonarqube 설정 파일 수정 #285
  • Loading branch information
pahnjy authored Dec 6, 2016
2 parents ec4bf1c + 40867f9 commit 1f2d433
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ public class DefaultSession implements Session {
*/
private String id;

public DefaultSession(String id) {
this.id = id;
}

/**
* The sessionData is pair of key, value.
*/
Expand All @@ -59,6 +55,20 @@ public DefaultSession(String id) {

private Long calculateTime;

public DefaultSession(String id) {
this.id = id;
}

public DefaultSession() {
id = UUID.randomUUID().toString();
sessionData = new HashMap<>();
}

public DefaultSession(String id, Map<String, String> sessionData) {
this.id = id;
this.sessionData = sessionData;
}

public DefaultSession(String id, Map<String, String> sessionData, String createDate, Date mongoTime , Long calculateTime) {
this.id = id;
this.sessionData = sessionData;
Expand All @@ -77,16 +87,6 @@ public void setCreateDate(String createDate) {
this.createDate = createDate;
}

public DefaultSession() {
id = UUID.randomUUID().toString();
sessionData = new HashMap<>();
}

public DefaultSession(String id, Map<String, String> sessionData) {
this.id = id;
this.sessionData = sessionData;
}

@Override
public Long getCalculateTime() {
return calculateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void name() throws Exception {

@Test
public void dbTime(){
String time = "583bc66ecf8b437a86b83375";
String time = "583e7935ab3897ffc529b813";
String hexTime = time.substring(0,8);
long date = Long.parseLong(hexTime,16);
System.out.println(new SimpleDateFormat("yyyy-mm-dd HH-mm:ss").format(new Date(date*1000)));
Expand Down
30 changes: 25 additions & 5 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
sonar.projectKey=icmbs:so
sonar.projectKey=SO
# this is the name displayed in the SonarQube UI
sonar.projectName=so
sonar.projectVersion=2.0.1
sonar.projectName=ICBMS SO
sonar.projectVersion=2.0.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=.

sonar.sources=src

# List of the module identifiers
sonar.modules=so-bizcontext, so-compositevirtualobject, so-contextinformation, so-contextmodel, so-creator, so-device, so-domain, so-profile, so-scheduler, so-service, so-servicemodel, so-util, so-virtualobject


# Properties can obviously be overriden for
# each module - just prefix them with the module ID
so-bizcontext.sonar.projectName=bizcontext
so-compositevirtualobject.sonar.projectName=compositevirtualobject
so-contextinformation.sonar.projectName=contextinformation
so-contextmodel.sonar.projectName=contextmodel
so-creator.sonar.projectName=creator
so-device.sonar.projectName=device
so-domain.sonar.projectName=domain
so-profile.sonar.projectName=profile
so-scheduler.sonar.projectName=scheduler
so-service.sonar.projectName=service
so-util.sonar.projectName=util
so-servicemodel.sonar.projectName=servicemodel
so-virtualobject.sonar.virtualobject=servicemodel

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit 1f2d433

Please sign in to comment.