the command line :
java -jar wh/webharvest_all_1.jar config=test.xml #TestVariable=foobar
will create a variable named testvariable instead of TestVariable.
The attached patch will keep the variable name case intact
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
It seems that this bug has been fixed along the way.
I tried to reproduce this issue with the following configuration:
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="http://web-harvest.sourceforge.net/schema/2.1/core"> <script language="groovy"> <template><![CDATA[ System.out.println("%%%"); System.out.println(TestVariable); System.out.println(testvariable); System.out.println("%%%"); ]]></template> </script> </config>
and starting web harvest with arguments:
config=/home/piotrek/bug20.xml #TestVariable=xxCamelCase #testvariable=yylowercase
It gives following result:
%%% xxCamelCase yylowercase %%%
It seems that this bug has been fixed along the way.
I tried to reproduce this issue with the following configuration:
and starting web harvest with arguments:
It gives following result: