• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ant Classpath Problems


  • Subject: Re: Ant Classpath Problems
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 6 Aug 2009 20:18:52 -0700


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

Hi all,

I've got a weird one.

<bitesTongueReallyHard/>


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 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
  • Follow-Ups:
    • Re: Ant Classpath Problems [Duh. Fixed]
      • From: David Avendasora <email@hidden>
References: 
 >Ant Classpath Problems (From: David Avendasora <email@hidden>)

  • Prev by Date: [ANN] WOProject Maven Archetypes 2.1
  • Next by Date: Hey! Where are my thread dumps?
  • Previous by thread: Re: Ant Classpath Problems
  • Next by thread: Re: Ant Classpath Problems [Duh. Fixed]
  • Index(es):
    • Date
    • Thread