Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ static String versionString() {
// This implementation is replaced during the build with another one that returns the correct value.
return "UNKNOWN";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void processString(String template, Writer output) {
}

public void setupContext() {
getContext().put("version", Version.CURRENT_VERSION);
getContext().put("version", Version.versionString());
getContext().put("ctx", getContext() ); //TODO: I would like to remove this, but don't know another way to actually get the list possible "root" keys for debugging.
getContext().put("templates", new Templates());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class TestCase {
@Test
public void testVersion() throws Exception {
assertEquals(
org.hibernate.tool.api.version.Version.CURRENT_VERSION,
org.hibernate.tool.api.version.Version.versionString(),
extractVersion(getPomXml()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void testSingleFileGeneration() {
null,
FileUtil.findFirstString("$", new File(outputDir, "artifacts.txt")));
assertEquals(
"File for artifacts in " + Version.CURRENT_VERSION,
"File for artifacts in " + Version.versionString(),
FileUtil.findFirstString("artifacts", new File( outputDir, "artifacts.txt")));
}

Expand Down