I was wondering if you could help me with an error I have when I generate a standalone generator for my XText project.
I am working on a XText Eugenia project that in the end turns my dsl code into xml code, so I wanted a runnable jar that only did the xml part but when I run that jar I get the following error:
1 [main] ERROR xt.validation.ResourceValidatorImpl - The string resource '_UI_DiagnosticRoot_diagnostic' could n
ot be located
java.util.MissingResourceException: The string resource '_UI_DiagnosticRoot_diagnostic' could not be located
Code generation finished.
The thing is my XML is generated correctly and the validation notices if something is wrong its just that the error message can be annoying to watch. So I was wondering if there is something I can do in my project to solve this? I have seen some solutions meddling with the jar after it is generated but I am supposed to hand over the project I am working on to others and I wanted to make it as self-going (and clean ) as possible.
I tried a few things but the closes I think I did was I added a file "plugin.properties" with the line you posted in the project, right-clicked the main file and took Run As -> Run Configurations, went to class path, user entries and added the file.
Did I miss something or do I just don't know what I am doing?
Don't know if it is important but when I got many warnings when generating the jar file and one of them where "duplicate entry: plugin.properties".
How is your "runnable jar" created?
However, the story is the following:
emf.common needs a plugin.properties file which contains a following entry:
> Don't know if it is important but when I got many warnings when generating the jar file and one of them where "duplicate entry: plugin.properties".
if you start mix contents of some bundles you overwrite same named files like e.g. plugin.properties or plugin.xml
I have placed the main file in a different project which is dependent on my XText dsl project, maybe that is the cause for the duplication issues and I should just throw it right into the same project?
Hmm, feels strange to have a library that requires a file with only one line that seems to me to say that blue=blue
> I create it with the export function in eclipse with the "Extract required libraries into generated JAR" option selected and I get tons of duplicate entries warnings.
You will probably need something more flexible e.g. ant?
> Hmm, feels strange to have a library that requires a file with only one line that seems to me to say that blue=blue
It's just a dummy entry.
>You will probably need something more flexible e.g. ant?
Ok, I havent used ant before, been meddling a bit with maven which I think do similar things
But I will look around and see if I can learn how this script works.
As long as I don't run the worflow file I am happy since it will remove my Eugenia code which made me try to step away from the maven script I had found .
But thanks for all the feedback, now to learn and understand it.