summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-04-18 02:29:36 (EDT)
committer dgao2012-04-18 02:29:36 (EDT)
commitadda6d660dc8557c2cd88ebbff22639c572d9198 (patch)
treeed42cec1d650e7b7949bb62e2928fef9043a8d7a
parentac573a603252351a30b8cd54e9c94277b4fdb89b (diff)
downloadorg.eclipse.birt-adda6d660dc8557c2cd88ebbff22639c572d9198.zip
org.eclipse.birt-adda6d660dc8557c2cd88ebbff22639c572d9198.tar.gz
org.eclipse.birt-adda6d660dc8557c2cd88ebbff22639c572d9198.tar.bz2
Summary: use method getCanonicalPath() instead of getAbsolutePath().
Description: use getCanonicalPath() to pass the classPath value unique and canonical.
-rw-r--r--viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java b/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
index c8ca488..c667f7e 100644
--- a/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
+++ b/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
@@ -182,7 +182,15 @@ public class ReportEngineService
StringBuffer scriptlibClassPath = new StringBuffer( );
for ( int i = 0; i < jarFileList.size( ); i++ )
{
- String p = ( (File) jarFileList.get( i ) ).getAbsolutePath( );
+ String p = null;
+ try
+ {
+ p = ( (File) jarFileList.get( i ) ).getCanonicalPath();
+ }
+ catch (IOException e)
+ {
+ p = ( (File) jarFileList.get( i ) ).getAbsolutePath( );
+ }
if ( p != null && p.length( ) > 0 )
{