Postituslista webobjects-dev@wocommunity.org Sanoma #631
Lähettäjä: Peer Sandtner <webobjects-dev@wocommunity.org>
Lähettäjä: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Aihe: [WO-DEV] Re: Struggling with ant command line build
Päiväys: Mon, 20 Apr 2026 08:38:41 +0200
Vastaanottaja: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Hi Markus,

to be honest, I’ve never really looked into the Wonder frameworks build process and have always just used the binary distribution. So I’m not at all familiar with the procedure via “WonderSource/Build/build/generic.xml”.

The project I’m working on uses its own tailored build-all.xml (placed in the root folder), which builds and installs the individual frameworks and applications in a fixed order and also manually collects the Wonder frameworks and and copies them to the appropriate location.


This should make the principle clear:
---
<project name="ProjectX" basedir=".">
  
  <target name="install" depends="build" />
  
  <target name="build" depends="clean">    
    <ant dir="Project1" antfile="build.xml">
      <target name="clean" />
      <target name="install" />
    </ant>
    <ant dir="Project2" antfile="build.xml">
      <target name="clean" />
      <target name="install" />
    </ant>
    
    <ant dir="App1" antfile="build.xml">
      <target name="clean" />
      <target name="install" />
    </ant>
  </target>
.
.
.

Peer





Am 18.04.2026 um 16:20 schrieb Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org>:

Hi Peer,

On 17 Apr 2026, at 21:38, Peer Sandtner <webobjects-dev@wocommunity.org> wrote:

Hi Markus,

I also use an ant build outside of Eclipse. I could imagine that a missing reference to 

~/Library/Application Support/WOLips/wolips.properties

this exists and is properly found and read. You can see this clearly from the full log (which I attached to my original message). 
might be the problem. However, I’m building against installed Wonder frameworks, not against the Wonder source code… What do you think?
I am also not building agains “the source”. I used the wonder source to build and install the binaries into the paths ...wo.local.root... and ...wo.system.root.. ( I named the locations accordingly). When I check the classpath generated I can pick any arbitrary framework reference and confirm it exists at that path.
Some of the frameworks have attached sources and these are in the same location as the binaries. That is why they end up on the classpath. However this should not matter as the classpath is just a list of jars that are searched for a class. If a class is found in one of the files, good, if not the search continues until the class is found or the classpath is exhausted. This is exactly what confuses me. The classpath seems ok so the classes should be found.

Would you mind sharing your build command/script? I must miss something but clearly cannot see it.

Thank you
---markus---


Regards,
Peer



Am 16.04.2026 um 13:45 schrieb Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org>:

No one doing command line builds with ant? Or has ever done so?
I cannot change my environment and go to maven with 50+ projects and absolutely no experience yet. So if anyone has any idea what’s wrong here.....

On 14 Apr 2026, at 14:41, Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org> wrote:

I know I am outdated and old-fashioned and not modern but I still have ant based projects. Until now I have built frameworks and applications with the WOLips ant tools. Works perfect. But now I have a project that uses some 40+ frameworks and in total consists of well over 40 WOapps. Building all those by hand .... well, you guess --> automation is the key. So I started looking into command line build that can be scripted. 
Here is one of the apps I build with the help of generic.xml ant build file. The wocompile phase fails because it cannot find the WO and Wonder frameworks. But they are there, in the regular place and so far all paths seem to be correct (java class path). I must miss something but fail to see it. Anyone having better eyes than me? Directly included here is just the failing part. I have attached a ZIP file containing the full output for reference (hope the attachment makes it through)

Thanks for helping me
---markus---

$ ant -debug -emacs -f /Users/Shared/Developer/SourceDistributions/WonderSource/Build/build/generic.xml \
-Dproject.type=application \
-Dproject.name=ImmoData \
-Dproject.principal.class=ch.kastl.immodata.Application \
-Dproject.dir=/Users/ruggiero/workspace/ImmoData \
-Dwo.local.root.bundles.embed=true \
-Dwo.system.root.bundles.embed=true \
generic.build

. . . . [snip tons of output, all looking perfectly ok] . . . . 

Compilation arguments:
'-d'
'/Users/ruggiero/Roots/classes/ImmoData'
'-classpath'
'/Users/ruggiero/Roots/classes/ImmoData:/Users/ruggiero/workspace/ImmoData/Libraries/fop.jar:/Users/ruggiero/workspace/ImmoData/Libraries/mysql-connector-java-5.1.46-bin.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWOJSPServlet.framework/Resources/Java/javawojspservlet.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWOJSPServlet.framework/Resources/Java/javawojspservlet.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWebServicesSupport.framework/Resources/Java/javawebservicessupport.jar.src.zip:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaWebServicesSupport.framework/Resources/Java/javawebservicessupport.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/Users/Shared/Developer/Libraries/Wonder/wo.system.root/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar.src.zip'
'-sourcepath'
'/Users/ruggiero/workspace/ImmoData/Sources'
'-target'
'1.8'
'-encoding'
'utf-8'
'-g'
'-source'
'1.8'

The ' characters around the executable and arguments are
not part of the command.
Files to be compiled:
......[snip]......
warning: [options] bootstrap class path not set in conjunction with -source 8
/Users/ruggiero/workspace/ImmoData/Sources/ch/kastl/immodata/Application.java:14: error: package er.extensions.appserver does not exist
import er.extensions.appserver.ERXApplication;
                              ^



<ant compile debug full output.txt.zip>


Markus Ruggiero

rucotec GmbH                        web https://rucotec.ch
Leonhardsberg 1                   email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701










Markus Ruggiero

rucotec GmbH                        web https://rucotec.ch
Leonhardsberg 1                   email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701











Markus Ruggiero

rucotec GmbH                        web https://rucotec.ch
Leonhardsberg 1                   email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701









Tilaa (FEED) Tilaa (DIGEST) Tilaa (INDEX) Peru tilaus Listmaster posti