Skip to content
Snippets Groups Projects
Commit 244a1400 authored by Robin Oppermann's avatar Robin Oppermann
Browse files

Adapt paths to create an executable version

parent 76aba6ca
No related branches found
No related tags found
1 merge request!3Ci setup
Pipeline #
...@@ -49,10 +49,10 @@ sonarqube_preview: ...@@ -49,10 +49,10 @@ sonarqube_preview:
build: build:
stage: build stage: build
script: script:
- ./gradlew -g /cache/.gradle clean assemble - ./gradlew -g /cache/.gradle clean assemble copyGui
artifacts: artifacts:
paths: paths:
- lib/Simulator.jar - lib/
- target/ - target/
allow_failure: false allow_failure: false
......
...@@ -32,6 +32,8 @@ sourceSets { ...@@ -32,6 +32,8 @@ sourceSets {
java { java {
srcDirs = ["src/applications", "src/core", "src/gui", "src/input", "src/interfaces", "src/main", "src/movement", "src/report", "src/routing", "src/ui", "src/util"] srcDirs = ["src/applications", "src/core", "src/gui", "src/input", "src/interfaces", "src/main", "src/movement", "src/report", "src/routing", "src/ui", "src/util"]
} }
output.resourcesDir = 'target'
output.classesDir = 'target'
} }
test { test {
java { java {
...@@ -42,6 +44,10 @@ sourceSets { ...@@ -42,6 +44,10 @@ sourceSets {
jar { jar {
destinationDir = new File('lib') destinationDir = new File('lib')
manifest {
attributes 'Main-Class': 'core.DTNSim'
attributes 'Class-Path': "ECLA.jar DTNConsoleConnection.jar ../target"
}
} }
dependencies { dependencies {
...@@ -52,3 +58,12 @@ dependencies { ...@@ -52,3 +58,12 @@ dependencies {
// Use JUnit test framework // Use JUnit test framework
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
task copyGui(type: Copy){
from 'src/gui/buttonGraphics'
into 'target/gui/buttonGraphics'
}
clean.doFirst{
delete 'target'
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment