Appending data to file in a MemoryFileSystem.

2019-09-19 Thread Richard Linsdale
Hopefully somebody can help direct me to a solution to this problem In a Netbeans plug-in which I am developing, I have created a MemoryFileSystem for storage of transient files. I now wish to add a feature to append data to an existing file (in the MemoryFileSystem), but I can't find a solut

Re: JavaFX deployment library not found in active JDK

2019-09-19 Thread Chris Olsen
Hi, Chris -- Thank you! I will try to follow this model as I move into Maven. -- Chris - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org Fo

Re: Appending data to file in a MemoryFileSystem.

2019-09-19 Thread Neil C Smith
On Thu, 19 Sep 2019 at 15:04, Richard Linsdale wrote: > Any suggestions welcome, as I want to avoid copying the existing file > content to a new file on every append request and then renaming the file > (which is my probably short term fall back). The MemoryFileSystem is quite simple, and everyth

Re: Appending data to file in a MemoryFileSystem.

2019-09-19 Thread William Reynolds
From https://stackoverflow.com/questions/9558979/java-outputstream-skip-offset |try{FileOutputStreamout =newFileOutputStream(file);try{FileChannelch =out.getChannel();ch.position(offset);ch.write(ByteBuffer.wrap(data));}finally{out.close();}}catch(IOExceptionex){// handle error}| On 9/19/2

Re: Appending data to file in a MemoryFileSystem.

2019-09-19 Thread Neil C Smith
On Thu, 19 Sep 2019 at 17:03, William Reynolds wrote: > > From https://stackoverflow.com/questions/9558979/java-outputstream-skip-offset ... >FileOutputStream out = new FileOutputStream(file); There is no File! ;-) Best wishes, Neil -

Re: Appending data to file in a MemoryFileSystem.

2019-09-19 Thread William Reynolds
But can't you construct a FileChannel from the FileOutputStream? I thought the question was how to seek on an output stream, which the example generates. On 9/19/2019 10:06 AM, Neil C Smith wrote: On Thu, 19 Sep 2019 at 17:03, William Reynolds wrote: From https://stackoverflow.com/questions

Re: Fw: Problem in installing netbeans 11 on a computer with JDK 13

2019-09-19 Thread Jose Ch
Does the netbeans installation was with the exe or the zip archive? The easy way is to specify the JDK in the netbeans.conf file located in /netbeans/etc/netbeans.conf. e.g. netbeans_jdkhome="/opt/jvm/zulu-13" El mié., 18 sept. 2019 a las 22:05, xog blog () escribió: > The netbeans 11 install pro

Re: How to generate Javadoc for a module suite ?

2019-09-19 Thread Jerome Lelasseux
My answer to my own question.  I think it's not optimal since it puts *all* of the platform JARs in the javadoc classpath. But it does the job. Content of an Ant target to be put in the module suite build.xml.                                                                 --

Re: Releasing a Netbeans platform application to the general public

2019-09-19 Thread Jerome Lelasseux
I finally managed to create my Ant task which generates an InnoSetup installer. @Neil C Smith: PraxisLive code was a GREAT help, thanks ! Le mardi 17 septembre 2019 à 17:53:54 UTC+2, Neil C Smith a écrit : On Sun, 15 Sep 2019 at 22:06, Jerome Lelasseux wrote: > 1/ bundle a JRE an

Re: Appending data to file in a MemoryFileSystem.

2019-09-19 Thread Richard Linsdale
Neil, thanks for suggestion, less work and much tidier code than my original fall back thoughts.  Implemention done and passing the unit tests! Richard On 19/09/2019 15:25, Neil C Smith wrote: On Thu, 19 Sep 2019 at 15:04, Richard Linsdale wrote: Any suggestions welcome, as I want to avoid c

Re: Error while building the installers of a netbeans platform application

2019-09-19 Thread William Reynolds
I've just migrated my RCP project to a Maven-based build, and fixing the installer bug was a bit more involved. To begin the migration, I constructed a maven nb platform project using the guide on https://platform.netbeans.org/tutorials/nbm-maven-quickstart.html. Note that adding child projects d