[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jboss-aop/src/main/org/jboss/aop/standalone  ...
From:       Kabir Khan <kkhan () jboss ! com>
Date:       2005-11-30 22:50:25
Message-ID: E1EhamP-0000LU-1p () committer01 ! frg ! pub ! inap ! atl ! jboss ! com
[Download RAW message or body]

  User: kkhan   
  Date: 05/11/30 17:50:25

  Modified:    src/main/org/jboss/aop/standalone  Compiler.java
  Log:
  [JBAOP-64] Change way path is decoded from url before creating a file (the old way \
caused some problems in the bytecode annotation compiler)  
  Revision  Changes    Path
  1.18      +6 -6      jboss-aop/src/main/org/jboss/aop/standalone/Compiler.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Compiler.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-aop/src/main/org/jboss/aop/standalone/Compiler.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- Compiler.java	30 Nov 2005 22:20:47 -0000	1.17
  +++ Compiler.java	30 Nov 2005 22:50:25 -0000	1.18
  @@ -49,7 +49,7 @@
    * takes jar or class files and adds needed jboss bytecode
    *
    * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.17 $
  + * @version $Revision: 1.18 $
    */
   public class Compiler
   {
  @@ -334,10 +334,10 @@
            return;
         }
         
  -      String classUrlPath = URLDecoder.decode(classUrl.getFile(), "UTF-8");
  -      String infoPath = URLDecoder.decode(info.getFile().toString(), "UTF-8");
  +      File classUrlFile = new File(URLDecoder.decode(classUrl.getFile(), \
"UTF-8"));  +      File infoFile = new \
File(URLDecoder.decode(info.getFile().toString(), "UTF-8"));  
  -      if (!classUrlPath.equals(infoPath))
  +      if (!classUrlFile.equals(infoFile))
         {
            System.out.println("[warning] Trying to compile " + info.getFile() + " \
and found it also within " + classUrl.getFile() + " will not proceed. ");  return;
  @@ -348,7 +348,7 @@
            if (verbose) System.out.println("[no comp needed] " + info.getFile());
            return;
         }
  -      FileOutputStream os = new FileOutputStream(infoPath);
  +      FileOutputStream os = new FileOutputStream(infoFile);
         os.write(bytes);
         os.close();
         info.setCompiled(true);
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic