Hi all,
@Roger instead of changing CLASSPATH inside our build script I preferred to
avoid (and catch) errors in such tests so skipping such tests during
build/test from Ant script, it's the simplest and safest way for now; hope
it's good; anyway, now all tests are successful.
I pushed in the infra folder some updates to reflect my build environment.

But I'm sorry to say that now running an `ant build` I got the following
error, I think for a missing library related to CheckStyle:
```
checkstyle:

BUILD FAILED
/home/sandro/work/pivot/pivot-trunk/build.xml:1099: Problem: failed to
create task or type antlib:com.puppycrawl.tools.checkstyle.ant:checkstyle
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/opt/apache-ant-1.10.14/lib
        -/home/sandro/.ant/lib
        -a directory added on the command line with the -lib argument
```
@Roger Whitcomb <rwhitc...@apache.org> What jar/s do you use for that ? So
I can use the same and add to the setup env sample script ...
Just for info, my current CLASSPATH is:
```
$ echo $CLASSPATH
.:/opt/javalib/junit-4.13.2.jar:/opt/javalib/hamcrest-core-1.3.jar:/opt/javalib/maven-ant-tasks-2.1.3.jar:/opt/javalib/apache-rat-0.13.jar:/opt/jdk-11/jre/lib/javaws.jar:/opt/jdk-11/jre/lib/plugin.jar
*```*

Thanks
Bye


Il giorno mer 29 nov 2023 alle ore 20:47 Roger Whitcomb <
rogerandb...@rbwhitcomb.com> ha scritto:

> One thing that just came to mind is if you do the build without tests.
> Then update the CLASSPATH once the jars are done and then run the tests
> after that. Could all be done in the build.xml I think by setting a
> different CLASSPATH on the Java invocation for the tests.
>
> Thanks,
> ~Roger
>
>
> > On Nov 29, 2023, at 8:53 AM, Sandro Martini <sandro.mart...@gmail.com>
> wrote:
> >
> > Ciao Roger,
> > thanks for the help; I'll try to update the CLASSPATH in the sample setup
> > shell script (and update it in SVN); otherwise in the worst case check if
> > such tests can be disabled when there are no jars (if possible).
> > I'll keep you updated.
> >
> > Bye
> >
> >
> >> Il giorno mar 28 nov 2023 alle ore 23:28 Roger Whitcomb <
> >> rogerandb...@rbwhitcomb.com> ha scritto:
> >>
> >> Ciao Sandro,
> >> Thanks for this. All three tests that fail are due to the same root
> cause:
> >> the tests are being run from the .class files and not from the .jar
> files.
> >> The VersionTest fails because
> >> Version.class.getPackage().getImplementationVersion() returns null
> (because
> >> the class isn’t inside a .jar file and therefore has no package
> version).
> >> Similarly, GaugeTest and MeterTest fail because there is no
> ServiceProvider
> >> for “Theme” (which only exists inside the .jar file manifest).
> >>
> >> I’m thinking this is a setup issue with the CLASSPATH … but I’m not sure
> >> how to fix it …
> >>
> >> Thanks,
> >> ~Roger
> >>
> >> On Nov 28, 2023, at 11:48 AM, Sandro Martini <
> https://urldefense.proofpoint.com/v2/url?u=http-3A__sandro.martini-40gmail.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=NGXYnxeSiI_cX848yMIhm_nxVirU2qvwSBiomy8msDM&m=mk5jhMR5lMYXEbejeJc5Js5h6JGBh4RF82P3a234fyTgeJJjAjeOwgoQKOGOfVJk&s=_reMdFUU0TiF9MRFOiVd_ciR7ybmxqd4VwKYolPo7wM&e=>
> <mailto:sandro.mart...@gmail.com>> wrote:
> >>
> >> <pivot-trunk_tests_verbose.txt>
> >>
> >>
>

Reply via email to