You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by vr...@apache.org on 2015/11/02 16:49:49 UTC
[02/11] incubator-apex-core git commit: APEX-199 #resolve Fixed bug
where CLI returns false incompatibility error message
APEX-199 #resolve Fixed bug where CLI returns false incompatibility error message
Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/8d9aa4b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/8d9aa4b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/8d9aa4b3
Branch: refs/heads/feature-module
Commit: 8d9aa4b32ec253721c92b3d2590f6f39085d42d2
Parents: aa28887
Author: David Yan <da...@datatorrent.com>
Authored: Tue Oct 27 12:42:15 2015 -0700
Committer: David Yan <da...@datatorrent.com>
Committed: Tue Oct 27 12:42:15 2015 -0700
----------------------------------------------------------------------
engine/src/main/java/com/datatorrent/stram/cli/DTCli.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/8d9aa4b3/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java
----------------------------------------------------------------------
diff --git a/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java b/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java
index 89f92f0..deb0967 100644
--- a/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java
+++ b/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java
@@ -3451,7 +3451,7 @@ public class DTCli
private void checkPlatformCompatible(AppPackage ap)
{
String apVersion = ap.getDtEngineVersion();
- if (!VersionInfo.isCompatible(apVersion, VersionInfo.getVersion())) {
+ if (!VersionInfo.isCompatible(VersionInfo.getVersion(), apVersion)) {
throw new CliException("This App Package is compiled with Apache Apex Core API version " + apVersion + ", which is incompatible with this Apex Core version " + VersionInfo.getVersion());
}
}