File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,12 @@ import static java.nio.file.StandardCopyOption.*;
46
46
47
47
task dist {
48
48
doLast {
49
+ File cardBoardJar = file(" library/cardboard.jar" );
50
+ // create intermediate folder if they don't exist
51
+ cardBoardJar. mkdirs();
49
52
// make copy of jar file to library folder
50
53
Files . copy(file(" $buildDir /libs/cardboard.jar" ). toPath(),
51
- file( " library/cardboard.jar " ) . toPath(), REPLACE_EXISTING );
54
+ cardBoardJar . toPath(), REPLACE_EXISTING );
52
55
}
53
56
}
54
57
Original file line number Diff line number Diff line change 10
10
</target >
11
11
12
12
<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" />
14
15
</target >
15
16
16
17
<target name =" sdk_chatter" unless =" env.ANDROID_SDK" >
You can’t perform that action at this time.
0 commit comments