Martin -- When I run `ant test` from Stylesheets/Test2 on an Ubuntu system, it works. (Well, to be more precise, it eventually fails due to diff reasons you already know about>) But if I run it on my Mac, I get [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. I have a reasonable suspicious that this is a problem with my `ant` configuration, since it does not matter what target I use (even `ant werp`), this error is generated. Although I get a lot more occurrences of it with `ant test`, and then the build eventually fails with "Problem: failed to create task or type foreach Cause: The name is undefined.". Thoughts?
The problem, of course, originates on line 30 of build_utilities.xml: <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> The versions of `ant` are exactly the same on the two systems, BTW: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 I do not find a file called 'antcontrib.properties' on either system.
When I run `ant test` from Stylesheets/Test2 on an Ubuntu system, it works. (Well, to be more precise, it eventually fails due to diff reasons you already know about>) But if I run it on my Mac, I get
[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
I have a reasonable suspicious that this is a problem with my `ant` configuration, since it does not matter what target I use (even `ant werp`), this error is generated. Although I get a lot more occurrences of it with `ant test`, and then the build eventually fails with "Problem: failed to create task or type foreach Cause: The name is undefined.".
Thoughts?
This should help: http://ant-contrib.sourceforge.net/ Cheers, Martin On 2017-12-24 03:04 PM, Syd Bauman wrote:
The problem, of course, originates on line 30 of build_utilities.xml: <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
The versions of `ant` are exactly the same on the two systems, BTW: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
I do not find a file called 'antcontrib.properties' on either system.
When I run `ant test` from Stylesheets/Test2 on an Ubuntu system, it works. (Well, to be more precise, it eventually fails due to diff reasons you already know about>) But if I run it on my Mac, I get
[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
I have a reasonable suspicious that this is a problem with my `ant` configuration, since it does not matter what target I use (even `ant werp`), this error is generated. Although I get a lot more occurrences of it with `ant test`, and then the build eventually fails with "Problem: failed to create task or type foreach Cause: The name is undefined.".
Thoughts?
Yeah. I ended up copying /usr/share/ant/lib/ant-contrib.jar from my Linux system to my Mac's local Stylesheets/Test2/, and changing build_utilities to use it: <!-- <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> --> <!-- Line above commented out and replaced with element below to make up for the fact that I do not have ant-contrib installed properly on my Mac. If you see this checked-in you should feel free to revert it to the line above this comment instead of the element below. —Syd, 2017-12-25 --> <taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="./ant-contrib.jar"/> </classpath> </taskdef> I also had to find and install local copies of FOP stuff to get the test build to work, but I got it working somewhere around Stamford CT. :-)
You'll need to install ant-contrib. I don't know how that's done on a Mac, though. Or you could use a proper computer. ;-) This should help: http://ant-contrib.sourceforge.net/
Hi Syd, The build process should download FOP for you automatically. But the FO build is broken at the moment anyway by this: https://github.com/TEIC/Stylesheets/issues/302 Cheers, Martin On 2017-12-27 04:35 PM, Syd Bauman wrote:
Yeah. I ended up copying /usr/share/ant/lib/ant-contrib.jar from my Linux system to my Mac's local Stylesheets/Test2/, and changing build_utilities to use it:
<!-- <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> --> <!-- Line above commented out and replaced with element below to make up for the fact that I do not have ant-contrib installed properly on my Mac. If you see this checked-in you should feel free to revert it to the line above this comment instead of the element below. —Syd, 2017-12-25 --> <taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="./ant-contrib.jar"/> </classpath> </taskdef>
I also had to find and install local copies of FOP stuff to get the test build to work, but I got it working somewhere around Stamford CT. :-)
You'll need to install ant-contrib. I don't know how that's done on a Mac, though. Or you could use a proper computer. ;-) This should help: http://ant-contrib.sourceforge.net/
participants (2)
-
Martin Holmes
-
Syd Bauman