Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 21st, 2012  |  syntax: Diff  |  size: 2.67 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. From 632c7e6a42c6540c9d09b58a095a4937ea51735f Mon Sep 17 00:00:00 2001
  2. From: Sam Nelson <sam.nelson@mcnhealthcare.com>
  3. Date: Mon, 20 Aug 2012 17:14:33 -0600
  4. Subject: [PATCH] Fixed ScriptsToConcat so that it will handle absolute paths
  5.  for javascript files.
  6.  
  7. ---
  8. tools/ScriptsToConcat.class | Bin 1978 -> 2139 bytes
  9.  tools/ScriptsToConcat.java  |   3 +++
  10.  2 files changed, 3 insertions(+)
  11.  
  12. diff --git a/tools/ScriptsToConcat.class b/tools/ScriptsToConcat.class
  13. index a37b55bd61506bc127f2d13434916ec425f53836..f5061d5a9c99dbe94cc932f28038882e3833ddf7 100644
  14. GIT binary patch
  15. delta 869
  16. zcmZXT%Tg0j5Qe{#giJDw0m3yA<c^R4fnY#I5drZ6hysduA4q^;2r&e-T*%g?)T~_j
  17. z237$jSWv~zjj!O&wU0nq_MlZ(;bQvl?$h1>UwzK(7kn?=`1Wi65a{ByPBk$vm2_+L
  18. z=r}p=;ew49J@k6G<R#2yFMV9er=P1j0}Of?(zvGMBj#b)#_P5j^m2onI=2|Hy-^Qi
  19. zy5Mb%ah(e8Xx!Ba64UTa=)xGYqe+c>n`^VBJqq8VnU1FtlQ}b+n=%(P9&G;HR5R9F
  20. z)znu<y+IANiozvx-HfEn^g?7ZmrbS@4C;8OD63hW%O*3q)tb4L^qiSXq~(j(7(C*!
  21. z^+WYeKjEpyGXs-ZjX8rj35|J!1r`-5q9{K(d0;J>iYKyi+HR0!N#lh<ie-(o!3r6J
  22. zmn>Ujj-je7s|x>de{v-<oJ=Jq5~j4;+A`KB$DlXIn#Q^!YH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ZxpiZxi9*7h=1_7ji~%oA&8l5)0dO
  40. z<abF5R`!ecf&aaSB*8K9cjWUI#J|WeBTa7u6(=ty{yPnd-H_A)X&w+v%WszDrbIU7
  41. O4zDvUI4b-5r2YU@J!AO*
  42.  
  43. diff --git a/tools/ScriptsToConcat.java b/tools/ScriptsToConcat.java
  44. index 95531c3..eb8d063 100644
  45. --- a/tools/ScriptsToConcat.java
  46. +++ b/tools/ScriptsToConcat.java
  47. @@ -37,6 +37,9 @@ public class ScriptsToConcat extends ParserCallback {
  48.          }
  49.          String scriptName = a.getAttribute(HTML.Attribute.SRC).toString();
  50.          if(scriptName != null) {
  51. +            if(scriptName.startsWith("/")) {
  52. +                scriptName = "." + scriptName;
  53. +            }
  54.              System.out.println(scriptName);
  55.          }
  56.      }
  57. --
  58. 1.7.11.4