'working directory' is the directory from which you
launch the program, if you type:
c:\mydir> java myprog
then 'c:\mydir' is that directory.
Anyway, you get that directory with
System.getProperty("user.dir");
and you can change it with
System.setProperty("user.dir", newdir);
Dario
--- Pete Thomas <[EMAIL PROTECTED]> ha scritto: >
Dario,
>
> Out of interest what's the working directory and how
> do you find it out for
> an application running as a Web App (WAR) ?
>
> We tried to do a relative path once before but gave
> up.
>
> Pete
>
> > -----Original Message-----
> > From: Dario Di [mailto:[EMAIL PROTECTED]
> > Sent: 16 October 2003 11:19
> > To: [EMAIL PROTECTED]
> > Subject: Re: [castor-dev] Problem with schema
> location
> >
> >
> > I found the solution to my problem.
> > paths are relative to program's working directory
> >
> > Dario
> >
> > --- Dario Di <[EMAIL PROTECTED]> ha scritto:
> >
> > Hi,
> > > I'm trying to validate an xml file against a
> schema
> > > with Castor 0.9.5.2
> > > All works fine with an absolute path like
> > >
> > > xsi:noNamespaceSchemaLocation="c:/myschema.xsd"
> > >
> > > but I'd like to use a relative path like
> > >
> > > xsi:noNamespaceSchemaLocation="./myschema.xsd"
> > >
> > > Can you help me?
> > >
> > > Thank you
> > > Dario
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
______________________________________________________________________
> > > Yahoo! Mail: 6MB di spazio gratuito, 30MB per i
> tuoi
> > > allegati, l'antivirus, il filtro Anti-spam
> > >
> >
>
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
> > >
> > >
> >
>
-----------------------------------------------------------
> > >
> > > If you wish to unsubscribe from this mailing,
> send
> > > mail to
> > > [EMAIL PROTECTED] with a subject of:
> > > unsubscribe castor-dev
> > >
> >
> >
>
______________________________________________________________________
> > Yahoo! Mail: 6MB di spazio gratuito, 30MB per i
> tuoi
> > allegati, l'antivirus, il filtro Anti-spam
> >
>
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
> >
> >
>
-----------------------------------------------------------
>
> > If you wish to unsubscribe from this mailing, send
> mail to
> > [EMAIL PROTECTED] with a subject of:
> > unsubscribe castor-dev
> >
> This transmission is confidential and intended
> solely for the person or
> organisation to whom it is addressed. It may
> contain privileged and
> confidential information. If you are not the
> intended recipient, you should
> not copy, distribute or take any action in reliance
> on it. If you have
> received this transmission in error, please notify
> the sender immediately.
> Any opinions or advice contained in this e-mail are
> those of the individual
> sender except where they are stated to be the views
> of RDF Group or EMS plc.
> All messages passing through this gateway are virus
> scanned.
>
>
-----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send
> mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro
Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev