RE: Problem with Classpath files after upgrading to 1.02

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Jun 17 2003 - 20:04:28 EDT

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

    I removed the contents of those files (made them all zero bytes) and
    refreshed and rebuilt the project. They stayed at zero bytes. I then
    changed the build path. The contents of the files went back to
    An empty file result in a full filesystem scan

    Puzzling.

    Chuck

    >-----Original Message-----
    >From: Ulrich Köster [mailto:ulric..bjectstyle.org]
    >Sent: Tuesday, June 17, 2003 2:46 AM
    >To: Chuck Hill
    >Cc: woproject-de..bjectstyle.org
    >Subject: Re: Problem with Classpath files after upgrading to 1.02
    >
    >
    >Hi Chuck,
    >
    >in 1.0.2 the generation of the ant.* files happens when the classpath
    >is changed. They are permanent now.
    >
    >The ordering of the steps is mixed up.
    >
    >- Update the build.xml
    >- Make a refresh
    >- Close and open the project
    >
    >Could you create a new Application 1.0.2 and check the Classpath.txt of
    >it. You may have to invoke a build and refresh the project to see the
    >woa.
    >
    >
    >Ulrich
    >
    >Am Montag, 16.06.03 um 23:31 Uhr schrieb Chuck Hill:
    >
    >> 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.pro
    >> p
    >> ertie
    >> 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
    >
    >
    >
    >
    >
    >Confidential & Privileged
    >
    >Unless otherwise indicated or obvious from its nature, the information
    contained in this communication is attorney-client privileged and
    confidential information/work product. This communication is intended for
    the use of the individual or entity named above. If the reader of this
    communication is not the intended recipient, you are hereby notified that
    any dissemination, distribution or copying of this communication is
    strictly prohibited. If you have received this communication in error or
    are not sure whether it is privileged, please immediately notify us by
    return e-mail and destroy any copies--electronic, paper or otherwise--which
    you may have of this communication.
    >
    >
    >
    >
    >

    --
    

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



    This archive was generated by hypermail 2.0.0 : Tue Jun 17 2003 - 20:01:55 EDT