• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ant Classpath Problems [Duh. Fixed]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ant Classpath Problems [Duh. Fixed]


  • Subject: Re: Ant Classpath Problems [Duh. Fixed]
  • From: David Avendasora <email@hidden>
  • Date: Fri, 7 Aug 2009 07:20:32 -0400


On Aug 6, 2009, at 11:18 PM, Chuck Hill wrote:


On Aug 6, 2009, at 3:09 PM, David Avendasora wrote:

Hi all,

I've got a weird one.

<bitesTongueReallyHard/>

:-P

I have a brand new MBP that I am setting up my development environment on.

Eclipse/WOLips are installed and running correctly and can build Wonder just fine using the Incremental builder.


Here's the catch. I've never installed WO on this machine using the standard Apple-supplied installer. I used the WOInstaller.jar to create an installation in /Developer/WebObjects/Versions/543/.

I then set the Preferences -> WOLips -> Build -> WOLips Properties File to /Developer/WebObjects/Versions/543/wolips.properties and that file has all the paths pointing to the correct location, and like I said, the Incremental builder works just fine.

But both building with Ant both in Hudson and with Hudson fails when trying to build Wonder because it can't find the WO Installation.

I'm calling the following Ant task to build Wonder in Hudson:

ant frameworks -propertyfile /Developer/WebObjects/Versions/ TotalView-3.3/wolips.properties

This should build the frameworks in my "Roots" directory, but it isn't. I get the following errors:

Started by user anonymous
Building on master
Updating https://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder@8988
At revision 8988
no change for https://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder since the previous build
Unpacking http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip to /Developer/Hudson/Home/tools/HudsonAnt on Hudson
[Wonder] $ /Developer/Hudson/Home/tools/HudsonAnt/bin/ant frameworks -propertyfile /Developer/WebObjects/Versions/ TotalView-3.3/wolips.properties
Buildfile: build.xml


frameworks:

frameworks.all:

ERJars.all:

global.environment:

global.properties:

global.prepare:

global.compile:
    [echo] Frameworks/Core/ERJars/Sources

global.dummy:

global.dummy:

global.framework.build:
[woframework] Installing ERJars in /Developer/WebObjects/Versions/ TotalView-3.3/Roots
[jar] Building jar: /Developer/WebObjects/Versions/ TotalView-3.3/Roots/ERJars-5.0.jar
[echo] -------------------------------------
[echo] ERJars.framework done
[echo] -------------------------------------


JavaWOExtensions.all:

global.environment:

global.properties:

global.prepare:

global.compile:
    [echo] Frameworks/Core/JavaWOExtensions/Sources

global.dummy:
[wocompile] Compiling 56 source files to /Developer/WebObjects/ Versions/TotalView-3.3/Roots/classes/JavaWOExtensions
[wocompile] /Developer/Hudson/Home/jobs/Wonder for TotalView 3.3/ workspace/Wonder/Frameworks/Core/JavaWOExtensions/Sources/com/ webobjects/woextensions/JSAlertPanel.java:10: package com.webobjects.appserver does not exist
[wocompile] import com.webobjects.appserver.WOContext;
[wocompile] ^
The setting that is telling it to build in the /Developer/ WebObjects/Versions/543/Roots/ directory is in that same wolips.properties file, so I know Ant is reading it. Why isn't it finding the WO Frameworks as defined?

42?


I get the same result if I build the project from the command line.

Is there any chance that the Ant build is ignoring the wolips.properties file and simply looking in the default location (/ System/Library/)?


Maybe?

Look in Wonder/Build/build/generic.xml on line 281:

<frameworks root="System" if="wo.system.root.bundles" bundles="$ {wo.system.root.bundles}" embed="${wo.system.root.bundles.embed}" dir="${wo.system.frameworks}"/>

That dir="${wo.system.frameworks}" looks suspicious to me. Try deleting that. Did that help?

Also try adding these lines just before the wocompile task (line 266)

<echo >wo.system is ${wo.system}</echo>
<echo >wo.system.frameworks is ${wo.system.frameworks}</echo>

Does that show the correct values?

I can't see anything obvious that is wrong.

Chuck, Chuck, Chuck. You are slipping.

How could you miss the fact that I am trying to build Wonder revision 8988, which has all sorts of different variable names? You know, like "wo.wosystemroot" instead of "wo.system.root" and such. I mean, really! Just because I didn't tell you, you couldn't figure it out?

Once I added the 8988 version of the standard variables to the wolips.properties file the build ran without a hitch.

I'm so disappointed in you for not being able to just figure out my screw-ups anymore.

In disillusionment,

Dave





Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects










_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Ant Classpath Problems (From: David Avendasora <email@hidden>)
 >Re: Ant Classpath Problems (From: Chuck Hill <email@hidden>)

  • Prev by Date: Session... when are they created?
  • Next by Date: Re: Session... when are they created?
  • Previous by thread: Re: Ant Classpath Problems
  • Next by thread: [ANN] WOProject Maven Archetypes 2.1
  • Index(es):
    • Date
    • Thread