File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ sourceCompatibility = '1.7'
55targetCompatibility = ' 1.7'
66[compileJava, compileTestJava]* . options* . encoding = ' UTF-8'
77
8+ File buildDir = file(" ." );
9+
810Properties 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
1113manifest {
1214 attributes(
@@ -41,19 +43,19 @@ repositories {
4143sourceSets {
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
5355dependencies {
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
You can’t perform that action at this time.
0 commit comments