Skip to content

Commit

Permalink
Refactor deployed name
Browse files Browse the repository at this point in the history
* The property value 'deployed-name' is specific to the 8.2 runtime and
  not available in 7.7. Thus extract it to the SPI.
  • Loading branch information
Paul Richardson committed Feb 26, 2013
1 parent fc05700 commit 19b3f66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ private IFile getFile( IPath path ) {
}

private String getFullDeployedVdbName(ITeiidVdb deployedVdb) {
String fullVdbName = deployedVdb.getPropertyValue("deployment-name"); //$NON-NLS-1$
String fullVdbName = deployedVdb.getDeployedName();

if (!fullVdbName.endsWith(Vdb.FILE_EXTENSION)) {
fullVdbName = fullVdbName + Vdb.FILE_EXTENSION;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public interface ITeiidVdb {
*/
String getName();

/**
* @return deployed name
*/
String getDeployedName();

/**
* @return the version
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/teiid/org.teiid.7.7.x
Submodule org.teiid.7.7.x updated 1 files
+5 −0 designer/org/teiid772/runtime/TeiidVdb.java
2 changes: 1 addition & 1 deletion plugins/teiid/org.teiid.8.2.x
Submodule org.teiid.8.2.x updated 1 files
+5 −0 designer/org/teiid82/runtime/TeiidVdb.java

0 comments on commit 19b3f66

Please sign in to comment.