Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
move to gradle
local file bugfix when file is truncated
update to recordins
  • Loading branch information
Philippe Schweitzer committed Apr 23, 2019
1 parent b129b9c commit 5c1bea2
Show file tree
Hide file tree
Showing 375 changed files with 40,705 additions and 39,262 deletions.
5 changes: 5 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
/UserManual.pptx
/build.xml
/manifest.mf
/gradle
gradlew*
.gradle
.idea
out
InSideLog-*
InSideLogTest-*
11 changes: 0 additions & 11 deletions .project

This file was deleted.

Empty file modified InSideLog.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions InsideLog.iml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENCE.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018 in'teractive
Copyright 2019 Blockchain Record'in Solutions

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Empty file modified LICENCE_Icons.txt
100644 → 100755
Empty file.
Empty file modified LICENCE_JSch.txt
100644 → 100755
Empty file.
Empty file modified LICENCE_Mozilla_Universal_charset_detector.txt
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions META-INF/MANIFEST.MF

This file was deleted.

6 changes: 3 additions & 3 deletions README.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Insidelog is a tool created by in'teractive
http://www.in-teractive.com
Insidelog is a tool created by Blockchain Record'in Solutions
https://www.recordins.com
https://ch.linkedin.com/pub/philippe-schweitzer/87/ab/2bb

Download available from this page: https://github.com/pschweitz/insidelog/releases
Expand All @@ -16,7 +16,7 @@ Sorry for Mac users, packaged build is not available for the moment.
It is released under Apache v2 License

/*
* Copyright 2018 in'teractive.
* Copyright 2019 Blockchain Record'in Solutions.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Binary file modified UserManual.pdf
Binary file not shown.
6 changes: 0 additions & 6 deletions auto_it/DBITailLauncher.au3

This file was deleted.

Binary file removed auto_it/DBITailLauncher.ico
Binary file not shown.
221 changes: 221 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
import java.text.SimpleDateFormat

plugins {
id 'java'
}

group 'recordins'
version '1.5'
version = version + ("master" == gitCurBranch() ? "-RELEASE" : "-SNAPSHOT")

def gitCurBranch() {
def process = "git rev-parse --abbrev-ref HEAD".execute()
return process.text.trim()
}

def date = buildTime();

def buildTime() {
def df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ") // you can change it
df.setTimeZone(TimeZone.getTimeZone("UTC"))
return df.format(new Date())
}

//sourceCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

sourceSets.main.resources { srcDirs = ["src/main/java"]; exclude "**/*.java" }


// need higher version than ide default to support java 11
// this is for legacy gradle < 5.0
task wrapper(type: Wrapper) {
gradleVersion = "4.9"
}

// this is for gradle >= 5.0
wrapper {
gradleVersion = "4.9"
}

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'

/* used to retrive dependencies online*/
//compile group: 'com.auth0', name: 'java-jwt', version: '3.4.0'
//compile group: 'com.github.oshi', name: 'oshi-core', version: '3.9.0'

compile fileTree(dir: 'lib', include: '*.jar')
runtime fileTree(dir: 'lib', include: '*.jar')

}

task packageTests(type: Jar) {
baseName = rootProject.name + 'Test'
manifest {
attributes(
"Created-By": 'Philippe Schweitzer - Blockchain Recordin Solutions',
"Class-Path": 'lib/' + configurations.compile.collect { it.getName() }.join(' lib/'),// + ' lib/CheetahWebserver-' + version + '.jar',
"Main-Class": 'com.recordins.insidelog.InSideLogTest',
"Cheetah-Version": version,
"Build-Time-ISO-8601": date
)
}
from sourceSets.test.output
}

task customFatJar(type: Jar) {
doFirst {
libFolder()
}
manifest {
attributes(
"Created-By": 'Philippe Schweitzer - Blockchain Recordin Solutions',
"Class-Path": 'lib/' + configurations.compile.collect { it.getName() }.join(' lib/'),
"Main-Class": 'com.recordins.insidelog.InSideLog',
"Cheetah-Version": version,
"Build-Time-ISO-8601": date
)
}
baseName = rootProject.name + '-all-in-one-jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
with jar
}

jar {
dependsOn customFatJar
doFirst {
libFolder()
}
baseName = rootProject.name
manifest {
attributes(
"Created-By": 'Philippe Schweitzer - Blockchain Recordin Solutions',
"Class-Path": 'lib/' + configurations.compile.collect { it.getName() }.join(' lib/'),
"Main-Class": 'com.recordins.insidelog.InSideLog',
"Cheetah-Version": version,
"Build-Time-ISO-8601": date
)
}
}

/*
*
* Used to retrieve all dependencies and put them into lib/folder
*/
def libFolder() {
project.configurations.compile.resolvedConfiguration.resolvedArtifacts.each {
//println it.name // << the artifact name
//println it.file // << the file reference

def libfile = it.file;
copy {
from "$libfile"
into "lib"
}
}
}

clean {
doFirst {
def jarname = rootProject.name + "-" + version + ".jar"
def file = new File(jarname)

if(file.exists()){
delete jarname
}

jarname = rootProject.name + 'Test' + "-" + version + ".jar"
file = new File(jarname)

if(file.exists()){
delete jarname
}
}
}

//noinspection GroovyAssignabilityCheck
build {
//dependsOn packageTests

doLast {
def jarname = rootProject.name + "-" + version + ".jar"
def file = new File(jarname)

if(file.exists()){
delete jarname
}

copy{
from "$buildDir/libs/" + jarname
into "$projectDir/"
}

jarname = rootProject.name + 'Test' + "-" + version + ".jar"
file = new File(jarname)

if(file.exists()){
delete jarname
}
copy {
from "$buildDir/libs/" + jarname
into "$projectDir/"
}
}
}

test {
dependsOn packageTests
/*
print "RUN TEST\n"
copy{
from "$buildDir/libs/CheetahWebserver-" + version + '.jar'
into "$projectDir/lib"
}
def jarname = "CheetahWebserverTest" + "-" + version + ".jar"
def file = new File("$projectDir/" + jarname)
if(file.exists()){
delete "$projectDir/" + jarname
}
copy{
from "$buildDir/libs/" + jarname
into "$projectDir/"
}
//def file = new File("$projectDir/" + jarname)
if(file.exists()){
// def sout = new StringBuilder(), serr = new StringBuilder()
// def command = 'java -jar ' + jarname
// def proc = command.execute()
// proc.consumeProcessOutput(sout, serr)
// proc.waitForOrKill(1000000)
javaexec {
main="-jar";
args = [
jarname,
""
]
}
}
else{
print "jar executable: " + jarname + " does not exist \n"
}
*/
}
6 changes: 0 additions & 6 deletions etc/D2.cfg

This file was deleted.

Empty file modified etc/default.cfg
100644 → 100755
Empty file.
Empty file modified etc/tail.properties
100644 → 100755
Empty file.
Empty file modified libs.txt
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = 'InSideLog'

43 changes: 0 additions & 43 deletions src/com/interactive/insidelog/ColorChooserScene.fxml

This file was deleted.

Loading

0 comments on commit 5c1bea2

Please sign in to comment.