Bug 215049 - Error in Ant-based builder when using dsl.dir.name property
Summary: Error in Ant-based builder when using dsl.dir.name property
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: gmt (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-11 11:23 EST by Andy Carpenter CLA
Modified: 2017-04-11 15:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Carpenter CLA 2008-01-11 11:23:06 EST
I've been using the Ant-based builder and using the dsl.dir.name property to give the eclipse project a different name to the dsl. When doing this, during the megamodel build an error is reported that the /dsl/Syntax/dsl-parser.jar resource can't be found. I've traced this back to an issue in the AMMAScripts/build.megamodel.xml file. In the second parameter of the ant action the property dsl.name not dsl.dir.name is used to define the location of the dsl-parser.jar file; see snippet below

  antAction {
    '${dsl.ext}',
    'Inject ${dsl.name} File to ${dsl.name} Model',
    '${dslscripts.dir}/injector.xml',
    context = param {
      properties { 'MUri' = 'uri', }
    },
    parameters = [
      param {
        '${mm.location}',
        properties { 'MMUri' = 'uri', }
      }
      param {
        '/${dsl.name}/Syntax/${dsl.name}-parser.jar', **** issue here ****
        properties { 'EBNFInjectorUri' = 'uri', 'classNamePrefix' = 'classNamePrefix', }
      }
    ]
  }