Re: web project question

Cliff Draper <[email protected]> Thu, 04 Sep 2003 10:47:08 -0700 (PDT)
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Agreed.  FileObject.createData, but don't use java.io.File.  Just call
FileObject.getOutputStream to get a java.io.OutputStream, and then
pass that to the schema2beans's generated beans.

Cliff Draper    Sun Microsystems, Forte Tools
My opinions may or may not reflect those of my employer.
---------------------------- food for thought ---------------------------
The Briggs/Chase Law of Program Development: To determine how
long it will take to write and debug a program, take your best estimate
multiply that by two, add one, and convert to the next higher units.

From: Pavel Buzek <[email protected]>
Date: Thu, 04 Sep 2003 12:38:56 +0200
> Oh, I see. This is probably the problem -- the filesystems have a delay 
> for refresh. I would definetely suggest using FileObject.createData() 
> and then taking java.io.File. It should help.
> 
> -pavel
> 
> Peter Wisnovsky wrote:
> > Pavel Buzek writes:
> >  > This should work in web module project. Rebuild the war file and it 
> >  > should contain all the files that are in web folder. If not this is a 
> >  > bug -- please file a bug in issuezilla and add some details (it works 
> >  > for me) -- how do you add the file? does the file appear in "Deployable 
> >  > Directory Structure?, etc.
> > 
> > I created the file using the direct java.io APIs, since I needed to
> > do a schema2beans write on it and the APIs there are in terms of
> > java.io. Should I have used FileObject.createData() and then extracted
> > the java.io.File?