Bug 798973

Summary: Add groovy 1.8.x support to Schema Tool.
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Marek Baluch <mbaluch>
Component: ToolingAssignee: Marek Baluch <mbaluch>
Status: VERIFIED --- QA Contact: Marek Baluch <mbaluch>
Severity: low Docs Contact:
Priority: low    
Version: 5.3.0 GACC: ldimaggi, mvecera, soa-p-jira
Target Milestone: ER2Keywords: FutureFeature
Target Release: 5.3.0 GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.3.0 GA Doc Type: Enhancement
Doc Text:
An error occurred when attempting to use Groovy with the Schema tool. Running the Schema tool with Groovy version 1.8.x caused an error message to display. This has been patched. As a result, the two components will work together properly.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patched build file. none

Description Marek Baluch 2012-03-01 12:09:58 UTC
Description of problem:

Running schema tool with groovy version 1.8.x produces 21 errors like:

embedded_script_in__home_mbaluch_work_build_soa53dev1_jboss_as_tools_schema_build_dot_xml: 279: Modifier 'private' not allowed here.
 @ line 279, column 17.
                   private tmppath = pathname + ".tmp";
                   ^

Additional info:

The fix for this issue is pretty simple. All you need to do is replace all 'private' fields with 'def'. Please see attachment which contains the fixed build file.

Comment 1 Marek Baluch 2012-03-01 12:12:53 UTC
Created attachment 566831 [details]
Patched build file.

Comment 2 Julian Coleman 2012-03-01 15:51:15 UTC
Resolved with revision 10739 of:

  src/main/resources/soa-p/schema-tool/build.xml

Commit message:

  BZ-798973
  Add groovy 1.8 support.  Patch from Marek Baluch.

Comment 3 Marek Baluch 2012-05-09 19:20:30 UTC
Verified in ER2. Most of our Hudson/Jenkins RiftSaw jobs are running on Groovy 1.8.x anyway and I haven't seen a single error.

Comment 4 Suz 2012-07-17 00:32:06 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
An error occurred when attempting to use Groovy with the Schema tool. Running the Schema tool with Groovy version 1.8.x caused an error message to display. This has been patched. As a result, the two components will work together properly.