Changeset 7772 for trunk/projects


Ignore:
Timestamp:
09/16/11 09:09:16 (8 years ago)
Author:
hinerm
Message:

Added StringEscapeUtils to Jar2Lib

Added a new dependency from the apache.lang package.

StringEscapeUtils provide methods to unescape escaped
characters in strings. This will hopefully provide
more robust replacement of backslashes in Windows paths.

The Jar2Lib.java impilementation of a path fixer has been
updated to take advantage of these utils.

Location:
trunk/projects/jar2lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/jar2lib/pom.xml

    r7730 r7772  
    3737      <artifactId>velocity</artifactId> 
    3838      <version>1.6.4</version> 
     39    </dependency> 
     40    <dependency> 
     41      <groupId>org.apache.commons</groupId> 
     42      <artifactId>commons-lang3</artifactId> 
     43      <version>3.0.1</version> 
    3944    </dependency> 
    4045  </dependencies> 
  • trunk/projects/jar2lib/src/main/java/loci/jar2lib/Jar2Lib.java

    r7769 r7772  
    5757import java.util.jar.JarFile; 
    5858 
     59import org.apache.commons.lang3.StringEscapeUtils; 
     60 
    5961/** 
    6062 * Generates a C++ project for C++ proxies corresponding 
     
    233235 
    234236    for(String libPath : libraryJars) { 
     237      libPath = StringEscapeUtils.escapeJava(libPath); 
    235238      tmpArray.add(libPath.replaceAll("\\\\", "/")); 
    236239    } 
Note: See TracChangeset for help on using the changeset viewer.