sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 39771 - http://anonsvn.icesoft.org/repo / icefaces3 / trunk / icefaces / ace / tools / cssurlmapper / src / org / icefaces / ace / util / cssurlmapper / CssUrlMapper.java
Unified Diff View - CssUrlMapper.java
/icefaces3/trunk/icefaces/ace/tools/cssurlmapper/src/org/icefaces/ace/util/cssurlmapper/CssUrlMapper.java @ revision 39770
/icefaces3/trunk/icefaces/ace/tools/cssurlmapper/src/org/icefaces/ace/util/cssurlmapper/CssUrlMapper.java @ revision 39771
@@ -101,6 +101,12 @@  private String transformUrl(UrlOccurrence url) {   String path = url.getUrlChars().trim(); +  String query = null; +  int queryIndex = path.indexOf("?"); +  if( queryIndex > -1 ){ +      query = path.substring(queryIndex); +      path = path.substring(0,queryIndex); +  }   if (path.startsWith("http://") || path.startsWith("data:") || path.startsWith("#{resource")) {    return url.toString(); // not a local resource or already in JSF format, do not modify @@ -112,6 +118,8 @@    // trick to get a complete path and without ..'s    File tempFile = new File(this.file.getCanonicalPath());    File file = new File(tempFile.getParentFile(), path); +   System.out.println("file: " + file + ", path: " + path); +   System.out.println("canonical path: " + file.getCanonicalPath());    file = new File(file.getCanonicalPath());    if (this.relativePathDirectory == null) { @@ -130,6 +138,7 @@    e.printStackTrace();   } -  return url.getLeadingChars() + "#{resource['" + this.libraryName + resourcePath + "']}" + url.getTrailingChars(); +  return url.getLeadingChars() + "#{resource['" + this.libraryName + resourcePath + "']}" +      + (query != null ? query : "") + url.getTrailingChars();  } }


feed icon

sventon 2.5.1