Menu

#20 upper case variables cannot be set from command line

2.1.0
closed
None
5
2025-09-06
2009-08-04
No

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

Discussion

  • Jonathan Derque

    Jonathan Derque - 2009-08-04
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • milestone: --> Backlog
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-16
    • assigned_to: Piotr Dyraga
    • milestone: Backlog --> 2.1.0rc1-RELEASE
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-16

    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
    %%%
    
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-16
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB