[teiid-commits] teiid SVN: r2058 - trunk/adminshell/src/main/resources/scripts.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu Apr 15 11:56:33 EDT 2010


Author: rareddy
Date: 2010-04-15 11:56:33 -0400 (Thu, 15 Apr 2010)
New Revision: 2058

Modified:
   trunk/adminshell/src/main/resources/scripts/adminapi.bsh
Log:
TEIID-1042: fixing the to use simple name as the name instead fullpath name.

Modified: trunk/adminshell/src/main/resources/scripts/adminapi.bsh
===================================================================
--- trunk/adminshell/src/main/resources/scripts/adminapi.bsh	2010-04-14 21:49:25 UTC (rev 2057)
+++ trunk/adminshell/src/main/resources/scripts/adminapi.bsh	2010-04-15 15:56:33 UTC (rev 2058)
@@ -9,12 +9,12 @@
  * Deploy a {@link VDB} file.
  * @param vdbFile - VDB File Name
  * @throws AdminException
- * @return the {@link VDB} representing the current property values and runtime state.
  */
-VDB deployVDB(String vdbFile) {
+void deployVDB(String vdbFile) {
     debug("Adding VDB " + vdbFile);
     checkAdmin();    
-    return internalAdmin.deployVDB(vdbFile, new FileInputStream(new File(vdbFile)));
+    f = new File(vdbFile);
+    internalAdmin.deployVDB(f.getName(), new FileInputStream(f));
 }
 
 /**
@@ -183,13 +183,13 @@
  * Add Connector Type, will import Connector Type from a file
  *
  * @param name  of the Connector to add
- * @param rarFile RAR file to be added
  * @throws AdminException
  */
-void addConnector(String name, String rarFile) {
-    debug("Adding Connector " + name + " from " + rarFile);
+void addConnector(String rarFile) {
+    debug("Adding Connector " + rarFile);
     checkAdmin();    
-    internalAdmin.addConnector(name, new FileInputStream(new File(rarFile)));
+    f = new File(rarFile);
+    internalAdmin.addConnector(f.getName(), new FileInputStream(f));
 }
 
 



More information about the teiid-commits mailing list