You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First I have to thank you for making the amazing MVEL.
I'm now using version 2.0.19 with Maven. But what's wierd is the following code is not working:
String path = "resource/1.xhtml";
CompiledTemplate t = TemplateCompiler.compileTemplate(new File(path));
TemplateRuntime.execute(t, System.out); // NOT WORKING! no output in system.out, also no exceptions or errors
String res = (String) TemplateRuntime.execute(t); // works fine
It's quite strange because as it claims the version 2.0.19 does support stream output.
I suspect the jar fetched from Maven is broken and another testing also proves that.
When I download the 2.0.19 jar file from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/ and run the same test, the result is OK.
Here is the SHA1 from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/:
mvel2-2.0.19.jar 19-Nov-2010 13:25 672K
mvel2-2.0.19.jar.sha1 19-Nov-2010 13:25 40
mvel2-2.0.19.jar.sha1 has the content of : "d7f3efd00f202f734bdb8b91fd8dfe2b2b54e42a"
So if possible, please update Maven repository for 2.0.19 with correct jar file. Thank you!
The text was updated successfully, but these errors were encountered:
Well, that's strange. The codehaus.org repository is the authoritative version. I'm not sure what to make of that discrepancy, unless somehow there was an accidental publishing early that got mirrored before the initial release -- but I can't remember to be honest.
Hello Mike,
First I have to thank you for making the amazing MVEL.
I'm now using version 2.0.19 with Maven. But what's wierd is the following code is not working:
String path = "resource/1.xhtml";
CompiledTemplate t = TemplateCompiler.compileTemplate(new File(path));
TemplateRuntime.execute(t, System.out); // NOT WORKING! no output in system.out, also no exceptions or errors
String res = (String) TemplateRuntime.execute(t); // works fine
It's quite strange because as it claims the version 2.0.19 does support stream output.
I suspect the jar fetched from Maven is broken and another testing also proves that.
When I download the 2.0.19 jar file from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/ and run the same test, the result is OK.
After checking the SHA checksum files from Maven repository and http://repository.codehaus.org/org/mvel/mvel2/2.0.19/, I'm sure they are different jar files.
Here is the search result from Maven http://search.maven.org/#artifactdetails|org.mvel|mvel2|2.0.19|jar:
mvel2-2.0.19.jar 29-Oct-2010 671.2 K "deb8ba40190544e7f85e7abec6a9847f7ba3d943"
Here is the SHA1 from http://repository.codehaus.org/org/mvel/mvel2/2.0.19/:
mvel2-2.0.19.jar 19-Nov-2010 13:25 672K
mvel2-2.0.19.jar.sha1 19-Nov-2010 13:25 40
mvel2-2.0.19.jar.sha1 has the content of : "d7f3efd00f202f734bdb8b91fd8dfe2b2b54e42a"
So if possible, please update Maven repository for 2.0.19 with correct jar file. Thank you!
The text was updated successfully, but these errors were encountered: