Ok, Erik, I'm with you on this.  You were thinking exactly what I was
thinking -- I tried this, but couldn't get it to work.  In the Ant war task
I tried to include the slide.properties file in the nested classes element
as follows:

-------<snippet>-------------

<target name="dist" depends="ginsu_jar"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}"/>

    <!-- Put everything in ${build} into the ginsu.jar file -->
    
    
    <war destfile="${dist}/ginsu.war" webxml="src/metadata/web.xml">
        <fileset dir="${metadata}" excludesfile="${metadata}/web.xml">
        </fileset>
        <!-- <classes dir="${build}"/>  -->
        <classes dir="${metadata}"
includesfile="src/metadata/slide.properties"/> 
        <lib dir="lib"/>
        <!-- <classes dir="build/ginsu"/> -->
        <zipfileset dir="src/images" 
              prefix="images"/>
    </war>
  </target>
--------</snippet>------------

Note, that when I uncomment the <classes dir="$build}"/> line (where build
is a directory where only class files reside), a classes directory is
created in my war file.  But when I use the classes element as is above,
everything builds fine in ant, but I get no classes directory in my war
file.  My guess is that this classes element only allows files of type
*.class.  Any thoughts?

Erik, you were right about tomcat looking in the classes directory as part
of it's classpath.  Makes total sense.

-Thanks, dan


-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:03 AM
To: Slide Users Mailing List
Subject: Re: tomcat and slide.properties


Have you tried putting slide.properties in the WEB-INF/classes 
directory of your WAR file?   Using Ant, if you are using the <war> 
task to build a WAR file, use the nested <classes> element to put it 
there.  Or, if you are using <jar> to build a WAR file (which is 
perfectly fine to do), use a <zipfileset prefix="WEB-INF/classes">.

I'm just answering the Ant part of the question - I don't know if Slide 
is cool with the .properties file there or not.

        Erik

On Wednesday, March 26, 2003, at 09:55  AM, Tarkenton, Daniel S. wrote:
> Hi all.
>
> In a standalone application using the low level slide api (_not 
> webdav_), I
> can add the location of my slide.properties file to my system 
> classpath.
> The main purpose for having a slide.properties file is to tell slide 
> the
> location of the all important Domain.xml config file for slide.  Well, 
> now I
> am trying to figure out how to put slide.properties into tomcat.
>
> I am using Ant to deploy my application into a war file.  I basically 
> just
> drop this file into tomcat's webapps dir, restart tomcat, and go to 
> town.  I
> am having problems getting Ant to automatically put slide.properties 
> into a
> specific directory of my war file so that tomcat won't require any 
> classpath
> configuration.  I'm looking for the solution of just dropping my war 
> file
> into tomcat, and allowing users to start accessing the web app.
>
> If anyone responds I will include my ant file and/or my source 
> directory
> structure for clarification if need be.
>
> Thanks a lot guys.
>
> -Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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

Reply via email to