Hi Since nobody else has answered...
The Ant tasks are painful to maintain and remain as relics of a bygone age. Today I always use MWE2 + Java rather than Ant. For my own projects, each time Ant tests are troublesome, e.g. when migrating to Tycho, I consider removing the support, but that's not very honest wrt deprecation policy so they stay. I suspect that Ed Merks has a similar lack of enthusiasm for maintaining the EMF Ant tasks for a tiny number of users. I recommend that you recode.
That said, EMF and Ant are pretty stable whereas the platform and Java are not, so since your breakage occurs with a new platform, I can only suggest searching for the breaking commit and investigating.
Regards Ed Willink On 23/04/2021 12:02, Andrey Loskutov wrote:
Hi, could anyone point me to recent changes in EMF / Ant / platform that could cause emf.XSD2Java ant tasks to fail? Last Friday's platform was OK, yesterday's nightly build is broken for me. Ant task looks like: <emf.XSD2Java genModel="${genmodelFile}"> <model file="${parent.dir}/models/instrumentSetup.xsd" /> <arg line="-reload" /> </emf.XSD2Java> Similar errors are reported for emf.Ecore2Java tasks too, by specifying the "taskname" attribute I can workaround them - but the same "fix" doesn't work for emf.XSD2Java. If you have any ideas how to "fix" emf.XSD2Java, also welcome. Problem: failed to create task or type emf.XSD2Java Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:497) at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:429) at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:165) at org.apache.tools.ant.Task.perform(Task.java:349) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) ... 49 more Kind regards, Andrey Loskutov Спасение утопающих - дело рук самих утопающих https://www.eclipse.org/user/aloskutov _______________________________________________ cross-project-issues-dev mailing list cross-project-issues-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cross-project-issues-dev
-- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ cross-project-issues-dev mailing list cross-project-issues-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cross-project-issues-dev