Hi

Well, I dislike this as a ’solution’, but in the end I created a new Eclipse 
workspace, reimported my projects and the relevant Wonder frameworks, and 
everything works perfectly.

The old workspace still shows the same build error: the new one is good.

Thanks for your input. I will now stop searching for the cause since I can 
continue fine with the new workspace.  Good luck with your new laptop setup!

Liz


> On 28 Nov 2015, at 14:37, Theodore Petrosky <tedp...@yahoo.com 
> <mailto:tedp...@yahoo.com>> wrote:
> 
> I had no Run As -> Ant build, So I went looking in the Run menu and I found 
> the External Tools configuration.
> 
> how is your Ant build configured? maybe it is picking up too much, or maybe 
> you need to create a new external configuration. When I did that, I pointed 
> the buildfile  input to point to the build.xml in WOPayPal 
> (${workspace_loc:/WOPayPal/build.xml)
> 
> here is my output when I execute the new external ant build from the Run => 
> External Tools (new Ant Build) config.
> It seems to work, but even though I am logged in as an administrator, there 
> is no superuser do available, so I had to make sure the target directories 
> all had permissions for me to be able to write there.
> 
> I see your reference to your system configuration, I will be setting up a new 
> laptop this weekend and I will get more information on these  versions. 
> Although I will be using the Mars release of Eclipse.
> 
> 
> Buildfile: 
> /Users/asacksadmin/Repository/WonderSource/Frameworks/BusinessLogic/WOPayPal/build.xml
> clean:
> WOPayPal.all:
> global.environment:
> global.properties:
> global.framework.clean:
>    [delete] Deleting directory /Users/asacksadmin/Roots/classes/WOPayPal
>    [delete] Deleting directory /Users/asacksadmin/Roots/WOPayPal.framework
> build:
> WOPayPal.all:
> global.environment:
> global.properties:
> global.prepare:
>     [mkdir] Created dir: /Users/asacksadmin/Roots/classes/WOPayPal
> global.compile:
> global.dummy:
> [wocompile] Compiling 14 source files to 
> /Users/asacksadmin/Roots/classes/WOPayPal
> [wocompile] warning: [options] bootstrap class path not set in conjunction 
> with -source 1.5
> [wocompile] warning: [options] source value 1.5 is obsolete and will be 
> removed in a future release
> [wocompile] warning: [options] target value 1.5 is obsolete and will be 
> removed in a future release
> [wocompile] warning: [options] To suppress warnings about obsolete options, 
> use -Xlint:-options.
> [wocompile] Note: 
> /Users/asacksadmin/Repository/WonderSource/Frameworks/BusinessLogic/WOPayPal/Sources/er/wopaypal/PayPalAction.java
>  uses or overrides a deprecated API.
> [wocompile] Note: Recompile with -Xlint:deprecation for details.
> [wocompile] Note: Some input files use unchecked or unsafe operations.
> [wocompile] Note: Recompile with -Xlint:unchecked for details.
> [wocompile] 4 warnings
> global.dummy:
> global.unjar:
> global.framework.build:
>     [mkdir] Created dir: /Users/asacksadmin/Roots/WOPayPal.framework
> global.dummy:
> [woframework] Installing WOPayPal in /Users/asacksadmin/Roots
>       [jar] Building jar: /Users/asacksadmin/Roots/WOPayPal-6.0.jar
> global.dummy:
>      [echo] -------------------------------------
>      [echo] WOPayPal.framework done
>      [echo] -------------------------------------
> install:
> WOPayPal.all:
> global.environment:
> global.properties:
> global.framework.install:
>      [sync] Copying 46 files to /Library/Frameworks/WOPayPal.framework
>      [copy] Copying 1 file to /Users/asacksadmin/Roots/Library/WebObjects/lib
> web:
> WOPayPal.all:
> global.environment:
> global.properties:
> global.framework.web:
>      [sync] Copying 5 files to 
> /Library/WebServer/Documents/WebObjects/Frameworks/WOPayPal.framework/WebServerResources
>      [sync] Failed to change file modification time
>      [sync] Failed to change file modification time
>      [sync] Failed to change file modification time
>      [sync] Failed to change file modification time
>      [sync] Failed to change file modification time
> all:
> BUILD SUCCESSFUL
> Total time: 1 second
> 
> 
> 
>> On Nov 28, 2015, at 8:27 AM, Elizabeth Lynch <l...@plsys.co.uk 
>> <mailto:l...@plsys.co.uk>> wrote:
>> 
>> Hi Ted
>> 
>> The ‘liz’ user does have permissions to write to the Frameworks directory. 
>> My build.xml is the same as yours, and there are no strange characters or 
>> spaces as far as I can tell.
>> 
>> But my problem is not with the Eclipse  WoLips Ant Tools->Install - this 
>> works OK if I have already built the framework via the command line to the 
>> Roots directory. I get the same output you do.
>> 
>> But if I use the Run As -> Ant build,  then I get the build error.  What 
>> happens in your setup if you try that?
>> 
>> Liz
>> 
>> 
>>> On 27 Nov 2015, at 22:08, Theodore Petrosky <tedp...@yahoo.com 
>>> <mailto:tedp...@yahoo.com>> wrote:
>>> 
>>> I just right clicked on that framework (WOPayPal) and choose WOLips Ant 
>>> Tools install,this is what I got:
>>> 
>>> Buildfile: 
>>> /Users/asacksadmin/Repository/WonderSource/Frameworks/BusinessLogic/WOPayPal/build.xml
>>> install:
>>> WOPayPal.all:
>>> global.environment:
>>> global.properties:
>>> global.framework.install:
>>> BUILD SUCCESSFUL
>>> Total time: 460 milliseconds
>>> 
>>> I removed the WOPayPal.framework from /Library and re-ran the install from 
>>> Eclipse and it re-created the framework in /Library.
>>> 
>>> This is my build.xml file. Does this help?
>>> 
>>> Does your user ‘liz’ have permission to write in /Library/Frameworks? I 
>>> don’t see any spaces in the path, but are there any weird characters?
>>> 
>>> Ted
>>> 
>>> <project name="FrameworkBuild" default="all" basedir=".">
>>>     <xmlproperty file=".project"/>
>>>     <property name="project.name" value="${projectDescription.name}" />
>>>     <property file="build.properties" />
>>> 
>>>     <target name="clean">
>>>         <ant antFile="Build/build/build.xml" target="${project.name}.all" 
>>> dir="../../../">
>>>             <property name="build.action" value="clean" />
>>>         </ant>
>>>     </target>
>>>     <target name="build">
>>>         <ant antFile="Build/build/build.xml" target="${project.name}.all" 
>>> dir="../../../">
>>>             <property name="build.action" value="build" />
>>>         </ant>
>>>     </target>
>>>     <target name="install">
>>>         <ant antFile="Build/build/build.xml" target="${project.name}.all" 
>>> dir="../../../">
>>>             <property name="build.action" value="install" />
>>>         </ant>
>>>     </target>
>>>     <target name="web">
>>>         <ant antFile="Build/build/build.xml" target="${project.name}.all" 
>>> dir="../../../">
>>>             <property name="build.action" value="web" />
>>>         </ant>
>>>     </target>
>>>     <target name="test">
>>>         <ant antFile="Build/build/build.xml" target="${project.name}.all" 
>>> dir="../../../">
>>>             <property name="build.action" value="test" />
>>>         </ant>
>>>     </target>
>>>     <target name="all" depends="clean, build, install, web" />
>>> </project>
>>> 
>>> 
>>> 
>>>> On Nov 27, 2015, at 4:01 PM, Elizabeth Lynch <l...@plsys.co.uk 
>>>> <mailto:l...@plsys.co.uk>> wrote:
>>>> 
>>>> Hi Theodore
>>>> 
>>>> 
>>>>> On 27 Nov 2015, at 19:54, Theodore Petrosky <tedp...@yahoo.com 
>>>>> <mailto:tedp...@yahoo.com>> wrote:
>>>>> 
>>>>> have you tried to build from the command line:
>>>>> 
>>>>> cd to_Wonder_Directory
>>>>> sudo ant  frameworks frameworks.install
>>>> 
>>>> Thanks for getting back to me.
>>>> 
>>>> Yes, I already did that, and the frameworks build and install fine (I did 
>>>> say this at the end of my email but perhaps I wasn't clear!).  You are 
>>>> right - I could change my own project and remove the Wonder frameworks 
>>>> from my workspace and add the built frameworks from /Library/Frameworks to 
>>>> the classpath instead.  But if possible I would prefer to ‘fix’ 
>>>> Eclipse/ant so that I can use the Wonder source directly within the 
>>>> workspace.
>>>> 
>>>> Liz
>>>> 
>>>>> 
>>>>> I think that’s it
>>>>> 
>>>>>> On Nov 27, 2015, at 12:00 PM, Elizabeth Lynch <l...@plsys.co.uk 
>>>>>> <mailto:l...@plsys.co.uk>> wrote:
>>>>>> 
>>>>>> In Eclipse, if I use ‘Run As Ant build’ to build any of the Wonder 
>>>>>> frameworks, the build fails as below - the example is for WOPayPal.  I 
>>>>>> have googled this and looked at the list, but can’t find any answer 
>>>>>> which works for me. 
>>>>>> 
>>>>>> 
>>>>>> Buildfile: 
>>>>>> /Users/liz/Projects/WonderSource-Feb2014/Frameworks/BusinessLogic/WOPayPal/build.xml
>>>>>> clean:
>>>>>> WOPayPal.all:
>>>>>> global.environment:
>>>>>> global.properties:
>>>>>> global.framework.clean:
>>>>>>       [delete] Deleting directory /Users/liz/Roots/classes/WOPayPal
>>>>>>       [delete] Deleting directory /Users/liz/Roots/WOPayPal.framework
>>>>>> build:
>>>>>> WOPayPal.all:
>>>>>> global.environment:
>>>>>> global.properties:
>>>>>> global.prepare:
>>>>>>        [mkdir] Created dir: /Users/liz/Roots/classes/WOPayPal
>>>>>> global.compile:
>>>>>> 
>>>>>> BUILD FAILED
>>>>>> /Users/liz/Projects/WonderSource-2015/Frameworks/BusinessLogic/WOPayPal/build.xml:12:
>>>>>>  The following error occurred while executing this line:
>>>>>> /Users/liz/Projects/WonderSource-2015/Build/build/build.xml:593: The 
>>>>>> following error occurred while executing this line:
>>>>>> /Users/liz/Projects/WonderSource-2015/Build/build/generic.xml:247: 
>>>>>> taskdef A class needed by class org.objectstyle.woproject.ant.WOCompile 
>>>>>> cannot be found: org/apache/tools/ant/taskdefs/Javac
>>>>>>  using the classloader 
>>>>>> AntClassLoader[/Users/liz/Projects/WonderSource-Feb2014/Build/lib/cayenne-1.2M12.jar:/Users/liz/Projects/WonderSource-2015/Build/lib/jdom-b7.jar:/Users/liz/Projects/WonderSource-Feb2014/Build/lib/log4j-1.2.9.jar:/Users/liz/Projects/WonderSource-2015/Build/lib/maven-ant-tasks-2.1.3.jar:/Users/liz/Projects/WonderSource-2015/Build/lib/woproject.jar]
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> If I try to build my own framework, which references some Wonder 
>>>>>> frameworks in my workspace, I get:
>>>>>> 
>>>>>> BUILD FAILED
>>>>>> /Users/liz/Projects/Test/build.xml:87: taskdef A class needed by class 
>>>>>> org.objectstyle.woproject.ant.WOCompile cannot be found: 
>>>>>> org/apache/tools/ant/taskdefs/Javac
>>>>>>  using the classloader AntClassLoader[]
>>>>>> 
>>>>>> 
>>>>>> I can build a different project, which uses the Wonder pre-built 
>>>>>> binaries in /Library/Frameworks, in Eclipse with no problems.
>>>>>> 
>>>>>> I can also build the Wonder frameworks to ~/Roots fine from the command 
>>>>>> line using ant:  ant clean frameworks
>>>>>> 
>>>>>>  
>>>>>> 
>>>>>> My development setup is:
>>>>>> 
>>>>>> El Capitan 10.11.1
>>>>>> Java 1.8.0_31
>>>>>> ant 1.9.6 installed via home-brew.
>>>>>> Eclipse Luna Service Release 2 (4.4.2)
>>>>>> WOLips 4.4.201510.13.47
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> All ideas welcomed. 
>>>>>> 
>>>>>> Liz
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com 
>>>>>> <mailto:Webobjects-dev@lists.apple.com>)
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>>>>>>  
>>>>>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>>>>> 
>>>>>> This email sent to tedp...@yahoo.com <mailto:tedp...@yahoo.com>
>>> 
>> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to