Theres already something like this, its mandatory to use 1.7.1 or greater http://svn.apache.org/repos/asf/ofbiz/trunk/macros.xml
On Wed, Sep 8, 2010 at 9:46 PM, Mike Z <[email protected]> wrote: > I never knew there was a difference. Maybe it would be better to > create a script that forces the use of ./ant, and/or create a Makefile > that builds various flavors of ofbiz. > > On Wed, Sep 8, 2010 at 9:06 AM, Jacques Le Roux > <[email protected]> wrote: > > You should preferably use the ant version packed with OFBiz. Else you > might > > get bad surprises... > > > > Then use ./ant rather than ant > > > > Jacques > > > > From: "Dan Dodd" <[email protected]> > >> > >> MavrickIT, > >> > >> I feel your pain. > >> I'll assume that this is not a production server but one you are using > to > >> learn OFBiz and ubuntu. > >> > >> I built an ubuntu server, added svn, ant and the JDK using the apt-get > >> commands which will put them in the right places. Most of my help came > >> from the ubuntu forums which are great. Search the ubuntu forums for --- > >> apt-get svn -- and you'll find lots of info. Here's what I did: > >> $ sudo apt-get update > >> $ sudo apt-get install subversion > >> $ sudo apt-get install ant > >> $ sudo apt-get install sun-java6-jdk > >> > >> And add these lines in your /home/youruserid/.bashrc near the top. > >> #JAVA > >> export JAVA_HOME=/usr/bin/java > >> > >> Just remember to use the sudo command before other commands as that > causes > >> your commands to run as root for any permissions issue. Like above. > >> Then I did the svn co command to get the source. > >> > >> INITIAL DOWNLOAD > >> $ cd /opt (I put ofbiz in /opt...) > >> $ sudo svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz > >> this will take awhile but you will have the trunk on a new folder called > >> ofbiz > >> $ cd ofbiz > >> $ sudo ant run-install > >> (about 7m 23s on the old PC I use for ubuntu & OFBiz but 34m on my xp > >> laptop) > >> This will build your ofbiz.jar file and populate the data > >> When it is done run: > >> $ sudo ./startofbiz.sh > >> This will give a lot of output and end with something like this, when it > >> is ready to try: > >> ------------------ > >> 2009-10-06 06:25:34,806 (main) [ BeanShellContainer.java:101:INFO ] > >> NOTICE: BeanShell service ports are not secure. Please protect the ports > >> ---------------------- > >> point your browser to ( if it is on the same computer ) > >> http://127.0.0.1:8080/ecommerce > >> or https://127.0.0.1:8443/catalog/control/main > >> > >> that should work, if not, I'd like to refine it so it does. > >> > >> Updating is easy > >> $ cd /opt/ofbiz > >> $ sudo svn up > >> $ sudo ./stopofbiz.sh > >> $ sudo ./stopofbiz.sh > >> Yes I seem to have to do it twice. > >> You can check to see if ofbiz is running with > >> $ ps -ef | grep ofbiz > >> Which will have the line: > >> > >> > >> $ sudo ant > >> $ sudo ./startofbiz.sh > >> If it has an error in starting , run > >> $ sudo ant clean-all run-install > >> To get a clean database and reinstall the demo data. Then retry > >> $ sudo ./startofbiz.sh > >> > >> > >> > >> Dan Dodd > >> > >> IHOP-KC > >> [email protected] > >> > >> -----Original Message----- > >> From: Ruth Hoffman [mailto:[email protected]] > >> Sent: Monday, October 05, 2009 9:39 PM > >> To: [email protected] > >> Subject: Re: Ofbiz installation tutorial??? > >> > >> Hi MavrickIT: > >> How about not using "wget" and use the download button from the Wiki. As > >> for version, I suggest the one pointed to by the download button. Beyond > >> that, I can't help you. > >> Regards, > >> Ruth > >> > >> MavrickIT wrote: > >>> > >>> Hey Hoffman, > >>> Thanks for the solid solution. But I am stuck in again. > >>> $wget http://build.ofbiz.org/ofbiz-trunk-current.zip or > >>> $wget http://build.ofbiz.org/ofbiz-rel9.04-current.zip > >>> typing those commands ofbiz.zip is not downloaded anyway. > >>> so, have no idea of downloading it. What should be the command exactly. > >> > >> even > >>> > >>> I tried lw-download something like this. Not working. > >>> I find an error 404 not found. like the page cannot be found in any > >> > >> browser > >>> > >>> we see. 404 error means the same. > >>> So.. please help me. > >>> Thanks > >>> > >>> > >>> > >>> > >>> Ruth Hoffman-2 wrote: > >>> > >>>> Hello MavrickIT: > >>>> IMHO, take baby steps: Start by downloading a "zip'd" version from the > >>>> wiki, http://build.ofbiz.org and not the Subversion (SVN) package. > The > >> > >>>> instructions regarding which download is appropriate given your > >>>> situation are confusing at best. I prefer to keep it simple when > >> > >> getting > >>>> > >>>> started. A little excerpt from my recent book: > >>>> > >>>> Currently, if you visit the OFBiz site and decide to download a > >>>> version, > >>>> you have several options. The easiest thing to do is follow the big > >>>> download button and get the "nightly build". This is a prepackaged > >>>> version > >>>> ready to unzip and run. Nightly builds contain everything necessary > >> > >> to > >>>> > >>>> execute the demonstrations discussed in this book. They also > >> > >> contain > >>>> > >>>> all > >>>> the source code and other artifacts including build scripts that > >> > >> are > >>>> > >>>> used to > >>>> create the nightly builds. In other words, you get "all that and > >> > >> the > >>>> > >>>> source > >>>> too"! > >>>> > >>>> You won't need Tomcat, SVN or Ant to download a nightly build and get > >> > >> up > >>>> > >>>> and running quickly. Simply, create the directory you wish to run > OFBiz > >> > >>>> in (make sure that Java is on the classpath while working in this > >>>> directory), change to that directory, unzip your file there and > startup > >> > >>>> OFBiz. For example: > >>>> > >>>> 1) Create a directory such as /home/ofbiz > >>>> 2) Download the zip file to your new directory. You will have > something > >> > >>>> that looks like this: /home/ofbiz/ofbizdownload.zip > >>>> 3) Unzip your file using something like gzip (Not sure what the Ubuntu > >>>> unzip command is.) > >>>> 4) Move to the unzipped file location doing something like: cd > >>>> /home/ofbiz/ofbizdownload > >>>> 4) Run the Unix OFBiz invocation script that comes with the > >>>> distribution: ./startofbiz.sh > >>>> 5) Navigate to the ecommerce startup page > >> > >> http://localhost:8080/ecommerce > >>>> > >>>> 6) Observe that you see the ecommerce landing page > >>>> > >>>> Once you understand what you've got out-of-the-box and you are ready > to > >> > >>>> do some development work, then consider downloading from SVN. > >>>> > >>>> Regards, > >>>> Ruth Hoffman > >>>> http://www.myofbiz.com > >>>> > >>>> MavrickIT wrote: > >>>> > >>>>> Thanks Patel for trying to help me out. I have gone through the links > >>>>> already > >>>>> that you gave me. Thing is, I already installed JRE6, full SDK, and > >>>>> tomcat, > >>>>> SVN, ANT etc. These were installed in root by default. > >>>>> I created folder /home/ofbiz. So, there is nothing inside > >> > >> ...home/ofbiz$ > >>>>> > >>>>> I performed svn co http://svn.apache...... > >>>>> Even I tried svn co http://................../ofbiz9+ and svn co > >>>>> http://......../ofbiz4.0 > >>>>> > >>>>> So, how could I download ofbiz or even extract it, I don't know. > Even, > >>>>> from > >>>>> where to download it? > >>>>> Some google sites say, to download ofbiz separately and extract it to > >>>>> /home/ofbiz user. Somewhere > >>>>> (http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide) > >> > >> it's > >>>>> > >>>>> shown that, "OFBiz with embedded Tomcat". > >>>>> I can't find any exact solution. I am yet confused what should I type > >> > >> @ > >>>>> > >>>>> the > >>>>> terminal for installing Ofbiz from the beginning. > >>>>> Waiting for any suitable reply.:-( > >>>>> Thank you. > >>>>> > >>>>> > >>>>> > >>>>> Anil Patel-3 wrote: > >>>>> > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> For quick setup use > >>>>>> http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide > >>>>>> > >>>>>> Please see following documents to setup development/staging > >> > >> environment. > >>>>>> > >>>>>> > >> > http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Se > >> tup+Guide > >>>>>> > >> > http://docs.ofbiz.org/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide > >>>>>> > >>>>>> > >>>>>> Regards > >>>>>> Anil patel > >>>>>> > >>>>>> > >>>>>> On Oct 2, 2009, at 12:34 PM, MavrickIT wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>>> Can anybody help me out for Ofbiz installation guide [step by step > >>>>>>> command > >>>>>>> lines] from the Terminal (Ububntu)? > >>>>>>> > >>>>>>> I've been facing lots trouble about it. Please find me a solution. > I > >> > >>>>>>> found > >>>>>>> no solid step by step commands tutorials for installing ofbiz or > >>>>>>> running it. > >>>>>>> well, I am newbie to linux as well. Eventually, I don't even know > >>>>>>> how to > >>>>>>> extract or download ofbiz. > >>>>>>> Please help me. > >>>>>>> -- > >>>>>>> View this message in context: > >>>>>>> > >> > http://www.nabble.com/Ofbiz-installation-tutorial----tp25716734p25716734.h > >> tml > >>>>>>> > >>>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>> > >>> > >>> > >> > > > > > -- Regards, Varun Bhansaly
