not runtime\tmp directly but user.download.dir property with runtime\tmp
in it.


=========================
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>


BJ Freeman sent the following on 4/24/2010 12:09 PM:
> I see what i missed and understand what you say.
> now though I have to find all the places that put files and change them
> so they all point to runtime\tmp as the base address.
> 
> =========================
> 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 11:34 AM:
>> There is no need to change that. The JVM user dir is not the same thing as 
>> an "OFBiz user" user dir.
>>
>> The problematic code just needs to be changed to point to the correct folder 
>> (runtime/tmp). Use an existing method to get that folder location, or create 
>> a method if it doesn't exist.
>>
>> -Adrian
>>
>> --- On Sat, 4/24/10, BJ Freeman <bjf...@free-man.net> wrote:
>>
>>> From: BJ Freeman <bjf...@free-man.net>
>>> Subject: Re: Set Dir for user files
>>> To: dev@ofbiz.apache.org
>>> Date: Saturday, April 24, 2010, 11:15 AM
>>> 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 <bjf...@free-man.net>
>>> wrote:
>>>>> From: BJ Freeman <bjf...@free-man.net>
>>>>> Subject: Re: Set Dir for user files
>>>>> To: dev@ofbiz.apache.org
>>>>> 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 <bjf...@free-man.net>
>>>>> wrote:
>>>>>>> From: BJ Freeman <bjf...@free-man.net>
>>>>>>> Subject: Set Dir for user files
>>>>>>> To: dev@ofbiz.apache.org
>>>>>>> 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