Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Proper way to install antlr-generator-3.2.0-patch.jar
Proper way to install antlr-generator-3.2.0-patch.jar [message #1840904] Wed, 28 April 2021 14:33 Go to next message
Konrad Jünemann is currently offline Konrad JünemannFriend
Messages: 66
Registered: December 2018
Member
Hi,

I am trying to create a DSL from behind a customer's proxy. However, DSL generation (the mwe-Workflow) fails with the error that it would be highly recommended to download the following file:

http://download.itemis.com/antlr-generator-3.2.0-patch.jar

I cannot access it from inside the proxy. If I could transfer it somehow, where would I have to place it?

I already installed the following features from http://download.itemis.de/updates, as recommended by the error message:
- XText Antlr Runtime Feature 2.1.1
- XText Antlr SDK Feature 2.1.1

However, the error still appears.

Any help where to place the patch-file?




Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1840905 is a reply to message #1840904] Wed, 28 April 2021 14:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13930
Registered: July 2009
Senior Member
you can simply store it as
.antlr-generator-3.2.0-patch.jar

in the mydsl project

if you install the antlr sdk feature you need to add de.itemis.xtext.antlr to the classpath,
e.g. via additional.bundles section in build.properties


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1840906 is a reply to message #1840905] Wed, 28 April 2021 15:14 Go to previous messageGo to next message
Konrad Jünemann is currently offline Konrad JünemannFriend
Messages: 66
Registered: December 2018
Member
Adding de.itemis.xtext.antlr in build.properties did the trick. Thank you!

Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1841164 is a reply to message #1840906] Wed, 05 May 2021 12:04 Go to previous messageGo to next message
Konrad Jünemann is currently offline Konrad JünemannFriend
Messages: 66
Registered: December 2018
Member
I got a follow-up question (hence the same thread):

How would I include this dependency in my target site xml? I tried to include the feature to the site as follows:
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
  <repository location="https://download.itemis.com/updates/releases/"/>
  <unit id="de.itemis.xtext.antlr.feature.feature.group" version="2.1.1.v201405091103"/>
  <unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
</location>


But Maven throws the following exception (I am building with Tycho):
Caused by: org.eclipse.equinox.p2.core.ProvisionException: HTTP Server 'Bad Gateway' : https://download.itemis.com/updates/releases/content.xml
at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:247)
at org.eclipse.tycho.p2.remote.RemoteRepositoryCacheManager.createCache(RemoteRepositoryCacheManager.java:67)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:69)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:89)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:63)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:775)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:676)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:110)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:61)
at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:53)
at org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedIULocation.loadRepository(TargetDefinitionResolver.java:288)
... 28 more
Caused by: org.eclipse.ecf.filetransfer.BrowseFileTransferException: HttpComponents connection error response code 502.
at org.eclipse.ecf.provider.filetransfer.httpclient45.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:276)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)


And indeed,
https://download.itemis.com/updates/releases/content.xml
does not seem to exist on the server. Surely I am doing something wrong?

I would to avoid having to but the antlr-jar file into my git repository...

Cheers,
Konrad
Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1841166 is a reply to message #1841164] Wed, 05 May 2021 14:04 Go to previous messageGo to next message
Konrad Jünemann is currently offline Konrad JünemannFriend
Messages: 66
Registered: December 2018
Member
I guess it's some kind of firewall problem, as my setup works fine from another computer. So please don't bother.
Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1841168 is a reply to message #1841166] Wed, 05 May 2021 14:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13930
Registered: July 2009
Senior Member
https://download.itemis.com/updates/releases/compositeContent.xml
respectively directly
https://download.itemis.com/updates/releases/2.1.1/


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Proper way to install antlr-generator-3.2.0-patch.jar [message #1841208 is a reply to message #1841168] Thu, 06 May 2021 14:07 Go to previous message
Konrad Jünemann is currently offline Konrad JünemannFriend
Messages: 66
Registered: December 2018
Member
It was a proxy problem - sorry for the confusion.
Previous Topic:Supporting several versions of a DSL when using the DSL's eclipse plugin
Next Topic:Initialization of member JvmFields in constructor of a parent JvmGenericType
Goto Forum:
  


Current Time: Sat May 08 22:41:01 GMT 2021

Powered by FUDForum. Page generated in 0.02135 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top