🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #961

Re: How to determine the project path?

#961
From: David C. Browne
Date: Tue, 01 Jun 2004 02:33
20 lines
1484 bytes
Maybe this is what you are looking for?

       import java.util.Properties;

       Properties props = System.getProperties();
       String userDir = (String)props.getProperty("user.dir");


David


Houman Khorasani wrote:
> Actually I am looking for ($ProjectDir). Something what tells me the
> directory of the project. How can I store this value into a String and use
> it in my java class?
> 
> Thank you
> 
> Houman
>
Technical Details
Message-ID: <40bbeaee$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b959b3$1@newsgroups.borland.com> <40bb4482@newsgroups.borland.com> <40bbb844$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,36c54cf6bd7cdb3e
X-Google-Attributes: gid111d45,public
Date: Mon, 31 May 2004 19:33:20 -0700
From: "David C. Browne" <cognoscenti-removethispart@comcast.net>
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: How to determine the project path?
References: <40b959b3$1@newsgroups.borland.com> <40bb4482@newsgroups.borland.com> <40bbb844$1@newsgroups.borland.com>
In-Reply-To: <40bbb844$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.171.158.174
Message-ID: <40bbeaee$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086057198 67.171.158.174 (31 May 2004 19:33:18 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail