migrate to gradle part 2
This commit is contained in:
parent
d0f3644b1f
commit
47f1b10b99
15 changed files with 96 additions and 30 deletions
|
|
@ -2,19 +2,23 @@ plugins {
|
|||
id 'application'
|
||||
}
|
||||
|
||||
version = '1.6.1'
|
||||
|
||||
application {
|
||||
mainClassName = 'btools.server.BRouter'
|
||||
mainClass.set('btools.server.BRouter')
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes "Main-Class": "$mainClassName"
|
||||
attributes "Main-Class": getMainClass()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation('junit:junit:4.13')
|
||||
testImplementation 'junit:junit:4.13.1'
|
||||
|
||||
implementation project(':brouter-util')
|
||||
implementation project(':brouter-core')
|
||||
implementation project(':brouter-mapaccess')
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public class IntegrityCheckTest
|
|||
File resultfile = new File( resulturl.getFile() );
|
||||
workingDir = resultfile.getParentFile();
|
||||
|
||||
File segmentDir = new File( workingDir, "/../../../brouter-map-creator/target/test-classes/tmp/segments" );
|
||||
File segmentDir = new File( workingDir, "/../../../../brouter-map-creator/build/resources/test/tmp/segments" );
|
||||
File[] files = segmentDir.listFiles();
|
||||
|
||||
for ( File f : files )
|
||||
|
|
|
|||
|
|
@ -61,13 +61,13 @@ public class RouterTest
|
|||
wplist.add( n );
|
||||
|
||||
RoutingContext rctx = new RoutingContext();
|
||||
rctx.localFunction = wd + "/../../../misc/profiles2/trekking.brf";
|
||||
rctx.localFunction = wd + "/../../../../misc/profiles2/trekking.brf";
|
||||
// c.setAlternativeIdx( 1 );
|
||||
|
||||
RoutingEngine re = new RoutingEngine(
|
||||
wd + "/" + trackname,
|
||||
wd + "/" + trackname,
|
||||
wd + "/../../../brouter-map-creator/target/test-classes/tmp/segments", wplist, rctx );
|
||||
wd + "/../../../../brouter-map-creator/build/resources/test/tmp/segments", wplist, rctx );
|
||||
re.doRun( 0 );
|
||||
|
||||
return re.getErrorMessage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue