Commit 7f5dbd7a authored by msingh's avatar msingh

Changed by Manish on 13/09/16


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103339 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b3f5c6a
......@@ -46,9 +46,7 @@ public class CreateRCPXML
this.winName = winName;
this.tranIdCol = tranIdCol;
//to change as per the db name
filePath = CommonConstants.JBOSSHOME + File.separator + "sql" + File.separator + CommonConstants.DB_NAME + File.separator;
}
public String getTranXML( String tranId, Connection conn ) throws Exception
......@@ -86,8 +84,15 @@ public class CreateRCPXML
{
StringBuffer dataBuff = new StringBuffer();
String lineStr = null;
System.out.println("Test the files--------------------");
String fileName = winName.substring( 2 ) + ( formNo.equalsIgnoreCase( "1" ) ? "21" : "1" + formNo );
BufferedReader br = new BufferedReader( new FileReader( filePath + fileName + ".sql" ) );
//BufferedReader br = new BufferedReader( new FileReader( filePath + fileName + ".sql" ) );
fileName = filePath + fileName + ".sql";
System.out.println("FilePath for chk ["+fileName+"]");
FileInputStream fin = new FileInputStream( fileName );
BufferedReader br = new BufferedReader( new InputStreamReader( fin ) );
while( ( lineStr = br.readLine() ) != null )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment