Skip to content

Commit 43a41c6

Browse files
authored
Merge pull request #285 from omerjerk/multitouch
Fix build if the cardboard/library folder doesn't exist
2 parents c29dd04 + fc0b71c commit 43a41c6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libraries/cardboard/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ import static java.nio.file.StandardCopyOption.*;
4646

4747
task dist {
4848
doLast {
49+
File cardBoardJar = file("library/cardboard.jar");
50+
//create intermediate folder if they don't exist
51+
cardBoardJar.mkdirs();
4952
// make copy of jar file to library folder
5053
Files.copy(file("$buildDir/libs/cardboard.jar").toPath(),
51-
file("library/cardboard.jar").toPath(), REPLACE_EXISTING);
54+
cardBoardJar.toPath(), REPLACE_EXISTING);
5255
}
5356
}
5457

libraries/cardboard/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
</target>
1111

1212
<target name="build" depends="sdk_chatter,compile" description="Build cardboard library for Processing Android" >
13-
<jar basedir="bin" destfile="library/cardboard.jar" />
13+
<mkdir dir="library" />
14+
<jar basedir="bin" destfile="library/cardboard.jar" />
1415
</target>
1516

1617
<target name="sdk_chatter" unless="env.ANDROID_SDK">

0 commit comments

Comments
 (0)