Commit Graph

59 Commits

Author SHA1 Message Date
Sam Pottinger 0412748949 Finished cross-builds for new JSSC binary. 2020-03-08 15:28:42 -04:00
Sam Pottinger c6954845e2 Added in experimental JSSC native for Windows 64. 2020-03-08 14:52:44 -04:00
Sam Pottinger 87b74fcc74 Added new linux 64bit binary for JSSC 2020-03-08 14:38:31 -04:00
A Pottinger 60aeacc063 Updated jssc jar for mac. 2020-03-07 19:56:44 -08:00
A Pottinger 1adadb0358 Switch to fat jar for jssc. 2020-03-07 18:11:53 -08:00
A Pottinger 03b24c3d97 Migrate to sampottinger/jssc for mac.
Started migration of JSSC in response to https://github.com/processing/processing4/issues/71, introducing mac os in this commit.
2020-03-07 17:07:34 -08:00
A Pottinger 7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
A Pottinger c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
REAS 9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
Ben Fry 3673396587 move to JDK 1.8 instead of 1.6 b/c of Eclipse warnings 2019-01-18 09:55:43 -08:00
George Bateman 5767b086f6 Fix most Javadoc errors, except syntax 2016-05-10 19:13:20 +01:00
Ben Fry 822089487b Merge pull request #4321 from kfeuz/serial_readbytes
Added readBytes(max) to serial library
2016-05-08 15:06:09 -04:00
Jakub Valtar dd8698427c Update app to Java 8 2016-04-02 23:17:25 +02:00
kfeuz bad395b08d Added readBytes(max) to serial library 2016-02-18 22:21:04 -07:00
gohai f4f00102bd Put back the Javadoc from the 2012-era Serial library 2015-10-18 12:51:57 +02:00
gohai 61fe120f7c Fix Serial SimpleWrite example
The Arduino code would read one byte from the buffer an then sleep for 1/10th of a second, while Processing would send a byte every frame. Instead, read in all the bytes in the input buffer and act on the most recent one.
2015-10-18 12:29:14 +02:00
REAS 5575b774b8 Tests for new Serial reference 2015-10-13 15:56:05 -07:00
REAS 85fc361ce3 Change name of Serial I/O library to Serial 2015-10-06 10:03:01 -07:00
Ben Fry f496709a87 update our own libraries to use .properties files (fixes #3574) 2015-08-11 10:30:37 -04:00
Ben Fry a32a634b72 deal with .class signing conflicts and use JDT .jar files for compilation 2015-01-21 19:43:02 -05:00
Kyle Feuz c7759f2a78 Bring in upstream changes from 'master' 2014-11-21 10:31:28 -07:00
Kyle Feuz 85d511975b unset executable bit for .txt files 2014-11-20 13:20:33 -07:00
Kyle Feuz cc312f8b76 Unset the executable bit on xml files 2014-11-20 13:17:33 -07:00
Kyle Feuz 49c3435b36 Normalize line endings. Auto-detect textfiles. Force .java and .pde files to be treated as text. 2014-11-20 12:57:04 -07:00
Ben Fry 96b9f8dc21 remove unnecessary parens 2014-11-14 15:08:52 -07:00
Ben Fry ee9584bf53 Merge pull request #2588 from kfeuz/Issue2364
Implements the active() method for Serial and Server (Issue #2364).
2014-11-14 15:01:17 -07:00
Federico Bond ce5daefffd Use 1.7 as source and target Java version 2014-10-20 23:52:26 -03:00
Kyle Feuz 6274986bd6 Implements the active() method for Serial and Server (Issue #2364). 2014-06-10 23:22:08 -07:00
Jonathan Feinberg bd3fe3514c Permit implementing serialEvet and serialAvailable without having to link to Serial at buildtime.
This is useful for Python mode, or any other Java-compatible Processing that doesn't allow reflection on the sketch.
2014-05-19 20:42:26 -04:00
gohai 5235b190c2 Serial: Remove debug code again 2013-12-15 16:02:23 -08:00
gohai 1c95fd341e Serial: Only use workaround if we're using serialEvent 2013-12-15 15:55:31 -08:00
gohai 59761b42d2 Serial: Only read a single character at a time to emulate RXTX behavior 2013-11-25 08:23:40 -08:00
gohai 541cab2bd9 Add a debug() method to Serial
This commit also turns a 100ns wait inside JSSC in a yield() and removes the invocation of serialEvent outside the synchronized block.
2013-11-24 20:52:38 -08:00
gohai 0ef72e25c9 Serial: Switch the examples over to printArray() 2013-11-19 17:22:13 -08:00
gohai 95bac1d04c Serial: Add basic tests for throughput and latency 2013-11-19 16:37:14 -08:00
gohai 72ec72ae53 Add missing readStringUntil() method 2013-10-28 17:18:13 +01:00
melgior e208f2fec8 Updated Arduino example code to be Arduino 1.0+ compatible 2013-10-17 13:22:10 +02:00
melgior f5eb74c083 Updated Arduino example code to be Arduino 1.0+ compatible 2013-10-17 13:20:53 +02:00
melgior 8e47e8b3c5 Updated Arduino example code to be Arduino 1.0+ compatible 2013-10-17 13:17:33 +02:00
gohai 3b8ed3db55 Document how to compile the native JSSC library 2013-10-01 21:29:15 -07:00
gohai 7c2f50ef8a Remove obsolete .cvsignore file 2013-10-01 21:27:48 -07:00
gohai ba4f204c25 Remove commented out lines 2013-10-01 21:27:27 -07:00
Ben Fry f2bc900427 update serial with p5 code conventions, fix two warnings 2013-09-25 14:12:56 -04:00
gohai d46e55714d Replace RXTX-based serial library by one based on JSSC
Development on this was done in https://github.com/gohai/processing-serial-jssc. See also https://github.com/gohai/java-simple-serial-connector for changes to JSSC (not yet upstreamed).
2013-09-24 08:26:08 -07:00
Ben Fry 7eb0f19d65 change build scripts to use built-in ecj (removes jdk req) 2013-09-12 19:21:57 -04:00
Ben Fry eee6123135 adding ignore files 2013-01-27 10:52:36 -05:00
benfry 8b771c0d98 cleaning up stop/dispose events 2012-11-25 17:41:33 +00:00
benfry 54b524d22a add tool to fix the serial port on OS X 2012-10-21 00:12:26 +00:00
benfry ab815ede89 update source/target settings in build b/c of Java 7 warnings 2012-10-19 14:48:48 +00:00
benfry e85b1c7496 throw an exception when /var/lock does not exist.. otherwise too subtle 2012-08-05 14:37:33 +00:00