the start.java code uses the user.dir
if change the code to so the user.dir is not used does it break anything.
I showed how it is used now.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation 
<http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Adrian Crum sent the following on 4/24/2010 10:42 AM:
> I don't understand the question. Could you rephrase it please?
> 
> -Adrian
> 
> --- On Sat, 4/24/10, BJ Freeman <[email protected]> wrote:
> 
>> From: BJ Freeman <[email protected]>
>> Subject: Re: Set Dir for user files
>> To: [email protected]
>> Date: Saturday, April 24, 2010, 10:24 AM
>> any reason I can not take the
>> user.dir out of the start.Java.
>>
>>            if (ofbizHome
>> == null) {
>>                
>> ofbizHome = props.getProperty("ofbiz.home", ".");
>>                 //
>> get a full path
>>                 if
>> (ofbizHome.equals(".")) {
>>                
>>     ofbizHome = System.getProperty("user.dir");
>>                
>>     ofbizHome = ofbizHome.replace('\\', '/');
>>                
>>     System.out.println("Set OFBIZ_HOME to - " +
>> ofbizHome);
>>                 }
>>             }
>>
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation 
>> <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin
>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>>
>>
>> Adrian Crum sent the following on 4/24/2010 10:15 AM:
>>> Good idea. Could you create a patch and submit it to
>> Jira?
>>> -Adrian
>>>
>>> --- On Sat, 4/24/10, BJ Freeman <[email protected]>
>> wrote:
>>>> From: BJ Freeman <[email protected]>
>>>> Subject: Set Dir for user files
>>>> To: [email protected]
>>>> Date: Saturday, April 24, 2010, 10:01 AM
>>>> from the other email about misc files
>>>> being in the ofbizHome it went to
>>>> investigate why. I thought they were suppose to go
>> to the
>>>> runtime/tmp
>>>> so in the base code it uses "user.dir" as a way to
>> find
>>>> ofbizHome.
>>>> There is a property "ofbiz.home".
>>>> there is code that uses
>>>>          String path
>> =
>>>> System.getProperty("user.dir") + "/spreadsheet";
>>>> I suggest the user.dir be set to
>>>> "ofbiz.home"+"\runtime\tmp"
>>>> this allows the user files to be cleaned using the
>> ant
>>>> clean-all
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> http://bjfreeman.elance.com
>>>> Strategic Power Office with Supplier Automation
>> <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat  Y! messenger: bjfr33man
>>>> Linkedin
>>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
> 
> 
> 
> 


Reply via email to