Pig assumes "pig.additional.jars" a system property. Need to find someway to put "pig.additional.jars" in system property before launching test. I can make it work by putting <sysproperty key="pig.additional.jars" value="xxxx.jar" /> into <junit> task in build.xml, though I am not sure it is acceptable for your case.
Daniel On Thu, Sep 22, 2011 at 11:43 AM, Jeremy Hanna <[email protected]> wrote: > Is there a way to use -Dpig.additional.jars with pigunit to auto-register > jars for unit test scripts? Maybe we're just missing something because this > seems like a basic thing that people would like to use. I see in > test/org/apache/pig/test/pigunit/TestPigTest.java that there is a commented > out statement that says: > // "REGISTER myIfNeeded.jar;", > but that seems clunky when pig.additional.jars seems the better way to > register jars for the scripts. > > Anyway, didn't know if I was missing an option there or if there would be an > easy-ish way to add feature, we're willing to do that as well.
