ssdd

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Mon Jun 09 2003 - 07:30:39 EDT

  • Next message: Ulrich Köster: "Re: ssdd"

    hi,

    could somebody test this(It's a build.xml for WOLips:

    Set the project name and take a look at the comment of the ssdd target.
    What should go into the classes directory?

    Ulrich

    <project name="MyProject" default="build" basedir=".">

            <!-- main targets -->
            <!-- add optional targets to depends list if needed -->
            <target name="build" depends="setProps,init.build,build.woapp,ssdd"/>

            <target name="install"
    depends="setProps,init.install,build.woapp,ssdd"/>
            
            <target name="clean" depends="setProps">
                      <delete dir="${project.name}.woa"/>
            </target>

            <!-- property determination -->
            <target name="setProps">
                    <property file="build.properties"/>
                    <property
    file="${user.home}${file.separator}Library${file.separator}wobuild.prope
    rties"/>
                    <condition property="wo.properties.check.failed">
                            <not>
                                 <and>
                                           <isset property="wo.wosystemroot"/>
                                           <isset property="wo.wolocalroot"/>
                                 </and>
                         </not>
                       </condition>
                       <fail message="Could not find
    ${user.home}${file.separator}Library${file.separator}wobuild.properties.
    " if="wo.properties.check.failed"/>
                    <property name="install.dir"
    value="${wo.wolocalroot}/Library/Webobjects/Applications"/>
            </target>
                    
            <!-- basic initializations -->
            <target name="init.install">
                     <tstamp/>
                    <property name="dest.dir" value="${install.dir}"/>
            </target>
            
            <target name="init.build">
                     <tstamp/>
                    <property name="dest.dir" value="."/>
            </target>
            
            <!-- woproject tasks -->
            <target name="build.woapp">
                    <woapplication name="${project.name}" stdFrameworks="false"
    destDir="${dest.dir}">
                                <classes dir="${classes.dir}">
                                </classes>
                                <wsresources dir=".">
                                        <include name="addYourWebServerResourcesHere"/>
                                    <exclude name="**/*.woa/**"/>
                            </wsresources>
                                <resources dir=".">
                                    <include name="Properties"/>
                                        <include name="**/*.eomodeld/"/>
                                        <include name="**/*.d2wmodel"/>
                                    <include name="**/*.wo/"/>
                                    <include name="**/*.api"/>
                                    <include name="**/*.strings"/>
                                    <exclude name="**/*.eomodeld~/"/>
                                    <exclude name="**/*.woa/**"/>
                            </resources>
                            <frameworks root="${wo.wosystemroot}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.wo.wosystemroot"/>
                                    </patternset>
                                </frameworks>
                                <frameworks root="${wo.wolocalroot}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.wo.wolocalroot"/>
                                    </patternset>
                                </frameworks>
                            <frameworks root="${user.home}">
                                           <patternset>
                                               <includesfile name="ant.frameworks.user.home"/>
                                    </patternset>
                                </frameworks>
                            <otherclasspath root="${wo.wosystemroot}">
                                        <patternset>
                                               <includesfile name="ant.classpaths.wo.wosystemroot"/>
                                    </patternset>
                            </otherclasspath>
                            <lib dir=".">
                                    <include name="Add .jar's that should be copied in the woa."/>
                                    <exclude name="**/*.woa/**"/>
                            </lib>
                        </woapplication>
            </target>

            <!-- optional targets -->
            
            <!-- optional ssdd target-->
            <!-- To use this target remove the if statement and create the LICENSE
    and web.xml files in your project.-->
            <target name="ssdd" if="${never}">
                    <war destfile="${project.name}.war" webxml="web.xml">
                               <fileset dir=".">
                                       <include name="${project.name}.woa/**"/>
                                       <include name="LICENSE"/>
                               </fileset>
                              <lib
    dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/
    WebServerResources/Java/">
                                 <include name="JavaWOJSPServlet_client.jar"/>
                               </lib>
                               <zipfileset
    dir="${wo.wosystemroot}/Library/Frameworks/JavaWOJSPServlet.framework/
    Resources/" prefix="tlds">
                         <include name="WOtaglib_1_0.tld"/>
                 </zipfileset>
                    </war>
            </target>

            <!-- copy strings files -->
            <target name="copy.strings">
                         <copy todir="${dest.dir}/${project.name}.woa/Contents/Resources">
                                    <fileset dir="." casesensitive="yes">
                                    <include name="*.strings"/>
                                     <include name="**/*.strings"/>
                                 </fileset>
                              <mapper type="flatten"/>
                          </copy>
              </target>

    </project>



    This archive was generated by hypermail 2.0.0 : Mon Jun 09 2003 - 07:29:17 EDT