|
22 | 22 | <file name="Queue.js"/>
|
23 | 23 | <file name="Renderer.js"/>
|
24 | 24 | <file name="Util.js"/>
|
25 |
| - <file name="renderers/Canvas.js"/> |
| 25 | + <file name="renderers/Canvas.js"/> |
26 | 26 | <file name="html2canvas-post.txt"/>
|
27 |
| - </filelist> |
28 |
| - </path> |
| 27 | + </filelist> |
| 28 | + </path> |
| 29 | + |
| 30 | + <path id="sourcefiles-allrends"> |
| 31 | + <filelist dir="${src.dir}"> |
| 32 | + <file name="LICENSE"/> |
| 33 | + <file name="html2canvas-pre.txt"/> |
| 34 | + <file name="Core.js"/> |
| 35 | + <file name="Generate.js"/> |
| 36 | + <file name="Parse.js"/> |
| 37 | + <file name="Preload.js"/> |
| 38 | + <file name="Queue.js"/> |
| 39 | + <file name="Renderer.js"/> |
| 40 | + <file name="Util.js"/> |
| 41 | + <file name="renderers/Canvas.js"/> |
| 42 | + <file name="renderers/SVG.js"/> |
| 43 | + <file name="html2canvas-post.txt"/> |
| 44 | + </filelist> |
| 45 | + </path> |
29 | 46 |
|
30 | 47 | <path id="jquery-plugin">
|
31 | 48 | <fileset dir="${src.dir}" includes="LICENSE"/>
|
|
46 | 63 | </target>
|
47 | 64 |
|
48 | 65 | <pathconvert property="prettty-sourcefiles" pathsep="${line.separator}" refid="sourcefiles"></pathconvert>
|
| 66 | + |
| 67 | + <pathconvert property="prettty-sourcefiles-allrends" pathsep="${line.separator}" refid="sourcefiles-allrends"></pathconvert> |
49 | 68 |
|
50 | 69 | <target name="build" depends="build-dir,plugins">
|
51 | 70 | <echo>Concatenating files:${line.separator}${prettty-sourcefiles}${line.separator}into ${build.dir}/${JS_NAME}...</echo>
|
52 |
| - <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
53 |
| - <path refid="sourcefiles"/> |
| 71 | + <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
| 72 | + <path refid="sourcefiles"/> |
| 73 | + </concat> |
| 74 | + <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME}" /> |
| 75 | + </target> |
| 76 | + |
| 77 | + <target name="build-allrends" depends="build-dir,plugins"> |
| 78 | + <echo>Concatenating files:${line.separator}${prettty-sourcefiles-allrends}${line.separator}into ${build.dir}/${JS_NAME}...</echo> |
| 79 | + <concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}"> |
| 80 | + <path refid="sourcefiles-allrends"/> |
54 | 81 | </concat>
|
55 | 82 | <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME}" />
|
56 | 83 | </target>
|
|
75 | 102 | <file name="Queue.js"/>
|
76 | 103 | <file name="Renderer.js"/>
|
77 | 104 | <file name="Util.js"/>
|
78 |
| - <file name="renderers/Canvas.js"/> |
| 105 | + <file name="renderers/Canvas.js"/> |
| 106 | + </sources> |
| 107 | + </jscomp> |
| 108 | + <delete file="${build.dir}/${JS_NAME_MIN}.tmp"></delete> |
| 109 | + </target> |
| 110 | + |
| 111 | + <target name="syntaxcheck-allrends" depends="build-dir,build-allrends"> |
| 112 | + <jscomp compilationLevel="simple" warning="verbose" |
| 113 | + debug="false" |
| 114 | + output="${build.dir}/${JS_NAME_MIN}.tmp"> |
| 115 | + <externs dir="${lib.dir}"> |
| 116 | + <file name="${jquery-externs}"/> |
| 117 | + </externs> |
| 118 | + <sources dir="${src.dir}"> |
| 119 | + <!-- need to write them again here since the closure compiler doesn't understand filesets,... --> |
| 120 | + <file name="LICENSE"/> |
| 121 | + <file name="Core.js"/> |
| 122 | + <file name="Generate.js"/> |
| 123 | + <file name="Parse.js"/> |
| 124 | + <file name="Preload.js"/> |
| 125 | + <file name="Queue.js"/> |
| 126 | + <file name="Renderer.js"/> |
| 127 | + <file name="Util.js"/> |
| 128 | + <file name="renderers/Canvas.js"/> |
| 129 | + <file name="renderers/SVG.js"/> |
79 | 130 | </sources>
|
80 | 131 | </jscomp>
|
81 | 132 | <delete file="${build.dir}/${JS_NAME_MIN}.tmp"></delete>
|
|
95 | 146 | <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME_MIN}" />
|
96 | 147 | </target>
|
97 | 148 |
|
| 149 | + <target name="release-allrends" depends="build-dir,build-allrends,syntaxcheck-allrends"> |
| 150 | + <jscomp compilationLevel="simple" warning="verbose" |
| 151 | + debug="false" |
| 152 | + output="${build.dir}/${JS_NAME_MIN}"> |
| 153 | + <externs dir="${lib.dir}"> |
| 154 | + <file name="${jquery-externs}"/> |
| 155 | + </externs> |
| 156 | + <sources dir="${build.dir}"> |
| 157 | + <file name="${JS_NAME}"/> |
| 158 | + </sources> |
| 159 | + </jscomp> |
| 160 | + <replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME_MIN}" /> |
| 161 | + </target> |
| 162 | + |
98 | 163 | <target name="clean">
|
99 | 164 | <delete dir="${build.dir}"></delete>
|
100 | 165 | </target>
|
|
0 commit comments