Skip to content

Commit 52e9a18

Browse files
committed
fixed the relative pathing of the project fiels
1 parent 2953c08 commit 52e9a18

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ sourceCompatibility = '1.7'
55
targetCompatibility = '1.7'
66
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
77

8+
File buildDir = file(".");
9+
810
Properties props = new Properties()
9-
props.load(new FileInputStream("javasdk/NRSDK/src/com/neuronrobotics/sdk/config/build.properties"))
11+
props.load(new FileInputStream(buildDir.getAbsolutePath()+"/javasdk/NRSDK/src/com/neuronrobotics/sdk/config/build.properties"))
1012

1113
manifest {
1214
attributes(
@@ -41,19 +43,19 @@ repositories {
4143
sourceSets {
4244
main {
4345
java {
44-
srcDir 'javasdk/NRSDK/src/'
46+
srcDir buildDir.getAbsolutePath()+'/javasdk/NRSDK/src/'
4547
}
4648
resources {
47-
srcDir 'javasdk/NRSDK/addons/'
49+
srcDir buildDir.getAbsolutePath()+'/javasdk/NRSDK/addons/'
4850
}
4951
}
5052
}
5153

5254

5355
dependencies {
5456
//TODO change as many of these as possible to Maven repositories
55-
compile fileTree (dir: 'javasdk/NRSDK/lib/', includes: ['*.jar'])
56-
compile fileTree (dir: 'javasdk/NRSDK/lib_addons/', includes: ['*.jar'])
57+
compile fileTree (dir: buildDir.getAbsolutePath()+'/javasdk/NRSDK/lib/', includes: ['*.jar'])
58+
compile fileTree (dir: buildDir.getAbsolutePath()+'/javasdk/NRSDK/lib_addons/', includes: ['*.jar'])
5759
}
5860

5961

0 commit comments

Comments
 (0)