RE: Split Install with WOLips, on Win2K Machine

From: Pierre Bernard (Pierre.Bernar..cl.lu)
Date: Tue Dec 02 2003 - 10:35:41 EST

  • Next message: Bill Michell: "Using the WO Frameworks container and Debugging"

    Hi!

    This is what my subclass looks like:

    /** Subclass of the WOLips defined task to provide for split installs
     *
     *..uthor bernard
     *..ersion $Id: WOApplication.java,v 1.4 2003/09/23 13:58:43 bernard Exp $
     */
    public class WOApplication extends org.objectstyle.woproject.ant.WOApplication
    {
            // Public instance methods

            /* (non-Javadoc)
             *..ee org.apache.tools.ant.Task#execute()
             */
            public void execute() throws BuildException
            {
                    Project project = getProject();

                    if (project != null)
                    {
                            setWsDestDir(project.getProperty(Environment.MBS_WS_DESTDIR));
                    }

                    super.execute();
            }
            
            /* TBD patch for WOLips bug. Remove ASAP
             *..ee org.objectstyle.woproject.ant.WOTask#wsresourcesDestDir()
             */
            protected File wsresourcesDestDir()
            {
                    File file = new File(webServerDir(), "WebObjects");
                    File file1 = new File(file, name + ".woa");
                    File file2 = new File(file1, "Contents");
                    
                    return new File(file2, "WebServerResources");
            }
    }

    In addition to the build.xml file in the individual projects I have an Ant script named install.xml which defines references the above subclass by defining a task:

            <taskdef name="woapplication" classname="lu.bcl.mbs.install.WOApplication">
            </taskdef>
            
    The install script then goes on to call the build scripts with this task definition. Actually I built a set of tasks and scripts to deploy a dynamic set of projects retrieved from CVS.

    Pierre.

    --
    Got a hang for movies?
    http://homepage.mac.com/I_love_my/movies.html 
    

    -----Original Message----- From: RIAHI Farshad [mailto:farshad.riah..ediware.fr] Sent: Tuesday, December 02, 2003 4:04 PM To: Pierre Bernard; Ulrich Köster Cc: Woproject Subject: RE: Split Install with WOLips, on Win2K Machine

    Thanks for replying. In fact I saw this page on ObjectStyle but I don't understand that I have to modify the build.xml file. I thought I had to make a new file !!! Any way, it runs now.

    Just a final question to Pierre : How do you "Subclass" the WOApplication ? Can you send a build.xml file for example please ?!

    Thanks in advance.

    Farshad.

    > -----Message d'origine----- > De : Pierre Bernard [mailto:Pierre.Bernar..cl.lu] > Envoyé : mardi 2 décembre 2003 15:29 > Ŕ : Ulrich Köster; RIAHI Farshad > Cc : Woproject > Objet : RE: Split Install with WOLips, on Win2K Machine > > > Or subclass the WOApplication & WOFramework task to add the > required argument. > > The advantage of this is that you don't need to modify your > build.xml between development and release installations. You > can make development installations from within Eclispe and > use an external Ant script to call your various build > scripts. That external script defines the WOAppication & > WOFramework tasks to map to your modified versions of these > WOLips tasks. > > Pierre > > > -- > Got a hang for movies? > http://homepage.mac.com/I_love_my/movies.html > > -----Original Message----- > From: Ulrich Köster [mailto:ulric..bjectstyle.org] > Sent: Tuesday, December 02, 2003 3:20 PM > To: RIAHI Farshad > Cc: Woproject > Subject: Re: Split Install with WOLips, on Win2K Machine > > > Hi Farshad, > > you have to modify the build.xml: > http://objectstyle.org/woproject/ant/woapplication.html > > Ulrich > > > Am 02.12.2003 um 12:28 schrieb RIAHI Farshad: > > > Hi, > > I'm currently using WO 5.2, Eclipse 2.1.1, WOLIPS 1.0.7.23. > > I would make a split install for my application, on my > Win2000 Machine. > > > > I searched the Web (and essentially objectstyle.org) on > split install > > with > > WOLips. > > I found the WOLips 1.0.4 features : "support for split install" but > > dont > > find more !!! > > I found only some discussions about using ant tasks , but I don't > > find any > > example nor any "How To". > > > > Does anyone have a "How To", or an example file, or both ;-)) > > > > Any advice will be appreciated. > > > > Thanks in advance, > > > > Farshad. > > > > ********************************************************************** > This email and any files transmitted with it are intended solely for > the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify the sender > of this message. (Pierre.Bernar..cl.lu) > This email message has been checked for the presence of computer > viruses; however this protection does not ensure this message is > virus free. > Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu > ********************************************************************** >

    ********************************************************************** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender of this message. (Pierre.Bernar..cl.lu) This email message has been checked for the presence of computer viruses; however this protection does not ensure this message is virus free. Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu **********************************************************************



    This archive was generated by hypermail 2.0.0 : Tue Dec 02 2003 - 10:36:50 EST