Problem with Classpath files after upgrading to 1.02

From: Chuck Hill (chil..lobal-village.net)
Date: Mon Jun 16 2003 - 17:31:08 EDT

  • Next message: Ulrich Köster: "Re: Problem with Classpath files after upgrading to 1.02"

    Hi,

    I've upgraded to 1.02, followed the instructions about closing and opening
    the projects and replacing the build.xml files. Now I can build and run
    from inside WOLips, but the generated .woa only contains a partial
    classpath. Ant temp files get left around too, e.g.
    ant.frameworks.user.home. I've revereted to 1.01, reverted the build.xml
    and all is fine.

    Any ideas? I'm assuming that I've done something stupid...

    Chuck

    For example, ...DebuggingObjectGraph.woa\Contents\Windows\CLSSPATH.TXT
    contains only

    # JVM == java
    # JVMOptions ==
    # JDB == jdb
    # JDBOptions ==
    # ApplicationClass == Application
    APPROOT\Resources\Java\
    APPROOT\Resources\Java\debuggingobjectgraph.jar

    My build.xml now looks like this:
    <project name="DebuggingObjectGraph" default="build" basedir=".">

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

            <target name="install" depends="setProps,init.install,build.woapp"/>
            
            <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.propertie
    s"/>
                    <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 -->
            <!-- 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>

    --
    

    Chuck Hill chil..lobal-village.net Global Village Consulting Inc. http://www.global-village.net



    This archive was generated by hypermail 2.0.0 : Mon Jun 16 2003 - 17:28:23 EDT