diff --git a/build/build.xml b/build/build.xml index fdd1d9a08a..c7061c2c3d 100644 --- a/build/build.xml +++ b/build/build.xml @@ -77,6 +77,12 @@ or http://stackoverflow.com/q/10268583 --> + + @@ -388,11 +394,11 @@ message="Do not call assemble from the command line." /> - + - + @@ -403,7 +409,8 @@ - + @@ -643,7 +650,7 @@ - + @@ -785,7 +792,7 @@ - + @@ -818,7 +825,7 @@ - + @@ -1073,7 +1080,7 @@ - + @@ -1094,7 +1101,7 @@ - + diff --git a/build/macosx/appbundler.jar b/build/macosx/appbundler.jar index 0102f306a9..42cc8f18cd 100644 Binary files a/build/macosx/appbundler.jar and b/build/macosx/appbundler.jar differ diff --git a/build/macosx/appbundler/build.xml b/build/macosx/appbundler/build.xml index 9b48b2bb5c..4d02204175 100644 --- a/build/macosx/appbundler/build.xml +++ b/build/macosx/appbundler/build.xml @@ -33,8 +33,8 @@ questions. version=1.0ea --> - - + + @@ -73,7 +73,8 @@ questions. - + + @@ -87,10 +88,10 @@ questions. - - + + diff --git a/build/macosx/appbundler/src/com/oracle/appbundler/AppBundlerTask.java b/build/macosx/appbundler/src/com/oracle/appbundler/AppBundlerTask.java index 8009c78b25..df4c26bc73 100644 --- a/build/macosx/appbundler/src/com/oracle/appbundler/AppBundlerTask.java +++ b/build/macosx/appbundler/src/com/oracle/appbundler/AppBundlerTask.java @@ -458,6 +458,7 @@ private void copyResources(File resourcesDirectory) throws IOException { } finally { outputStream.close(); } + file.setLastModified(zipEntry.getTime()); } zipEntry = zipInputStream.getNextEntry(); } @@ -729,7 +730,9 @@ private static void delete(File file) throws IOException { private static void copy(URL location, File file) throws IOException { try (InputStream in = location.openStream()) { - Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING); + Files.copy(in, file.toPath(), + // can't do attributes when coming from URL + StandardCopyOption.REPLACE_EXISTING); } } @@ -740,13 +743,15 @@ private static void copy(File source, File destination) throws IOException { destination.getParentFile().mkdirs(); - Files.copy(sourcePath, destinationPath, StandardCopyOption.REPLACE_EXISTING, LinkOption.NOFOLLOW_LINKS); + Files.copy(sourcePath, destinationPath, + StandardCopyOption.REPLACE_EXISTING, + StandardCopyOption.COPY_ATTRIBUTES, + LinkOption.NOFOLLOW_LINKS); if (Files.isDirectory(sourcePath, LinkOption.NOFOLLOW_LINKS)) { String[] files = source.list(); - for (int i = 0; i < files.length; i++) { - String file = files[i]; + for (String file : files) { copy(new File(source, file), new File(destination, file)); } } diff --git a/core/build.xml b/core/build.xml index 0b82eba67e..e1bf0fd5fc 100644 --- a/core/build.xml +++ b/core/build.xml @@ -15,20 +15,20 @@ - - + - @@ -51,8 +51,8 @@ includeAntRuntime="false" debug="true" destdir="bin" - classpath="apple.jar; - library/jogl-all.jar; + classpath="apple.jar; + library/jogl-all.jar; library/gluegen-rt.jar" nowarn="true"> @@ -61,23 +61,24 @@ - + - + - + - + - + diff --git a/java/build.xml b/java/build.xml index 32932744b5..0fda9c2c55 100644 --- a/java/build.xml +++ b/java/build.xml @@ -1,15 +1,15 @@ - + - + - + @@ -23,12 +23,12 @@ - - - - - - + + + + + + @@ -37,9 +37,9 @@ - + @@ -49,28 +49,24 @@ - + - + - + - + @@ -86,38 +82,37 @@ - - + + https://github.com/processing/processing/issues/1792 --> + debug="on" + nowarn="true" + compiler="org.eclipse.jdt.core.JDTCompilerAdapter"> - diff --git a/todo.txt b/todo.txt index 1d7abd5487..6e714bdb8f 100755 --- a/todo.txt +++ b/todo.txt @@ -2,6 +2,8 @@ X use ctrl-page up/down for tabs on Windows X https://github.com/processing/processing/issues/5794 X fix potential highlighting issue that wasn't selecting portions of text +X update AppBundler to use newer SDK, recompile +X edit build.xml files and appbundler to preserve more attributes _ "Could not get the settings folder" isn't very helpful _ https://github.com/processing/processing/issues/5744