Re: Problem with Classpath files after upgrading to 1.02

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Jun 17 2003 - 16:00:13 EDT

  • Next message: Sacha Mallais: "Re: WOLips: PB.project file has excluded .java files"

    Hi Ulrich,

    At 08:45 AM 17/06/2003 +0200, Ulrich Köster wrote:
    >
    >in 1.0.2 the generation of the ant.* files happens when the classpath
    >is changed. They are permanent now.
    >
    Mine all contain a single line:
    An empty file result in a full filesystem scan

    >The ordering of the steps is mixed up.
    >
    >- Update the build.xml
    >- Make a refresh
    >- Close and open the project
    >
    That did not make any difference.

    >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.
    >
    I tried that, the newly created application also has an incomplete
    Classpath.txt. Oh my, what have I done? Sacha tried this and it worked
    for him so it much be something I've done. I also tried updating to
    Eclipse 2.1.1 but that also had no effect.

    Any ideas?

    Chuck

    >
    >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.prop
    >> 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
    >
    >

    --
    

    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 - 15:58:27 EDT