Skip to content

Commit

Permalink
BIRT OpenSource: an error to run a report that based on Pojo data source
Browse files Browse the repository at this point in the history
Fixed a path problem when workspace is in the same folder of eclipse.
Only replace the first root folder.
  • Loading branch information
Yulin Wang committed May 15, 2017
1 parent 0a1f4b6 commit 5b8537a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -189,12 +189,12 @@ private String enableURI( String location )
{
result = new File( location ).toURI( )
.toASCIIString( )
.replace( new File( "/" ).toURI( ).toASCIIString( ), "/" );
.replaceFirst( new File( "/" ).toURI( ).toASCIIString( ), "/" );
}
else
result = new File( location ).toURI( )
.toASCIIString( )
.replace( new File( "" ).toURI( ).toASCIIString( ), "" );
.replaceFirst( new File( "" ).toURI( ).toASCIIString( ), "" );
}
catch ( Exception e )
{
Expand Down

0 comments on commit 5b8537a

Please sign in to comment.