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 <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> |
Good idea. Could you create a patch and submit it to Jira?
-Adrian --- On Sat, 4/24/10, BJ Freeman <[hidden email]> wrote: > From: BJ Freeman <[hidden email]> > Subject: Set Dir for user files > To: [hidden email] > 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 > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > > > |
In reply to this post by BJ Freeman
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 <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 <[hidden email]> wrote: > >> From: BJ Freeman <[hidden email]> >> Subject: Set Dir for user files >> To: [hidden email] >> 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 >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >> >> >> > > > > |
I don't understand the question. Could you rephrase it please?
-Adrian --- On Sat, 4/24/10, BJ Freeman <[hidden email]> wrote: > From: BJ Freeman <[hidden email]> > Subject: Re: Set Dir for user files > To: [hidden email] > 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 > <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 <[hidden email]> > wrote: > > > >> From: BJ Freeman <[hidden email]> > >> Subject: Set Dir for user files > >> To: [hidden email] > >> 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 > >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > >> > >> > >> > > > > > > > > > > > |
In reply to this post by BJ Freeman
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 <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 <[hidden email]> wrote: > >> From: BJ Freeman <[hidden email]> >> Subject: Re: Set Dir for user files >> To: [hidden email] >> 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 >> <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 <[hidden email]> >> wrote: >>>> From: BJ Freeman <[hidden email]> >>>> Subject: Set Dir for user files >>>> To: [hidden email] >>>> 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 >>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >>>> >>>> >>>> >>> >>> >>> >> >> > > > > |
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 <[hidden email]> wrote: > From: BJ Freeman <[hidden email]> > Subject: Re: Set Dir for user files > To: [hidden email] > 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 > <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 <[hidden email]> > wrote: > > > >> From: BJ Freeman <[hidden email]> > >> Subject: Re: Set Dir for user files > >> To: [hidden email] > >> 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 > >> <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 <[hidden email]> > >> wrote: > >>>> From: BJ Freeman <[hidden email]> > >>>> Subject: Set Dir for user files > >>>> To: [hidden email] > >>>> 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 > >>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >> > >> > > > > > > > > > > > |
In reply to this post by BJ Freeman
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 <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 <[hidden email]> wrote: > >> From: BJ Freeman <[hidden email]> >> Subject: Re: Set Dir for user files >> To: [hidden email] >> 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 >> <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 <[hidden email]> >> wrote: >>>> From: BJ Freeman <[hidden email]> >>>> Subject: Re: Set Dir for user files >>>> To: [hidden email] >>>> 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 >>>> <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 <[hidden email]> >>>> wrote: >>>>>> From: BJ Freeman <[hidden email]> >>>>>> Subject: Set Dir for user files >>>>>> To: [hidden email] >>>>>> 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 >>>>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>> >>> >>> >> >> > > > > |
In reply to this post by BJ Freeman
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 <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 > <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 <[hidden email]> wrote: >> >>> From: BJ Freeman <[hidden email]> >>> Subject: Re: Set Dir for user files >>> To: [hidden email] >>> 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 >>> <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 <[hidden email]> >>> wrote: >>>>> From: BJ Freeman <[hidden email]> >>>>> Subject: Re: Set Dir for user files >>>>> To: [hidden email] >>>>> 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 >>>>> <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 <[hidden email]> >>>>> wrote: >>>>>>> From: BJ Freeman <[hidden email]> >>>>>>> Subject: Set Dir for user files >>>>>>> To: [hidden email] >>>>>>> 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 >>>>>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>> >>>> >>> >> >> >> > > > |
That sounds like a good approach.
-Adrian --- On Sat, 4/24/10, BJ Freeman <[hidden email]> wrote: > From: BJ Freeman <[hidden email]> > Subject: Re: Set Dir for user files > To: [hidden email] > Date: Saturday, April 24, 2010, 12:20 PM > 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 > <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 > > <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 <[hidden email]> > wrote: > >> > >>> From: BJ Freeman <[hidden email]> > >>> Subject: Re: Set Dir for user files > >>> To: [hidden email] > >>> 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 > >>> <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 <[hidden email]> > >>> wrote: > >>>>> From: BJ Freeman <[hidden email]> > >>>>> Subject: Re: Set Dir for user files > >>>>> To: [hidden email] > >>>>> 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 > >>>>> <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 > <[hidden email]> > >>>>> wrote: > >>>>>>> From: BJ Freeman <[hidden email]> > >>>>>>> Subject: Set Dir for user > files > >>>>>>> To: [hidden email] > >>>>>>> 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 > >>>>>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>> > >>>> > >>> > >> > >> > >> > > > > > > > > > |
In reply to this post by BJ Freeman
For the record, all of those files seemed to be related to eBay so I'm assuming Hans put them there perhaps for testing or something. I don't believe they were uploaded by demo users.
Regards Scott HotWax Media http://www.hotwaxmedia.com On 25/04/2010, at 5:01 AM, BJ Freeman wrote: > 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 > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > > smime.p7s (3K) Download Attachment |
In reply to this post by BJ Freeman
Thanks Scott.
========================= 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 <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> Scott Gray sent the following on 4/24/2010 10:53 PM: > For the record, all of those files seemed to be related to eBay so I'm assuming Hans put them there perhaps for testing or something. I don't believe they were uploaded by demo users. > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 25/04/2010, at 5:01 AM, BJ Freeman wrote: > >> 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 >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >> >> > |
Free forum by Nabble | Edit this page |