Commit 3c136216 authored by mkhan's avatar mkhan

path seprate for windows as well as for unix chnages by manazir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91206 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7bf087bf
......@@ -234,6 +234,8 @@ public class TaxInputCrtXmlPrc extends ProcessEJB implements TaxInputCrtXmlPrcLo
File subDirFile = null;
if( !taxDir.exists() )
{
if(taxInputCerdStr.indexOf("\\") > 0)
{
String subDirs[] = taxInputCerdStr.split( "\\\\" );
String subDirName = subDirs[0];
......@@ -246,6 +248,21 @@ public class TaxInputCrtXmlPrc extends ProcessEJB implements TaxInputCrtXmlPrcLo
if( !subDirFile.exists() )
subDirFile.mkdir();
}
}
if(taxInputCerdStr.indexOf("//") > 0)
{
String subDirs[] = taxInputCerdStr.split( "////" );
String subDirName = subDirs[0];
int subDirLen = subDirs.length;
for( int idx = 1; idx < subDirLen; idx++ )
{
subDirName = subDirName + File.separator + subDirs[ idx ];
subDirFile = new File( subDirName );
if( !subDirFile.exists() )
subDirFile.mkdir();
}
}
subDirFile = null;
}
FileOutputStream fileOutput = new FileOutputStream(taxDir);
......
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