Really just doing a typical build where it compiles, builds the war file,
cleans the old war file, moves the new one in, execute wdeploy, stop and
restart the server.Basically I have a pretty good start and with the input I
have received from you and AJ, I think I am on my way. It's just the first
time with this particular webserver and sometimes it saves time just to ask
if there are any pot holes to look out for. I am setting everything up with
a batch file then calling ant. Thanks, -Mark

-----Original Message-----
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 10:45 AM
To: Struts Users Mailing List
Subject: RE: Iplanet Enterprise WS


What kind of tasks are you trying to do?

I use the following with NetBeans and deploy to either Tomcat standalone or
JBoss/Tomcat (integrated):
(although I prefer JBoss/Tomcat for its immediate un-deploy/re-deploy when
the deploy target finished)

===========================================================
<project name="Project name here." default="main" basedir=".">

        <property file="build.properties"/>

    <property name="build.compiler"     value="${build.compiler}"/>
    <property name="build.dir"          value="${build.dir}" />
    <property name="dist.dir"           value="${dist.dir}"/>
    <property name="src.dir"            value="${src.dir}"/>
        <property name="servlet.jar"        value="${servlet.jar}"/>
    <property name="war.file"           value="${war.file}"/>
    <property name="deploy.dir"         value="${deploy.dir}"/>

        <path id="project.class.path">
                <fileset dir="./WEB-INF/lib/">
                        <include name="**/*.jar"/>
                </fileset>
                <pathelement path="${servlet.jar}"/>
        </path>

        <target name="main" depends="compile, war"/>
        <target name="main-deploy" depends="compile, war, deploy"/>

        <target name="compile">
      <javac    srcdir="${src.dir}"
                        destdir="${build.dir}"
                        debug="on"
                deprecation="on">
        <include name="**/*.java"/>
        <classpath refid="project.class.path"/>
      </javac>
    </target>

    <target name="war">
        <war warfile="${war.file}" webxml="./WEB-INF/web.xml">
               <fileset dir="./" includes="**/*.jsp, **/*.jpg, **/*.gif"
excludes="build.xml, *.war, **/*.nbattrs"/>
               <webinf  dir="./WEB-INF" includes="**/*" excludes="web.xml,
**/*.jar"/>
               <lib     dir="./WEB-INF/lib"/>
               <classes dir="${build.dir}"/>
        </war>
    </target>

    <target name="deploy">
        <copy todir="${deploy.dir}">
          <fileset dir="./" includes="${war.file}"/>
        </copy>
    </target>

    <target name="clean">
        <delete dir="${build.dir}" includeEmptyDirs="true" />
    </target>

</project>

============================================================

and my build.properties looks like this
build.compiler=modern
build.dir=./build
dist.dir=./dist
src.dir=./WEB-INF/src
war.name=struts-example-ojb
servlet.jar=../../lib/servlet.jar
deploy.dir=C:/jboss-3.0.1RC1_tomcat-4.0.4/server/default/deploy

=============================================================

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Mark Horn [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 10:35 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Iplanet Enterprise WS
>
>
> I am trying to configure Struts to run under IP Enterprise
> Webserver version
> 6. I am basically just writing a build script from scratch and am
> having to
> look up all the wdeploy stuff. Was hoping maybe someone else was working
> with this server, and would have some skeletal type files. -Mark
>
> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 10:31 AM
> To: Struts Users Mailing List
> Subject: RE: Iplanet Enterprise WS
>
>
> Why would a build.xml file be different for IPlanet than for any
> other IDE?
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -----Original Message-----
> > From: Mark Horn [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 8:38 AM
> > To: 'Struts Users Mailing List' (E-mail)
> > Subject: Iplanet Enterprise WS
> >
> >
> > Any one have any sample ant files for cofiguring Struts with Iplanet
> > Enterprise webserver ? Thanks, Mark
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to