Commit Graph

73 Commits

Author SHA1 Message Date
A Pottinger
5f7e6a4fd4 Fix classpath. 2021-08-21 14:33:18 -07:00
A Pottinger
113d8b38a4 Move to new 2.3.5 JSSC 2021-08-21 14:29:57 -07:00
A Pottinger
9cb8f97b0d Move to new JSSC file structure. 2021-08-21 12:30:18 -07:00
A Pottinger
b5346e3cca Minor fix for windows path resolution. 2021-07-24 16:53:10 -07:00
A Pottinger
0012a90404 Migrated to new sampottinger/jssc 2021-07-24 16:01:55 -07:00
Ben Fry
a4d13df9e6 fixing Eclipse CLASSPATH entries for JDK 2021-06-22 07:35:21 -04:00
Anadroid
118e22e329 Formatting brief descriptions 2021-04-13 16:54:57 +02:00
Anadroid
7b5c8ba9ce Formatting more comments 2021-04-12 10:24:07 +02:00
Ben Fry
ce77558c97 tweak project info for Eclipse to fix up their import to IntelliJ 2021-01-17 15:11:25 -05:00
Ben Fry
2a2a607353 update names of project files 2021-01-17 13:21:01 -05:00
Ben Fry
a4c44950af make sure these are pointing at the processing4- projects 2021-01-17 13:18:48 -05:00
Anadroid
dc6b4ed47c Renaming templates 2020-09-16 09:41:35 +02:00
Anadroid
8a7c9571fa Updated descriptions in comments for processing core and libraries 2020-09-15 10:17:15 +02:00
Anadroid
42b0efb8b8 Changed comments for the libraries network, serial, and hardware i/o 2020-09-10 16:07:03 +02:00
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